I am trying to find the maximum value in a cell using Excel Solver by adjusting the values in two other cells. However, the Solver finds, what I assume are local maxima, and not the global maximum value. The found max value depends on the starting values of the variables.
I have attached a simple example showing the issue.
Use Solver to Maximize cell P8 (Orange highlight) by changing variable cells C2 & B3 (Yellow highlights)
NOTE: I really wanted to change cell B2 instead of C2, but the integer constraint didn't work for Cell B2 so I instead change C2 while setting B2=int(C2)
Optimal values are C3=7 (or any value 7-7.99999), B2=7 and B3=91.65% which results in P8=18.34%
However, the solver does not find the optimal values. For example, if I start with C2=10 and B3=100%; I get C2=41.95 and B2=41, B3=86.95% and P8=8.50%
The attached file only has two rows. The real files have several hundred rows (but still only one cell to maximize).
p.s. If it is not possible to use the Solver, in my case, is it possible to use a VB script to test all combinations?
For example:
B2 = 2-100 step 1
B3= 10%-120% step 2
and then put the output into a new spreadsheet showing
B2 B3 P8
2 10% 22%
..
100 120% 15%
I could then sort the output to find the max value for P8.......
Bookmarks