hartjonathand
New Member
- Joined
- May 23, 2016
- Messages
- 18
Hey guys,
I have a button on one of my worksheets for which the code is related a calculator that is necessary to recalculate returns every time you re-enter assumptions.
My question is, in order to use solver to solve the nonlinear optimization problem (I have to solve for two percentages based on 3-5 constraints) correctly, the returns need to be recalculated for each iteration with the VBA calculator otherwise the optimization problem isn't accurately solved. Is there a way to loop the other VBA based calculator into each iteration of solver given that one of the values required to solve for the optimal profit is based on values from the VBA calculator?
Thanks in advance-
I have a button on one of my worksheets for which the code is related a calculator that is necessary to recalculate returns every time you re-enter assumptions.
My question is, in order to use solver to solve the nonlinear optimization problem (I have to solve for two percentages based on 3-5 constraints) correctly, the returns need to be recalculated for each iteration with the VBA calculator otherwise the optimization problem isn't accurately solved. Is there a way to loop the other VBA based calculator into each iteration of solver given that one of the values required to solve for the optimal profit is based on values from the VBA calculator?
Thanks in advance-