Skip to content

Commit

Permalink
Reenable solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Nov 8, 2017
1 parent da010de commit 8dff241
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/solvers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ end

#using ECOS
#solver = ECOS.ECOSSolver(verbose=false)
#grb = try_import(:Gurobi)
grb = try_import(:Gurobi)
isgrb(solver) = contains(string(typeof(solver)),"GurobiSolver")
#cpx = try_import(:CPLEX)
cpx = try_import(:CPLEX)
iscpx(solver) = contains(string(typeof(solver)),"CplexSolver")
#xpr = try_import(:Xpress)
#clp = try_import(:Clp)
xpr = try_import(:Xpress)
clp = try_import(:Clp)
isclp(solver) = contains(string(typeof(solver)),"ClpSolver")
glp = try_import(:GLPKMathProgInterface)

lp_solvers = Any[]
#grb && push!(lp_solvers, Gurobi.GurobiSolver(OutputFlag=0))
#cpx && push!(lp_solvers, CPLEX.CplexSolver(CPX_PARAM_SCRIND=0, CPX_PARAM_REDUCE=0))
#xpr && push!(lp_solvers, Xpress.XpressSolver(OUTPUTLOG=0))
#clp && push!(lp_solvers, Clp.ClpSolver())
grb && push!(lp_solvers, Gurobi.GurobiSolver(OutputFlag=0))
cpx && push!(lp_solvers, CPLEX.CplexSolver(CPX_PARAM_SCRIND=0, CPX_PARAM_REDUCE=0))
xpr && push!(lp_solvers, Xpress.XpressSolver(OUTPUTLOG=0))
clp && push!(lp_solvers, Clp.ClpSolver())
glp && push!(lp_solvers, GLPKMathProgInterface.GLPKSolverLP())

0 comments on commit 8dff241

Please sign in to comment.