From 38aa2937648c52a4e9cdf0a2bd27bf8f8810998e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Thu, 5 Oct 2023 08:27:49 +0200 Subject: [PATCH] Fix format --- src/MOI_wrapper.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/MOI_wrapper.jl b/src/MOI_wrapper.jl index 87557d6fc8..cf027f409d 100644 --- a/src/MOI_wrapper.jl +++ b/src/MOI_wrapper.jl @@ -158,9 +158,7 @@ function MOI.set( return nothing end -function MOI.supports( - ::Optimizer, ::Union{MOI.ObjectiveSense,MOI.ObjectiveFunction} -) +function MOI.supports(::Optimizer, ::Union{MOI.ObjectiveSense,MOI.ObjectiveFunction}) return true end @@ -177,9 +175,7 @@ function MOI.get( return MOI.get(model.nlp_model, attr) end -function MOI.set( - model::Optimizer, ::MOI.ObjectiveFunction{F}, func::F -) where {F} +function MOI.set(model::Optimizer, ::MOI.ObjectiveFunction{F}, func::F) where {F} nl = convert(MOI.ScalarNonlinearFunction, func) MOI.Nonlinear.set_objective(model.nlp_model, nl) model.problem = nothing