This package is a very thin wrapper on top of https://github.com/JuliaOpt/AmplNLWriter.jl that automatically downloads an appropriate Couenne solver binary from https://ampl.com/products/solvers/open-source/ . CouenneNL.jl provides the CouenneNLSolver type, which is a wrapper around the AmplNLSolver from AmplNLWriter.jl.
- Julia v0.6
- Windows, macOS, or Linux
julia> Pkg.clone("https://github.com/rdeits/CouenneNL.jl")
julia> Pkg.build("CouenneNL")
using JuMP, CouenneNL
m = Model(solver=CouenneNLSolver())
@variable m -2 <= x <= 2
@variable m -2 <= y <= 2
@NLconstraint m x^2 + y^2 == 1
@NLobjective m Min (x - 0.1)^2 + (y - 0.1)^2
solve(m)
@test getvalue(x) ≈ 1/√2
@test getvalue(y) ≈ 1/√2