Skip to content

Commit 8e27cf4

Browse files
committed
format
1 parent 0941239 commit 8e27cf4

1 file changed

Lines changed: 13 additions & 19 deletions

File tree

test/test_MathOptInterface.jl

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -378,13 +378,9 @@ function test_moi_ListOfConstraintTypesPresent()
378378
model = POI.Optimizer(ipopt)
379379
MOI.set(model, MOI.Silent(), true)
380380
x = MOI.add_variables(model, N / 2)
381-
y =
382-
first.(
383-
MOI.add_constrained_variable.(
384-
model,
385-
MOI.Parameter.(ones(Int(N / 2))),
386-
),
387-
)
381+
y = first.(
382+
MOI.add_constrained_variable.(model, MOI.Parameter.(ones(Int(N / 2)))),
383+
)
388384

389385
MOI.add_constraint(
390386
model,
@@ -686,11 +682,10 @@ function test_vector_parameter_affine_nonnegatives()
686682
t, ct = MOI.add_constrained_variable(model, MOI.Parameter(5.0))
687683
A = [1.0 0 -1; 0 1 -1]
688684
b = [1.0; 2]
689-
terms =
690-
MOI.VectorAffineTerm.(
691-
1:2,
692-
MOI.ScalarAffineTerm.(A, reshape([x, y, t], 1, 3)),
693-
)
685+
terms = MOI.VectorAffineTerm.(
686+
1:2,
687+
MOI.ScalarAffineTerm.(A, reshape([x, y, t], 1, 3)),
688+
)
694689
f = MOI.VectorAffineFunction(vec(terms), b)
695690
set = MOI.Nonnegatives(2)
696691
cnn = MOI.add_constraint(model, f, MOI.Nonnegatives(2))
@@ -746,11 +741,10 @@ function test_vector_parameter_affine_nonpositives()
746741
t, ct = MOI.add_constrained_variable(model, MOI.Parameter(5.0))
747742
A = [-1.0 0 1; 0 -1 1]
748743
b = [-1.0; -2]
749-
terms =
750-
MOI.VectorAffineTerm.(
751-
1:2,
752-
MOI.ScalarAffineTerm.(A, reshape([x, y, t], 1, 3)),
753-
)
744+
terms = MOI.VectorAffineTerm.(
745+
1:2,
746+
MOI.ScalarAffineTerm.(A, reshape([x, y, t], 1, 3)),
747+
)
754748
f = MOI.VectorAffineFunction(vec(terms), b)
755749
set = MOI.Nonnegatives(2)
756750
cnn = MOI.add_constraint(model, f, MOI.Nonpositives(2))
@@ -2128,7 +2122,7 @@ MOI.Utilities.@model(
21282122
(MOI.ScalarAffineFunction,),
21292123
(),
21302124
()
2131-
);
2125+
)
21322126

21332127
MOI.Utilities.@model(
21342128
Model185_2,
@@ -2140,7 +2134,7 @@ MOI.Utilities.@model(
21402134
(),
21412135
(),
21422136
(MOI.VectorAffineFunction,)
2143-
);
2137+
)
21442138

21452139
function test_issue_185()
21462140
inner = Model185{Float64}()

0 commit comments

Comments
 (0)