From 4297b489fe306cf184bce4ace8f212172eacea50 Mon Sep 17 00:00:00 2001 From: Joaquim Garcia Date: Thu, 4 Jul 2024 21:20:26 -0300 Subject: [PATCH] fix format --- src/MOI_wrapper.jl | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/MOI_wrapper.jl b/src/MOI_wrapper.jl index e13a286..797f4a7 100644 --- a/src/MOI_wrapper.jl +++ b/src/MOI_wrapper.jl @@ -710,11 +710,8 @@ function _add_constraint_with_parameters_on_function( func = _current_function(pf) if !_is_affine(func) fq = func - inner_ci = MOI.Utilities.normalize_and_add_constraint( - model.optimizer, - fq, - s, - ) + inner_ci = + MOI.Utilities.normalize_and_add_constraint(model.optimizer, fq, s) model.last_quad_add_added += 1 outer_ci = MOI.ConstraintIndex{MOI.ScalarQuadraticFunction{T},S}( model.last_quad_add_added, @@ -723,11 +720,8 @@ function _add_constraint_with_parameters_on_function( model.constraint_outer_to_inner[outer_ci] = inner_ci else fa = MOI.ScalarAffineFunction(func.affine_terms, func.constant) - inner_ci = MOI.Utilities.normalize_and_add_constraint( - model.optimizer, - fa, - s, - ) + inner_ci = + MOI.Utilities.normalize_and_add_constraint(model.optimizer, fa, s) model.last_quad_add_added += 1 outer_ci = MOI.ConstraintIndex{MOI.ScalarQuadraticFunction{T},S}( model.last_quad_add_added,