Merge branch 'master' of github.com:google/or-tools

This commit is contained in:
Laurent Perron
2020-03-19 00:24:27 +01:00
4 changed files with 2866 additions and 2784 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -144,11 +144,11 @@ class DemonProfiler : public PropagationMonitor {
}
void BeginDemonRun(Demon* const demon) override {
CHECK(demon != nullptr);
if (demon->priority() == Solver::VAR_PRIORITY) {
return;
}
CHECK(active_demon_ == nullptr);
CHECK(demon != nullptr);
active_demon_ = demon;
DemonRuns* const demon_run = demon_map_[active_demon_];
if (demon_run != nullptr) {
@@ -157,11 +157,11 @@ class DemonProfiler : public PropagationMonitor {
}
void EndDemonRun(Demon* const demon) override {
CHECK(demon != nullptr);
if (demon->priority() == Solver::VAR_PRIORITY) {
return;
}
CHECK_EQ(active_demon_, demon);
CHECK(demon != nullptr);
DemonRuns* const demon_run = demon_map_[active_demon_];
if (demon_run != nullptr) {
demon_run->add_end_time(CurrentTime());

View File

@@ -504,7 +504,7 @@ MPSolver::ResultStatus CLPInterface::Solve(const MPSolverParameters& param) {
ResetParameters();
sync_status_ = SOLUTION_SYNCHRONIZED;
return result_status_;
} catch (CoinError e) {
} catch (CoinError &e) {
LOG(WARNING) << "Caught exception in Coin LP: " << e.message();
result_status_ = MPSolver::ABNORMAL;
return result_status_;

View File

@@ -49,7 +49,7 @@ function get_dependencies {
# Output: dependencies command for that file:
# objs/sub_dir/filename.o : ortools/
function print_dependencies {
cmd=$(gcc -MM -MT "objs/${2}/${1}.o" -c "ortools/${2}/${1}.cc" -I. -Iortools/gen \
cmd=$(gcc -std=c++11 -MM -MT "objs/${2}/${1}.o" -c "ortools/${2}/${1}.cc" -I. -Iortools/gen \
-isystem dependencies/install/include \
-isystem dependencies/install/include/coin \
-DUSE_GLOP -DUSE_BOP -DUSE_CLP -DUSE_CBC \