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

Add structure to solve optimal control problems #7

Merged
merged 57 commits into from
Oct 16, 2023
Merged

Conversation

S-Dafarra
Copy link
Member

This PR adds the structure to solve optimal control problems. In particular, it introduces the multiple_shooting solver together with a minimal set of integrators. While developing the interface, I tried to have the definition of the optimal control problem as much agnostic as possible with respect to the method used to solve it (although only multiple shooting is available at the moment).

The definition of the dynamics can be written in the minimal form dot("x") == f where x is the name of the state variable and f is a CasADi function.

It also fixes #5 and #6

The PR is quite big, as most of the components evolved while I was writing the code. If it is too cumbersome I can try to split it in different PRs.

I would need xf also for explicit integrators that need the control at the last step. So it is pointless to have this distinction
Added possibility to set the dynamics as cost or constraint.
This was possible after registering the problem onto the solver.
@S-Dafarra S-Dafarra self-assigned this May 8, 2023
@S-Dafarra
Copy link
Member Author

Hi @diegoferigo, would you be able to review this PR?

@S-Dafarra
Copy link
Member Author

Hi @diegoferigo, would you be able to review this PR?

Considering that the branch https://github.com/ami-iit/hippopt/tree/humanoidPlanning diverged consisistently, I will go ahead and merge this!

@S-Dafarra S-Dafarra merged commit 88ce8a4 into main Oct 16, 2023
@S-Dafarra S-Dafarra deleted the ocStructure branch January 16, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants