control-toolbox / CTBase.jl

Fundamentals of the control-toolbox ecosystem
http://control-toolbox.org/CTBase.jl/
MIT License
12 stars 3 forks source link

Constraints at intermediate times #297

Open ocots opened 2 weeks ago

ocots commented 2 weeks ago
          The example provided in this [tutorial](https://infiniteopt.github.io/InfiniteOpt.jl/stable/examples/Optimal%20Control/hovercraft/) have constraints on intermediate values of the state.

I guess that's not allowed in OptimalControl. I'll look for another model to use in the comparison : https://infiniteopt.github.io/InfiniteOpt.jl/stable/examples/Optimal%20Control/consumption_savings/#Consumption-Savings-Problem

Originally posted by @0Yassine0 in https://github.com/control-toolbox/CTBenchmarks.jl/issues/21#issuecomment-2346163591

PierreMartinon commented 3 days ago

Hi there, Nope, but it could be an extension of 'setPointConstraints' which currently enforces the boundary constraints at initial and final time, and the constraints on the optimization variables. The main question is how to define/pass the relevant data. The intermediate times could be inserted into the normal time grid since we support non-uniform grids.

Another option could be to use an interpolation to approximate the state at these times, which may be less interesting for this particular case, but on the other hand opens the possibility of treating delay problems (as done in Bocop). Although the modeling of the dynamics would have to be extended somehow.