Error in JuMP with nonlinear objective

Instead of

@variable(model, x[1:100], start = 0.00001)
for i in 1:20
    @constraint(model, x[i] >= 0.0)
end

use

@variable(model, x[1:100], start = 0.00001)
for i=1:20
    set_lower_bound(x[i], 0.0)
end
1 Like