Skip to content

Commit a3641ea

Browse files
committed
Fix format
1 parent 8fa7e3b commit a3641ea

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/algorithms/DominguezRios.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,14 @@ function test_lp()
162162
x2 = MOI.add_variable(model)
163163
MOI.add_constraint(model, x1, MOI.GreaterThan(0.0))
164164
MOI.add_constraint(model, x2, MOI.Interval(0.0, 3.0))
165+
C = Float64[
166+
3 1
167+
-1 -2
168+
]
165169
f = MOI.VectorAffineFunction(
166170
[
167-
MOI.VectorAffineTerm(1, MOI.ScalarAffineTerm(3.0, x1))
168-
MOI.VectorAffineTerm(1, MOI.ScalarAffineTerm(1.0, x2));
169-
MOI.VectorAffineTerm(2, MOI.ScalarAffineTerm(-1.0, x1))
170-
MOI.VectorAffineTerm(2, MOI.ScalarAffineTerm(-2.0, x2))
171+
MOI.VectorAffineTerm(i, MOI.ScalarAffineTerm(C[i, j], x[j])) for
172+
i in 1:2 for j in 1:2
171173
],
172174
fill(0.0, 2),
173175
)

0 commit comments

Comments
 (0)