Comparison "fixed h method" (opty 1.12) vs. "variable h method" #176
Replies: 3 comments 1 reply
-
The amount of time it takes IPOPT to find a solution depends on many factors. It does not surprise me that it takes longer with minor changes (visible to you). You can make very minor changes in a problem and IPOPT may not even converge at all! |
Beta Was this translation helpful? Give feedback.
-
I think, you once told me, that optimization is a combination of math and art! |
Beta Was this translation helpful? Give feedback.
-
I think I misunderstood this question when I answered it. I thought you were talking about how long Ipopt takes to execute but I think you are talking about the duration of the simulation solution. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I found this ‘strange’ behaviour:
Using the “fixed h method”, I find a solution which gets the pendulum in an upright position in, say, duration = 7.5 sec, num_nodes = 250
Now, I run the ” variable h method” with exactly the same initial conditions, and I set initial_guess[-1] = 7.5 / 249.
It does find a solution, but duration = 249 * solution[-1] = 25 sec !
Intuitively one would think, it should minimally find a solution with 249 * solution[-1] <= 7.5 sec ?
Where is my thinking wrong?
Thanks!
I will be happy to share my simulation if this is of use.
Beta Was this translation helpful? Give feedback.
All reactions