Skip to content

Commit

Permalink
blacked
Browse files Browse the repository at this point in the history
  • Loading branch information
EveCharbie committed Mar 28, 2024
1 parent 67d9af0 commit 4cc49ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bioptim/optimization/optimal_control_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -1521,8 +1521,14 @@ def define_parameters_phase_time(
_min = pen_fun.min_bound if pen_fun.min_bound else 0
_max = pen_fun.max_bound if pen_fun.max_bound else inf
else:
_min = pen_fun.extra_parameters["min_bound"] if "min_bound" in pen_fun.extra_parameters else 0
_max = pen_fun.extra_parameters["max_bound"] if "max_bound" in pen_fun.extra_parameters else inf
_min = (
pen_fun.extra_parameters["min_bound"] if "min_bound" in pen_fun.extra_parameters else 0
)
_max = (
pen_fun.extra_parameters["max_bound"]
if "max_bound" in pen_fun.extra_parameters
else inf
)
dt_bounds[key]["min"] = _min / self.nlp[i].ns
dt_bounds[key]["max"] = _max / self.nlp[i].ns

Expand Down

0 comments on commit 4cc49ef

Please sign in to comment.