From b00c78381bfbc03a7e8a74d4a1ab6fb5afcf3e37 Mon Sep 17 00:00:00 2001 From: Tangi Migot Date: Sun, 1 Sep 2024 20:20:46 +0200 Subject: [PATCH] Allow to parametrize max_cgiter (#166) * Allow to parametrize max_cgiter --- src/method.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/method.jl b/src/method.jl index a724d18..57b9a47 100644 --- a/src/method.jl +++ b/src/method.jl @@ -313,6 +313,7 @@ function SolverCore.solve!( inity::Bool = false, subproblem_modifier = identity, subsolver_max_eval = max_eval, + subsolver_max_cgiter = nlp.meta.nvar, verbose::Integer = 0, kwargs..., ) where {T, V} @@ -415,7 +416,7 @@ function SolverCore.solve!( max_time = max_time - stats.elapsed_time, max_eval = min(subsolver_max_eval, rem_eval), verbose = subsolver_verbose, - max_cgiter = nlp.meta.nvar, + max_cgiter = subsolver_max_cgiter, kwargs..., )