From f01b2918506e520caa0e4f54095da37fa6d8c4b8 Mon Sep 17 00:00:00 2001 From: Alexis Montoison <35051714+amontoison@users.noreply.github.com> Date: Wed, 22 May 2024 15:14:07 -0400 Subject: [PATCH] Update hs61.jl --- src/PureJuMP/hs61.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PureJuMP/hs61.jl b/src/PureJuMP/hs61.jl index 43f7c57e..4868c1b0 100644 --- a/src/PureJuMP/hs61.jl +++ b/src/PureJuMP/hs61.jl @@ -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])