-
Hi,
In this setting, it works just fine. But when I tried to change the horizon into something like (changing nothing but the number of points in the linspace):
the result seemed to be extremely strange, with the inputs u always remaining the same:
It's the case for all I'm confused by this results and wonder what's the actual use of 'horizon'? (I do notice from the comments that it's a "List of times at which the optimal input should be computed", but I still can't understand) Hope for any help. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I am struggling with the same problem. |
Beta Was this translation helpful? Give feedback.
-
I've got this on my list to take a look at, but haven't had a chance. One quick thing is that if you want to change the parameters sent to the optimizer, use the |
Beta Was this translation helpful? Give feedback.
-
This problem is addressed in PR #799 by switching to using collocation as the default method for solving optimal control problems. This is much more numerically stable and provides good solutions to the example problem from the documentation (and without the issues are the solution only working for a specific number of time points). |
Beta Was this translation helpful? Give feedback.
This problem is addressed in PR #799 by switching to using collocation as the default method for solving optimal control problems. This is much more numerically stable and provides good solutions to the example problem from the documentation (and without the issues are the solution only working for a specific number of time points).