File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 236236
237237 kkt_system:: Union{Nothing, Type} = nothing # e.g. DenseKKTSystem
238238
239- # Barrier method (defaults to MonotoneUpdate)
240- barrier:: Union{Nothing, MadNLP.AbstractBarrierUpdate} = nothing
239+ mu_init:: T = 0.1
241240
242241 # Quasi-Newton options (used when hessian_approximation is CompactLBFGS, BFGS, or DampedBFGS)
243242 quasi_newton_options:: Union{Nothing, MadNLP.QuasiNewtonOptions} = nothing
@@ -380,13 +379,7 @@ function __map_optimizer_args(cache,
380379 # Build final options dictionary
381380 options = Dict {Symbol, Any} (opt. additional_options)
382381
383- # Add barrier if provided, otherwise create default
384- if ! isnothing (opt. barrier)
385- options[:barrier ] = opt. barrier
386- else
387- # Create default barrier (MonotoneUpdate with default mu_init)
388- options[:barrier ] = MadNLP. MonotoneUpdate {T} ()
389- end
382+ options[:mu_init ] = opt. mu_init
390383
391384 # Add quasi_newton_options if provided, otherwise create default
392385 if ! isnothing (opt. quasi_newton_options)
Original file line number Diff line number Diff line change 238238 acceptable_tol = 1e-6 ,
239239 acceptable_iter = 10 ,
240240 blas_num_threads = 2 ,
241- barrier = MadNLP . MonotoneUpdate ( mu_init = 0.01 )
241+ mu_init = 0.01
242242 )
243243 sol = solve (prob, opt)
244244 @test SciMLBase. successful_retcode (sol)
You can’t perform that action at this time.
0 commit comments