Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly use GLPK in tests
Browse files Browse the repository at this point in the history
blegat committed May 4, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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

0 comments on commit 896a8ec

Please sign in to comment.