more work

This commit is contained in:
lperron@google.com
2012-07-19 05:22:46 +00:00
parent c80d887e73
commit cda53edf0e
2 changed files with 17 additions and 9 deletions

View File

@@ -54,6 +54,7 @@ DEFINE_string(
"list of \"<machine index> <duration>\"\n"
"note: jobs with one task are not supported");
DEFINE_int32(time_limit_in_ms, 0, "Time limit in ms, 0 means no limit.");
DEFINE_bool(full_debug, false, "");
namespace operations_research {
void Jobshop(const JobShopData& data) {
@@ -172,8 +173,10 @@ void Jobshop(const JobShopData& data) {
// Search.
solver.NewSearch(main_phase, search_log, objective_monitor, limit);
while (solver.NextSolution()) {
for (int i = 0; i < machine_count; ++i) {
all_machines_[i]->FullDebug();
if (FLAGS_full_debug) {
for (int i = 0; i < machine_count; ++i) {
all_machines_[i]->FullDebug();
}
}
}
solver.EndSearch();