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

Formulate constraints as L2 and Huber penalties in Python #980

Merged
merged 16 commits into from
Oct 26, 2023

Conversation

FreyJo
Copy link
Member

@FreyJo FreyJo commented Oct 25, 2023

Added functions to AcadosOcp:

  • formulate_constraint_as_L2_penalty
  • formulate_constraint_as_Huber_penalty
  • translate_nls_cost_to_conl

Added test_polynomial_controls_and_penalties

@FreyJo FreyJo changed the title Wip penalties Work on formulating constraints as penalties in Python (Huber + L2) Oct 26, 2023
@FreyJo FreyJo changed the title Work on formulating constraints as penalties in Python (Huber + L2) Work on formulating constraints as L2 and Huber penalties in Python Oct 26, 2023
@FreyJo FreyJo changed the title Work on formulating constraints as L2 and Huber penalties in Python Formulate constraints as L2 and Huber penalties in Python Oct 26, 2023
Copy link
Contributor

@sandmaennchen sandmaennchen left a comment

Choose a reason for hiding this comment

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

👍

interfaces/acados_template/acados_template/acados_ocp.py Outdated Show resolved Hide resolved
@FreyJo FreyJo merged commit 62933a3 into acados:master Oct 26, 2023
3 checks passed
@FreyJo FreyJo deleted the wip_penalties branch October 26, 2023 15:24
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

2 participants