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

Interfaces: Add separate formulation for initial stage cost term. #684

Merged
merged 33 commits into from Jan 6, 2021

Conversation

FreyJo
Copy link
Member

@FreyJo FreyJo commented Dec 10, 2020

For MHE problems, the cost term at the initial stage has a special role since it contains the arrival cost.
To model the arrival cost, the MHE example augmented the stage cost term by the arrival cost and set the corresponding weights at the intermediate shooting nodes to zero.
This PR adds the possibility to formulate the initial cost term separately, similarly to how it is done for the terminal one.
Backwards compatibility is obtained by copying the path cost formulation to the initial one, when the latter is not set.

The examples in examples/acados_python/getting_started/mhe/ were adapted accordingly.
Additionally, a Matlab MHE example has been added.

Thanks for the collaboration @sandmaennchen !

FreyJo and others added 29 commits January 6, 2021 11:21
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

Successfully merging this pull request may close these issues.

None yet

4 participants