NLopt.jl
NLopt.jl is a wrapper for the NLopt library.
License
NLopt.jl
is licensed under the MIT License.
The underlying solver, stevengj/nlopt, is licensed under the LGPL v3.0 license.
Installation
Install NLopt.jl
using the Julia package manager:
import Pkg
Pkg.add("NLopt")
In addition to installing the NLopt.jl
package, this will also download and install the NLopt binaries. You do not need to install NLopt separately.
Use with JuMP
You can use NLopt with JuMP as follows:
using JuMP, NLopt
model = Model(NLopt.Optimizer)
set_attribute(model, "algorithm", :LD_MMA)
Options
The algorithm
attribute is required. The value must be one of the supported NLopt algorithms.
Documentation
For more details, see the NLopt.jl README or the NLopt documentation.