xpress integration in or-tools

This commit is contained in:
Manuel Ruiz
2019-08-06 18:21:29 +02:00
parent 2c67e00f3a
commit f50fc893a8
9 changed files with 1647 additions and 1 deletions

View File

@@ -618,11 +618,26 @@ int main(int argc, char** argv) {
found = true;
}
#endif // USE_GLOP
#if defined(USE_XPRESS)
if (FLAGS_colgen_solver == "xpress") {
solver_type = operations_research::MPSolver::XPRESS_LINEAR_PROGRAMMING;
//solver_type = operations_research::MPSolver::CPLEX_LINEAR_PROGRAMMING;
found = true;
}
#endif
#if defined(USE_CPLEX)
if (FLAGS_colgen_solver == "cplex") {
solver_type = operations_research::MPSolver::CPLEX_LINEAR_PROGRAMMING;
found = true;
}
#endif
if (!found) {
LOG(ERROR) << "Unknown solver " << FLAGS_colgen_solver;
return 1;
}
LOG(INFO) << "Chosen solver: " << FLAGS_colgen_solver << std::endl;
if (FLAGS_colgen_instance == -1) {
for (int i = 0; i < operations_research::kInstanceCount; ++i) {
const operations_research::Instance& instance =