Skip to content

Commit

Permalink
Flatten nested max calls
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Jan 13, 2024
1 parent aa54bb6 commit b9ad905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tranquilo/subsolvers/bntr_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def _take_preliminary_gradient_descent_step_and_check_for_solution(

if not converged:
trustregion_radius = min(
max(min_radius, max(trustregion_radius, radius_lower_bound)), max_radius
max(min_radius, trustregion_radius, radius_lower_bound), max_radius
)

return (
Expand Down

0 comments on commit b9ad905

Please sign in to comment.