# JuMP - NLopt - How to set local optimizer

**URL:** https://discourse.julialang.org/t/jump-nlopt-how-to-set-local-optimizer/1053
**Category:** Optimization (Mathematical)
**Created:** [December 20, 2016, 8:56am UTC](https://discourse.julialang.org/t/jump-nlopt-how-to-set-local-optimizer/1053 "2016-12-20T08:56:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![holger](https://avatars.discourse-cdn.com/v4/letter/h/ed8c4c/32.png) [@holger](https://discourse.julialang.org/u/holger)
#### Post date: [December 20, 2016, 8:56am UTC](https://discourse.julialang.org/t/jump-nlopt-how-to-set-local-optimizer/1053/1 "2016-12-20T08:56:14Z")

</div>

I am formulating an NLP in JuMP and would like to try out different solvers using NLopt. Some of them require setting a local optimization algorithm. How do I do that in JuMP?

To be more specific, say I have:  
m = Model(solver=NLoptSolver(algorithm=:AUG\_LAG))

On the NLopt\_algorithm page it says I should use ‘nlopt\_set\_local\_optimizer’. However, I do not see any field in m.solver where I could specify a local optimizer.

Thanks already in advance!

---

<div class="post-metadata">

### Author: ![miles.lubin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/miles.lubin/32/279_2.png) [@miles.lubin](https://discourse.julialang.org/u/miles.lubin)
#### Post date: [December 22, 2016, 7:46pm UTC](https://discourse.julialang.org/t/jump-nlopt-how-to-set-local-optimizer/1053/2 "2016-12-22T19:46:21Z")

</div>

It’s quite likely not implemented. Pull requests are welcome. Have a look [here](https://github.com/JuliaOpt/NLopt.jl/blob/547915c0959fe748d15541848ad92d038290a7ed/src/NLoptSolverInterface.jl).
