From 0f2597c1c66ad3a4d45325f4c70e09dc94948384 Mon Sep 17 00:00:00 2001 From: Tangi Migot Date: Fri, 6 Sep 2024 21:08:49 -0400 Subject: [PATCH] Update src/PureJuMP/hs201.jl --- src/PureJuMP/hs201.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PureJuMP/hs201.jl b/src/PureJuMP/hs201.jl index 864322fd..9390ba38 100644 --- a/src/PureJuMP/hs201.jl +++ b/src/PureJuMP/hs201.jl @@ -19,6 +19,7 @@ function hs201(args...; n::Int = default_nvar, kwargs...) set_start_value(x2, 9) #Définition de la fonction objectif - @NLobjective(model, Min, 4*(x1-5)^2+(x2-6)^2) + @objective(model, Min, 4*(x1-5)^2+(x2-6)^2) + return model end \ No newline at end of file