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