cleanup thread manager for CP-SAT linear solver backend

This commit is contained in:
Laurent Perron
2021-09-24 11:04:39 +02:00
parent 623706668c
commit b90bcd58f9
2 changed files with 1 additions and 5 deletions

View File

@@ -286,8 +286,8 @@ void SatInterface::ExtractObjective() { NonIncrementalChange(); }
void SatInterface::SetParameters(const MPSolverParameters& param) {
parameters_.set_num_search_workers(num_threads_);
parameters_.set_log_search_progress(!quiet_);
parameters_.set_linearization_level(2);
parameters_.set_log_search_progress(!quiet_);
SetCommonParameters(param);
}

View File

@@ -21,10 +21,6 @@
namespace operations_research {
namespace internal {
// Our own version of SCIP_CALL to do error management.
// NOTE(user): There are so many SCIP error codes, in so many different
// situations. We don't try to match them perfectly to google3 error codes.
// Instead, we use the most likely/generic code "invalid argument" and surface
// the internal SCIP error code to the user.
inline absl::Status ScipCodeToUtilStatus(/*SCIP_Retcode*/ int retcode,
const char* source_file,
int source_line,