# MadNLP.jl in JuMP

**URL:** <https://discourse.julialang.org/t/madnlp-jl-in-jump/136380>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, optimization\
**Created:** [March 25, 2026, 12:38pm UTC](https://discourse.julialang.org/t/madnlp-jl-in-jump/136380 "2026-03-25T12:38:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nico](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nico/32/211667_2.png) [@nico](https://discourse.julialang.org/u/nico)\
**Post date:** [March 25, 2026, 12:38pm UTC](https://discourse.julialang.org/t/madnlp-jl-in-jump/136380/1 "2026-03-25T12:38:40Z")

</div>

Hi All, I am trying to change some settings in MadNLP.jl when used via JuMP.jl. I would like to change the barrier strategy from the default monotone to adaptive. I just do not manage to change those settings. Does anyone know how to do that please?

These settings work:

```julia
        model = Model(MadNLP.Optimizer)
        set_attribute(model, "print_level", MadNLP.INFO)
        set_attribute(model, "max_iter", 50)
        set_attribute(model, "tol", 1e-8)
        set_attribute(model, "acceptable_tol", 1e-6)
        set_attribute(model, "output_file", folderRes * "madnlp_out.txt")

```

but I do not manage to add something like:

```julia-auto
       set_attribute(model, "barrier", "adaptive")

```

Thanks!

---

<div class="post-metadata">

**Author:** ![sshin23](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sshin23/32/205225_2.png) [@sshin23](https://discourse.julialang.org/u/sshin23)\
**Post date:** [March 25, 2026, 8:12pm UTC](https://discourse.julialang.org/t/madnlp-jl-in-jump/136380/2 "2026-03-25T20:12:36Z")

</div>

Hey @nico, please try:

```julia
set_attribute(model, "barrier", MadNLP.QualityFunctionUpdate())
set_attribute(model, "barrier", MadNLP.LOQOUpdate())

```

---

<div class="post-metadata">

**Author:** ![nico](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nico/32/211667_2.png) [@nico](https://discourse.julialang.org/u/nico)\
**Post date:** [March 26, 2026, 8:59am UTC](https://discourse.julialang.org/t/madnlp-jl-in-jump/136380/3 "2026-03-26T08:59:17Z")

</div>

> [@sshin23](#):
>
> `set_attribute(model, "barrier", MadNLP.LOQOUpdate())`

Thank you very much!
