Skip to content

Commit 896a8ec

Browse files
committed
Explicitly use GLPK in tests
1 parent b49db28 commit 896a8ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/polyhedron.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using Polyhedra
22
const polyhedra_test = joinpath(dirname(dirname(pathof(Polyhedra))), "test")
33

4-
include(joinpath(polyhedra_test, "solvers.jl"))
5-
4+
import GLPK
5+
# Need `"presolve" => GLPK.ON` for `detect_new_linearities`, see
6+
# https://travis-ci.org/github/JuliaPolyhedra/Polyhedra.jl/jobs/691916637#L486
7+
lp_solver = MOI.OptimizerWithAttributes(GLPK.Optimizer, "presolve" => GLPK.GLP_ON, MOI.Silent() => true)
68
const LIB = QHull.Library(lp_solver)
79

810
@testset "Volume" begin

0 commit comments

Comments
 (0)