Commit b43c5ddf authored by Johannes Mey's avatar Johannes Mey
Browse files

enable cuts

parent 6b68ae77
......@@ -207,8 +207,14 @@ public class ILPDirectSolver extends AbstractILPSolver {
GLPK.glp_scale_prob(prob, GLPKConstants.GLP_SF_AUTO);
// TODO binarize may be needed
// parm.setBinarize(GLPKConstants.GLP_ON);
// the ILP is binary already
// param.setBinarize(GLPKConstants.GLP_ON);
// all cuts on
param.setClq_cuts(GLPKConstants.GLP_ON);
param.setMir_cuts(GLPKConstants.GLP_ON);
param.setGmi_cuts(GLPKConstants.GLP_ON);
param.setCov_cuts(GLPKConstants.GLP_ON);
// -- Msg_lev --
// No output (0) No output.
......
......@@ -104,6 +104,7 @@ public class ILPExternalSolver extends AbstractILPSolver {
String command = "glpsol --lp " + lp.toAbsolutePath() +
// " -w " + solution.toAbsolutePath() +
" --tmlim " + remainingTimeForSolvingInMillis/1000 +
" --cuts" +
" -o " + solutionReadable.toAbsolutePath();
logger.debug("Call: '{}'", command);
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment