........................ |W1|W2|W3| SD|Constraint E(Rp1) "|............| 0 | 0 _ |_1|_0 | E(Rp1) - 1 E(Rp1) "|............| 0 | 0 _ |_1|_0 | E(Rp1) - 2 E(Rp1) "|............| 0 | 0 _ |_1|_0 | E(Rp1) - 3 ...................... Total...|............| 0 | 0 _ |_1|Sum of the SD Column |0And tell the optimzer to optimize the 'sum of the sd column' variable in the 'total' row while keeping all of the 'constraint' boxes at 0 and allowing it to tweak all of the W1/W2/W3s.
You are not logged in, either login or create an account to post comments
A macro to run the solver, to set D7 to value of 0 by changing cell D3:
Sub Macro1() SolverOk SetCell:="$D$7", MaxMinVal:=3, ValueOf:="0", ByChange:="$D$3" SolverSolve UserFinish:=True SolverFinish KeepFinal:=1 End SubI've tested this in Excel 97 and it works after I add a 'reference' to solver.xla, from the 'tools' menu in the VB editor.If you're using a newer version of Excel, I suggest you look at this documentation of the SolverOK function.
If I've misread your question and this isn't what you wanted to know about, you might want to clarify your question :)
posted by Mike1024 at 2:03 PM on November 1, 2009