From 331dc03d7505550fc0895e1fb73c864dbc9e6fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Fri, 8 Sep 2017 12:23:51 +0200 Subject: [PATCH] Improves infeasibility ray check of lineartest8 --- test/contlinear.jl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/test/contlinear.jl b/test/contlinear.jl index 6fd9794d9f..b95d410f4c 100644 --- a/test/contlinear.jl +++ b/test/contlinear.jl @@ -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