Replies: 5 comments 10 replies
-
We should think about what are the extensions and what is given. We could imagine that under using OptimalControl
@def ocp begin
# ...
end
docp = DirectTranscription(ocp) then, the user can solve |
Beta Was this translation helpful? Give feedback.
-
Imagine we split Now we can see using OptimalControl
using Plots
using StandardNLPSolver # this means that the user uses its own NLP solver
@def ocp begin
# ...
end
docp = DirectTranscription(ocp)
sol = StandardNLPSolver.solve(NLP(docp))
plot(sol, ocp) # this is provided by CTPlots.jl which is loaded since we have: using Plots |
Beta Was this translation helpful? Give feedback.
-
Fine with me. In the future we may even use another package than Plots, eg Makie. |
Beta Was this translation helpful? Give feedback.
-
We could see also using OptimalControl
using Plots
using ...
@def ocp begin
# ...
end
sol = solve(ocp)
plot(sol, ocp) # this is provided by CTPlots.jl which is loaded since we have: using Plots but we need to figure out how |
Beta Was this translation helpful? Give feedback.
-
@ocots @PierreMartinon @joseph-gergaud (pinging everyone, I actually missed this discussion!) All fine. For the record:
using OptimalControl
using NLPModelsIpopt
using Plots
@def ocp ...
docp = ADLNPModel(ocp) # or DirectTranscription(ocp; model=:adnlp)...
sol = Ipopt(docp)
plot(sol, ocp) |
Beta Was this translation helpful? Give feedback.
-
For the moment, the user can do the following:
With the future release, since the
plot
function will be in an extension, then the user will have to do the following:Beta Was this translation helpful? Give feedback.
All reactions