Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Pandatheon
Copy link
Contributor

@Pandatheon Pandatheon commented Jul 9, 2025

  • Add support for soft nonlinear constraint in AcadosCasadiOCP
  • Preliminarily complete get() and set()for slack variables in AcadosCasadiOcpSolver
  • Add a draft test for testing soft nonlinear constraint
  • Initially write some helper functions for simplification

@Pandatheon Pandatheon requested a review from FreyJo July 9, 2025 15:00
@Pandatheon Pandatheon requested a review from FreyJo July 10, 2025 08:35
@Pandatheon Pandatheon marked this pull request as ready for review July 15, 2025 10:35
@Pandatheon Pandatheon assigned Pandatheon and unassigned Pandatheon Jul 15, 2025
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.

I added some minor comments, but it already looks pretty good!

lb_slack_node.append(0 * ca.DM.ones((dims.ns_0, 1)))
ub_slack_node.append(np.inf * ca.DM.ones((dims.ns_0, 1)))
elif i < N_horizon and dims.ns:
lb_slack_node.append(0 * ca.DM.ones((dims.ns, 1)))
Copy link
Member

Choose a reason for hiding this comment

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

Instead of the zeros it should be:
It should be [lsbu, lsbx, lsg, lsh, lsphi].
Off course those values are zero in the vast majority of cases though.

@FreyJo FreyJo merged commit e1b9e2f into acados:main Jul 16, 2025
14 checks passed
@FreyJo FreyJo deleted the slack branch July 16, 2025 13:09
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