42 bool log_error, absl::StatusOr<MPSolutionResponse> response) {
45 LOG(ERROR) <<
"Error status: " << response.status();
47 MPSolutionResponse error_response;
48 error_response.set_status(MPSolverResponseStatus::MPSOLVER_ABNORMAL);
49 error_response.set_status_str(response.status().ToString());
50 return error_response;
52 return std::move(response).value();