Skip to content

Commit

Permalink
woups
Browse files Browse the repository at this point in the history
  • Loading branch information
EveCharbie committed Apr 1, 2024
1 parent 9f89909 commit 29083ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bioptim/limits/penalty_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,4 +1002,5 @@ def get_penalty_controller(self, ocp, nlp) -> PenaltyController:
if nlp.A is not None and (not isinstance(nlp.A, list) or nlp.A != []):
a = [nlp.A[idx] for idx in t_idx]
a_scaled = [nlp.A_scaled[idx] for idx in t_idx]
return PenaltyController(ocp, nlp, t_idx, x, u, x_scaled, u_scaled, nlp.parameters.cx, a, a_scaled)
d = [nlp.dynamics_constants for idx in t_idx]
return PenaltyController(ocp, nlp, t_idx, x, u, x_scaled, u_scaled, nlp.parameters.cx, a, a_scaled, d)

0 comments on commit 29083ab

Please sign in to comment.