From b9ad905572d8395f27edfa75cdbc93a79d1958cb Mon Sep 17 00:00:00 2001 From: Tim Mensinger Date: Sat, 13 Jan 2024 14:03:10 +0100 Subject: [PATCH] Flatten nested max calls --- src/tranquilo/subsolvers/bntr_fast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tranquilo/subsolvers/bntr_fast.py b/src/tranquilo/subsolvers/bntr_fast.py index 36c54a45..b02cc196 100644 --- a/src/tranquilo/subsolvers/bntr_fast.py +++ b/src/tranquilo/subsolvers/bntr_fast.py @@ -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 (