Skip to content

Commit

Permalink
Allow to parametrize max_cgiter (#166)
Browse files Browse the repository at this point in the history
* Allow to parametrize max_cgiter
  • Loading branch information
tmigot authored Sep 1, 2024
1 parent 718d973 commit b00c783
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/method.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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...,
)

Expand Down

0 comments on commit b00c783

Please sign in to comment.