Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaquim Garcia committed Jul 5, 2024
1 parent 6453eea commit 4297b48
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 4297b48

Please sign in to comment.