I am trying to do some constrained optimization in excel with the Solver tool, but I am encountering the following error:
"Solver encountered an error value in the Objective Cell or a Constraint Cell" - which is pretty ambiguous. I think I see where the problem is, but I'm not sure why its happening. This optimization problem contains 4 changeable parameters/variables - and one of them is returning a value of zero which is creating a #DIV/0! error.
The problem is as follows:
A copy of the xls can be found here: http://docs.google.com/file/d/0BxzdaGm_pXBncEtNMFRUU0M5QXc
When the solver runs - I get the error message and e1 returns a value of zero - which creates a #DIV/0! error in calculating P1, and everything gets thrown off from there. I'm using the GRG NonLinear solving method.
In an attempt to get a non-zero figure for e1, I tried changing the constraints on e1, e2, s1, s2 from non-negative to ">= 0.0000001" but STILL e1 returns a value of zero?!
Perhaps I've set something up incorrectly? This is my first time doing anything like this in excel, and I'd love some insight on how to get this to work, or even if you guys could comment on my formatting in general that'd be great. I'm sure there's tons of room for improvement.
Thanks in advance, and don't hesitate to ask for clarification of any kind...
"Solver encountered an error value in the Objective Cell or a Constraint Cell" - which is pretty ambiguous. I think I see where the problem is, but I'm not sure why its happening. This optimization problem contains 4 changeable parameters/variables - and one of them is returning a value of zero which is creating a #DIV/0! error.
The problem is as follows:
I am trying to find the values of e1, e2, s1, and s2 which maximize the function:
f = [(1/(1+P1+P1P2))*(-e1^2)] + [(P1/(1+P1+P1P2))*(R1-e2^2)] + [(P1P2/(1+P1+P1P2))*(R1+R2)]
where
P1 = [(e1-s1)/e1]
P2 = [(e2-s2)/e2]
R1 = [(e1+s1)/2]
R2 = [(e2+s2)/2]
Subject to the constraint that e1, e2, s1, and s2 are non-negative
A copy of the xls can be found here: http://docs.google.com/file/d/0BxzdaGm_pXBncEtNMFRUU0M5QXc
When the solver runs - I get the error message and e1 returns a value of zero - which creates a #DIV/0! error in calculating P1, and everything gets thrown off from there. I'm using the GRG NonLinear solving method.
In an attempt to get a non-zero figure for e1, I tried changing the constraints on e1, e2, s1, s2 from non-negative to ">= 0.0000001" but STILL e1 returns a value of zero?!

Perhaps I've set something up incorrectly? This is my first time doing anything like this in excel, and I'd love some insight on how to get this to work, or even if you guys could comment on my formatting in general that'd be great. I'm sure there's tons of room for improvement.
Thanks in advance, and don't hesitate to ask for clarification of any kind...