Skip to content
Snippets Groups Projects
Commit b43c5ddf authored by Johannes Mey's avatar Johannes Mey
Browse files

enable cuts

parent 6b68ae77
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment