Skip to content

Commit

Permalink
math_opt: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 11, 2023
1 parent b9cc1ad commit 090d2d5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ortools/math_opt/solvers/glpk_solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -682,12 +682,13 @@ absl::StatusOr<TerminationProto> SimplexTerminationOnSuccess(
// Returns a status error indicating that glp_get_dual_stat() returned an
// unexpected value.
const auto unexpected_dual_stat = [&]() {
return util::InternalErrorBuilder()
<< "glp_simplex() returned 0 but glp_get_dual_stat() returned the "
"unexpected value "
<< SolutionStatusString(dual_status)
<< " while glp_get_prim_stat() returned "
<< SolutionStatusString(prim_status);
return absl::InternalError(
absl::StrCat(
"glp_simplex() returned 0 but glp_get_dual_stat() returned the "
"unexpected value ",
SolutionStatusString(dual_status),
" while glp_get_prim_stat() returned ",
SolutionStatusString(prim_status)));
};

switch (prim_status) {
Expand Down

0 comments on commit 090d2d5

Please sign in to comment.