Skip to content

Commit

Permalink
Improves infeasibility ray check of lineartest8
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Nov 4, 2017
1 parent 60271f4 commit 7d77eab
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/contlinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -804,13 +804,12 @@ function linear8test(solver::MOI.AbstractSolver; atol=Base.rtoldefault(Float64),
@test MOI.canget(m, MOI.ConstraintDual(), c)
cd = MOI.get(m, MOI.ConstraintDual(), c)
@test cd < -atol
# TODO: farkas dual on bounds - see #127
# xd = MOI.get(m, MOI.ConstraintDual(), bndx)
# yd = MOI.get(m, MOI.ConstraintDual(), bndy)
# @test xd > atol
# @test yd > atol
# @test yd ≈ -cd atol=atol rtol=rtol
# @test xd ≈ -2cd atol=atol rtol=rtol
xd = MOI.get(m, MOI.ConstraintDual(), bndx)
@test xd > atol
yd = MOI.get(m, MOI.ConstraintDual(), bndy)
@test yd > atol
@test yd -cd atol=atol rtol=rtol
@test xd -2cd atol=atol rtol=rtol
else
# solver returned nothing
@test MOI.get(m, MOI.ResultCount()) == 0
Expand Down

0 comments on commit 7d77eab

Please sign in to comment.