14#ifndef OR_TOOLS_LINEAR_SOLVER_SCIP_HELPER_MACROS_H_
15#define OR_TOOLS_LINEAR_SOLVER_SCIP_HELPER_MACROS_H_
17#include "absl/status/status.h"
18#include "absl/strings/str_format.h"
29 const char* source_file,
31 const char* scip_statement) {
32 if (retcode == 1)
return absl::OkStatus();
33 return absl::InvalidArgumentError(
34 absl::StrFormat(
"SCIP error code %d (file '%s', line %d) on '%s'",
35 retcode, source_file, source_line, scip_statement));
39#define SCIP_TO_STATUS(x) \
40 ::operations_research::internal::ScipCodeToUtilStatus(x, __FILE__, __LINE__, \
43#define RETURN_IF_SCIP_ERROR(x) RETURN_IF_ERROR(SCIP_TO_STATUS(x));
absl::Status ScipCodeToUtilStatus(int retcode, const char *source_file, int source_line, const char *scip_statement)
The vehicle routing library lets one model and solve generic vehicle routing problems ranging from th...