Skip to content

Commit

Permalink
Update hs61.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored May 22, 2024
1 parent 3054d7c commit f01b291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PureJuMP/hs61.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function hs61(args...; kwargs...)
nlp = Model()
@variable(nlp, x[i = 1:3], start = 0)

@constraint(nlp, 3 * x[1] - 2 * x[2]^2 - 7 == 0)
@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)

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

Expand Down

0 comments on commit f01b291

Please sign in to comment.