Skip to content

Commit

Permalink
Activate MIP domains verbose mode using verbose flag
Browse files Browse the repository at this point in the history
Fixes #705
  • Loading branch information
cyderize committed Jun 20, 2023
1 parent 695055b commit 3c03160
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Changes:

- Change the library and solver configuration path of builtin version of
Chuffed to prevent file conflicts (:bugref:`708`).
- Use the verbose compilation flag to control the verbosity of the MIP domains
stage (:bugref:`705`).

Bug fixes:
^^^^^^^^^^
Expand Down
4 changes: 2 additions & 2 deletions lib/MIPdomains.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2077,7 +2077,7 @@ class MIPD {
double nSubintvAve = MIPD_stats[N_POSTs_NSubintvSum] / nc;
MZN_MIPD_assert_hard(MIPD_stats[N_POSTs_NSubintvSum]);
double dSubSizeAve = MIPD_stats[N_POSTs_SubSizeSum] / MIPD_stats[N_POSTs_NSubintvSum];
os << MIPD_stats[N_POSTs_all]
os << " " << MIPD_stats[N_POSTs_all]
<< " POSTs"
#ifdef MZN_MIPDOMAINS_PRINTMORESTATS
" [ ";
Expand All @@ -2104,7 +2104,7 @@ class MIPD {
os << TCliqueSorter::LinEqGraph::dCoefMin << "--" << TCliqueSorter::LinEqGraph::dCoefMax
<< " abs coefs";
}
os << " ... ";
os << std::endl;
}

}; // namespace MiniZinc
Expand Down
4 changes: 2 additions & 2 deletions lib/passes/compile_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ Env* CompilePass::run(Env* store, std::ostream& log) {

if (!_compflags.noMIPdomains) {
if (_compflags.verbose) {
log << "MIP domains ...";
log << "MIP domains ..." << std::endl;
}
mip_domains(*new_env, _compflags.statistics);
mip_domains(*new_env, _compflags.verbose);
if (_compflags.verbose) {
log << " done (" << lasttime.stoptime() << ")" << std::endl;
}
Expand Down

0 comments on commit 3c03160

Please sign in to comment.