Skip to content

Commit 7835d9f

Browse files
committed
use the API from [email protected]
1 parent 8baa2f0 commit 7835d9f

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

lib/OptimizationMadNLP/src/OptimizationMadNLP.jl

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ end
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)

lib/OptimizationMadNLP/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ end
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)

0 commit comments

Comments
 (0)