diff --git a/estimator/lwe_primal.py b/estimator/lwe_primal.py index 6a985cc..4029650 100644 --- a/estimator/lwe_primal.py +++ b/estimator/lwe_primal.py @@ -610,7 +610,7 @@ def find_zeta_max(params, red_cost_model): if zeta is None: zeta_max = find_zeta_max(params, red_cost_model) - with local_minimum(0, zeta_max, log_level=log_level) as it: + with local_minimum(0, min(zeta_max, params.n), log_level=log_level) as it: for zeta in it: it.update( f(