I have 4 different equations in 4 separate cells. I am trying to test all possible value combinations from a set number to see which combination results in the smallest sum of results.
This needs to be done with combinations not permutations as order does not matter
For example...
Say I have 100 available and 4 equations as follows:
Equation 1) 2x + 5 Placed in cell A1
Equation 2) 9x^3-3x+2 Placed in cell B1
Equation 3) 3x^2-8 Placed in cell C1
Equation 4) x^4+2x Placed in cell D1
I want to run Equation 1 with x=100, Equation 2 with x=0, Equation 3 with x=0 and Equation 4 with x=0
Next, Equation 1 with x=99, Equation 2 with x=1, Equation 3 with x=0 and Equation 4 with x=0
Continuing with all possible combinations until I have Equation 1 with x=0, Equation 2 with x=0, Equation 3 with x=0 and Equation 4 with x=100.
This example has 176,851 combinations
I need to compare the sum of the results of the four equations for all iterations, and determine which iteration resulted in the smallest sum.
Is this even possible? Thank you for any help provided.
Bookmarks