From 21bd37b93f8496d1a77bef281f41cba88352ae26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Wed, 4 May 2022 14:51:59 +0200 Subject: [PATCH] Explicitly use GLPK in tests --- test/polyhedron.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/polyhedron.jl b/test/polyhedron.jl index 88a068c..38c156a 100644 --- a/test/polyhedron.jl +++ b/test/polyhedron.jl @@ -1,8 +1,11 @@ using Polyhedra const polyhedra_test = joinpath(dirname(dirname(pathof(Polyhedra))), "test") -include(joinpath(polyhedra_test, "solvers.jl")) - +using JuMP +import GLPK +# Need `"presolve" => GLPK.ON` for `detect_new_linearities`, see +# https://travis-ci.org/github/JuliaPolyhedra/Polyhedra.jl/jobs/691916637#L486 +lp_solver = optimizer_with_attributes(GLPK.Optimizer, "presolve" => GLPK.GLP_ON, MOI.Silent() => true) const LIB = QHull.Library(lp_solver) @testset "Volume" begin