Skip to content

Commit 331dc03

Browse files
committed
Improves infeasibility ray check of lineartest8
1 parent 6e5203b commit 331dc03

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/contlinear.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -804,13 +804,12 @@ function linear8test(solver::MOI.AbstractSolver; atol=Base.rtoldefault(Float64),
804804
@test MOI.canget(instance, MOI.ConstraintDual(), c)
805805
cd = MOI.get(instance, MOI.ConstraintDual(), c)
806806
@test cd < -atol
807-
# TODO: farkas dual on bounds - see #127
808-
# xd = MOI.get(instance, MOI.ConstraintDual(), bndx)
809-
# yd = MOI.get(instance, MOI.ConstraintDual(), bndy)
810-
# @test xd > atol
811-
# @test yd > atol
812-
# @test yd ≈ -cd atol=atol rtol=rtol
813-
# @test xd ≈ -2cd atol=atol rtol=rtol
807+
xd = MOI.get(instance, MOI.ConstraintDual(), bndx)
808+
@test xd > atol
809+
yd = MOI.get(instance, MOI.ConstraintDual(), bndy)
810+
@test yd > atol
811+
@test yd -cd atol=atol rtol=rtol
812+
@test xd -2cd atol=atol rtol=rtol
814813
else
815814
# solver returned nothing
816815
@test MOI.get(instance, MOI.ResultCount()) == 0

0 commit comments

Comments
 (0)