EDIT(odow): this was asked as a separate question: Dynamic NL expression in julia
Hi, I am using Juniper to solve MNILP and with array of nonlinear expression i am getting invalid model error. is there a way to generate nonlinear expression names in a loop like
@variable(model,x)
zz=0.0
for i in 1:5
for j in 1:5
global zz=zz+1
println(zz)
xmm_$zz=@NLexpression(model,x+x*x+zz)
end
end
println(model)