Skip to content

Improves infeasibility ray check of lineartest8 #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(instance, MOI.ConstraintDual(), c)
cd = MOI.get(instance, MOI.ConstraintDual(), c)
@test cd < -atol
# TODO: farkas dual on bounds - see #127
# xd = MOI.get(instance, MOI.ConstraintDual(), bndx)
# yd = MOI.get(instance, 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(instance, MOI.ConstraintDual(), bndx)
@test xd > atol
yd = MOI.get(instance, 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(instance, MOI.ResultCount()) == 0
Expand Down