From 29083ab93c5f264f1fddb3f94efdf721f0adbcef Mon Sep 17 00:00:00 2001 From: Charbie Date: Mon, 1 Apr 2024 12:31:55 -0400 Subject: [PATCH] woups --- bioptim/limits/penalty_option.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bioptim/limits/penalty_option.py b/bioptim/limits/penalty_option.py index 50c0dae13..16caa7c7e 100644 --- a/bioptim/limits/penalty_option.py +++ b/bioptim/limits/penalty_option.py @@ -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)