Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

Improves infeasibility ray check of lineartest8 #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 src/contlinear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -855,13 +855,12 @@ function linear8atest(solver::Function, config::TestConfig)
@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