Skip to content

Commit 8fa7e3b

Browse files
committed
Update
1 parent e8df858 commit 8fa7e3b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/algorithms/DominguezRios.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,16 @@ function test_lp()
165165
f = MOI.VectorAffineFunction(
166166
[
167167
MOI.VectorAffineTerm(1, MOI.ScalarAffineTerm(3.0, x1))
168-
MOI.VectorAffineTerm(1, MOI.ScalarAffineTerm(1.0, x1));
168+
MOI.VectorAffineTerm(1, MOI.ScalarAffineTerm(1.0, x2));
169169
MOI.VectorAffineTerm(2, MOI.ScalarAffineTerm(-1.0, x1))
170-
MOI.VectorAffineTerm(2, MOI.ScalarAffineTerm(-2.0, x1))
170+
MOI.VectorAffineTerm(2, MOI.ScalarAffineTerm(-2.0, x2))
171171
],
172172
fill(0.0, 2),
173173
)
174-
MOI.add_constraint(model, 3.0 * x1 - x2, MOI.LessThan(6.0))
174+
MOI.add_constraint(model, 3.0 * x1 - 1.0 * x2, MOI.LessThan(6.0))
175175
MOI.set(model, MOA.Algorithm(), MOA.DominguezRios())
176+
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
177+
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
176178
MOI.optimize!(model)
177179
@test MOI.get(model, MOI.TerminationStatus()) == MOI.OPTIMAL
178180
end

0 commit comments

Comments
 (0)