Replies: 1 comment
-
|
It was a problem with the updating of Julia. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone.
I was trying to change the discretization method to one of those shown here: https://control-toolbox.org/Tutorials.jl/stable/tutorial-discretisation.html.
The problem is that with any method I tried, even :midpoint, I get this warning:
┌ Warning: disc_method does not seem to be a valid Ipopt option.
└ @ NLPModelsIpopt C:\Users\molina.julia\packages\NLPModelsIpopt\0YgvC\src\NLPModelsIpopt.jl:214
It runs the problem, but it does not change the discretization method. I could verify this because I obtained the same iteration steps. This is how I use the solve function:
sol = solve(ocp;disc_method=:trapeze, init=(state=[0.1, 0.1,0.1,20],control=-0.49),grid_size=600, max_iter=1000, tol=1e-8 ).
Could that be a problem with the version of IPOPT I'm using, or could it be something else? I tried updating OptimalControl and NLPModelsIpopt but that did not fix the problem.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions