Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constraints at intermediate times #297

Open
ocots opened this issue Sep 13, 2024 · 1 comment
Open

Constraints at intermediate times #297

ocots opened this issue Sep 13, 2024 · 1 comment
Assignees

Comments

@ocots
Copy link
Member

ocots commented Sep 13, 2024

          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 control-toolbox/CTBenchmarks.jl#21 (comment)

@PierreMartinon
Copy link
Member

PierreMartinon commented Sep 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants