Skip to content

Commit

Permalink
blacked
Browse files Browse the repository at this point in the history
  • Loading branch information
EveCharbie committed Aug 23, 2024
1 parent 803c866 commit 14355c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bioptim/limits/penalty.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,11 @@ def minimize_contact_forces_end_of_interval(
penalty.quadratic = True if penalty.quadratic is None else penalty.quadratic

t_span = controller.t_span.cx
cx = horzcat(*([controller.states.cx_start] + controller.states.cx_intermediates_list)) if controller.get_nlp.ode_solver.is_direct_collocation else controller.states.cx_start
cx = (
horzcat(*([controller.states.cx_start] + controller.states.cx_intermediates_list))
if controller.get_nlp.ode_solver.is_direct_collocation
else controller.states.cx_start
)
end_of_interval_states = controller.integrate(
t_span=t_span,
x0=cx,
Expand Down

0 comments on commit 14355c0

Please sign in to comment.