control-toolbox / OptimalControlProblems.jl

Optimal control problems for Julia
http://control-toolbox.org/OptimalControlProblems.jl/
MIT License
8 stars 0 forks source link

[Dev] Add COTS models #4

Closed 0Yassine0 closed 1 week ago

0Yassine0 commented 2 weeks ago

From COTS.jl package, we will add the problems that works perfectly with JuMP and OptimalControl : The Hanging Chain, The Hang Glider, The Robot Arm, The Goddard Rocket, The Particle Steering, The Cart Pendulum, The Moonlander, The Dielectrophoretic Particle, The Ducted Fan, The Double Oscillator and The Electrical Vehicle.

ocots commented 2 weeks ago

@0Yassine0 When you have finished to add the problems, you can make a PR.

frapac commented 1 week ago

I would suggest we add the full list, including the problems where OC is not converging.

As a reference, here is the list of all the problems we have so far:

0Yassine0 commented 1 week ago

Yess I only used the models where we have the same results (nvar, ncon, objective value..) for the same nh. I'll add the full list to the package if you're okay with that. For the tests I checked that the solver gives an optimal solution, should I add a list to exclude the other models or I need to change the test?

frapac commented 1 week ago

Let's add the full list.

For the tests, we should check that:

ocots commented 1 week ago

@PierreMartinon do we have an equivalent of MOI.LOCALLY_SOLVED?

0Yassine0 commented 1 week ago

@PierreMartinon do we have an equivalent of MOI.LOCALLY_SOLVED?

Solving with OC has this field in its return value: sol.message, so we can consider "Solve_Succeeded" as an equivalent of MOI.LOCALLY_SOLVED?

ocots commented 1 week ago

@0Yassine0 not sure. There is also sol.success but I am not sure this field is used.