electricpete
Electrical
- May 4, 2001
- 16,774
Usually solver does what you expect it to do.
Recently I worked a problem with a lot of input variables where solver got really stupid. It would leave one input variable exactly where I put the initial guess, no matter what. Manually changing that one variable by a small amount(with no other changes) was all that was required to improve the minimization problem, but solver wouldn't do it.
Then I looked at the solver options:
Estimates:Tangent
Derivatives:Forward
Search: Conjugate.
I changed search from Conjugate to Newton and then immediately it solved the problem very accurately.
Strange experience. The help doesn't give you any clue that conjugate is stupid, but that is my conclusion. At any rate if solver doesn't work, try playing with those options.
=====================================
Eng-tips forums: The best place on the web for engineering discussions.
Recently I worked a problem with a lot of input variables where solver got really stupid. It would leave one input variable exactly where I put the initial guess, no matter what. Manually changing that one variable by a small amount(with no other changes) was all that was required to improve the minimization problem, but solver wouldn't do it.
Then I looked at the solver options:
Estimates:Tangent
Derivatives:Forward
Search: Conjugate.
I changed search from Conjugate to Newton and then immediately it solved the problem very accurately.
Strange experience. The help doesn't give you any clue that conjugate is stupid, but that is my conclusion. At any rate if solver doesn't work, try playing with those options.
=====================================
Eng-tips forums: The best place on the web for engineering discussions.