Skip to content

Commit f01b291

Browse files
authored
Update hs61.jl
1 parent 3054d7c commit f01b291

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PureJuMP/hs61.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ function hs61(args...; kwargs...)
1818
nlp = Model()
1919
@variable(nlp, x[i = 1:3], start = 0)
2020

21-
@constraint(nlp, 3 * x[1] - 2 * x[2]^2 - 7 == 0)
22-
@constraint(nlp, 4 * x[1] - x[3]^2 - 11 == 0)
21+
@NLconstraint(nlp, 3 * x[1] - 2 * x[2]^2 - 7 == 0)
22+
@NLconstraint(nlp, 4 * x[1] - x[3]^2 - 11 == 0)
2323

2424
@NLobjective(nlp, Min, 4 * x[1]^2 + 2 * x[2]^2 + 2 * x[3]^2 - 33 * x[1] + 16 * x[2] - 24 * x[3])
2525

0 commit comments

Comments
 (0)