Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
stgroup
ttc18
Commits
b43c5ddf
Commit
b43c5ddf
authored
Aug 30, 2018
by
Johannes Mey
Browse files
enable cuts
parent
6b68ae77
Changes
2
Hide whitespace changes
Inline
Side-by-side
jastadd-mquat-solver-ilp/src/main/java/de/tudresden/inf/st/mquat/solving/ilp/ILPDirectSolver.java
View file @
b43c5ddf
...
...
@@ -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.
...
...
jastadd-mquat-solver-ilp/src/main/java/de/tudresden/inf/st/mquat/solving/ilp/ILPExternalSolver.java
View file @
b43c5ddf
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment