8000 Get & set Lagrange multipliers in `AcadosCasadiOcpSolver` by Pandatheon · Pull Request #1534 · acados/acados · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Get & set Lagrange multipliers in AcadosCasadiOcpSolver #1534

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

Merged
merged 24 commits into from
Jun 4, 2025

Conversation

Pandatheon
Copy link
Contributor
@Pandatheon Pandatheon commented May 27, 2025
  • Investigated the relation between lagrange multiplier in acados and casadi, which is $\lambda_{aca}^u-\lambda_{cas}^l=\lambda_{cas}$
  • Setup index list for locating variables in solution
  • Added checks on supported features: no algebraic variables and slacks yet
  • Completed get(), get_flat(), set(), set_flat() functions
  • Completed save and load functions and tested in test_casdi_formulation.py

@Pandatheon Pandatheon changed the title try adding save/load Support lagrange multiplier & Save/Load function in 'AcadosCasadiOcpSolver' Jun 4, 2025
@Pandatheon Pandatheon changed the title Support lagrange multiplier & Save/Load function in 'AcadosCasadiOcpSolver' Support lagrange multiplier & Save/Load function in AcadosCasadiOcpSolver Jun 4, 2025
@Pandatheon Pandatheon marked this pull request as ready for review June 4, 2025 09:13
@Pandatheon Pandatheon marked this pull request as draft June 4, 2025 09:13
@Pandatheon Pandatheon marked this pull request as ready for review June 4, 2025 09:14
Copy link
Member
@FreyJo FreyJo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!
I did a number of improvements and left one TODO for you.

@FreyJo FreyJo changed the title Support lagrange multiplier & Save/Load function in AcadosCasadiOcpSolver Get & set Lagrange multipliers in AcadosCasadiOcpSolver Jun 4, 2025
@FreyJo FreyJo merged commit be57f1a into acados:main Jun 4, 2025
14 checks passed
@Pandatheon Pandatheon deleted the lagrange branch June 15, 2025 12:40
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.

2 participants
0