Skip to content

Commit

Permalink
Improve setting of cplex MIP display #25
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-m committed Jul 4, 2012
1 parent 9ae785e commit 02dc1fe
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/cplex_solver.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ int cplex_solver::init_solver(PSLProblem *problem, int other_vars) {
fprintf (stderr, "Failure to turn on screen indicator, error %d.\n", status);
exit(-1);
}

if (verbosity >= SEARCH) {
/* MIP node log display information */
status = CPXsetintparam (env, CPX_PARAM_MIPDISPLAY, 5);
if ( status ) {
fprintf (stderr, "Failure to turn off presolve, error %d.\n", status);
exit(-1);
}
/* MIP node log display information */
int verb = verbosity >= SEARCH ? 5 : verbosity >= VERBOSE ? 2 : 1;
status = CPXsetintparam (env, CPX_PARAM_MIPDISPLAY, verb);
// int val = -1;
// CPXgetintparam (env, CPX_PARAM_MIPDISPLAY, &val);
// cerr << val << endl;
if ( status ) {
fprintf (stderr, "Failure to turn off presolve, error %d.\n", status);
exit(-1);
}

}

/* Create the problem. */
Expand Down

0 comments on commit 02dc1fe

Please sign in to comment.