Thank you Kelman,

I was trying with this code here "using JuMp" is already mentioned

using jump
using Ipopt
m=Model(solver=IpoptSolver())
@defVar(m, x, start = 0.0)
@defVar(m, y, start = 0.0)
@setNLObjective(m, Min, (1-x)^2 + 100(y-x^2)^2)

solve(m)

println("x = ", getValue(x), "y = ", getValue(y))

BR



On Wednesday, March 30, 2016 at 2:11:39 PM UTC+2, Tony Kelman wrote:
>
> You need
> using JuMP

Reply via email to