From c3e4017d74d1216bd4851216796bce46545bccb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Sun, 31 Dec 2017 11:17:47 +0100 Subject: [PATCH] Improves infeasibility ray check of lineartest8 --- src/contlinear.jl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/contlinear.jl b/src/contlinear.jl index 890a758..a3e3f01 100644 --- a/src/contlinear.jl +++ b/src/contlinear.jl @@ -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