We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3054d7c commit f01b291Copy full SHA for f01b291
src/PureJuMP/hs61.jl
@@ -18,8 +18,8 @@ function hs61(args...; kwargs...)
18
nlp = Model()
19
@variable(nlp, x[i = 1:3], start = 0)
20
21
- @constraint(nlp, 3 * x[1] - 2 * x[2]^2 - 7 == 0)
22
- @constraint(nlp, 4 * x[1] - x[3]^2 - 11 == 0)
+ @NLconstraint(nlp, 3 * x[1] - 2 * x[2]^2 - 7 == 0)
+ @NLconstraint(nlp, 4 * x[1] - x[3]^2 - 11 == 0)
23
24
@NLobjective(nlp, Min, 4 * x[1]^2 + 2 * x[2]^2 + 2 * x[3]^2 - 33 * x[1] + 16 * x[2] - 24 * x[3])
25
0 commit comments