Skip to content

Commit

Permalink
Explicitly use GLPK in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 4, 2022
1 parent b49db28 commit 896a8ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/polyhedron.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using Polyhedra
const polyhedra_test = joinpath(dirname(dirname(pathof(Polyhedra))), "test")

include(joinpath(polyhedra_test, "solvers.jl"))

import GLPK
# Need `"presolve" => GLPK.ON` for `detect_new_linearities`, see
# https://travis-ci.org/github/JuliaPolyhedra/Polyhedra.jl/jobs/691916637#L486
lp_solver = MOI.OptimizerWithAttributes(GLPK.Optimizer, "presolve" => GLPK.GLP_ON, MOI.Silent() => true)
const LIB = QHull.Library(lp_solver)

@testset "Volume" begin
Expand Down

0 comments on commit 896a8ec

Please sign in to comment.