Skip to content

Commit

Permalink
print run status in final message
Browse files Browse the repository at this point in the history
  • Loading branch information
svigerske committed Feb 21, 2019
1 parent 29aa478 commit bb4773c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/RunHighs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ int main(int argc, char **argv) {
}

HighsStatus run_status = highs.run();
std::string statusname = HighsStatusToString(run_status);

double end_time = timer.getWallTime();
HighsPrintMessage(ML_ALWAYS, "HiGHS run ended after %12g seconds\n",
end_time - start_time);
HighsPrintMessage(ML_ALWAYS, "HiGHS run ended with status %s after %12g seconds\n",
statusname.c_str(), end_time - start_time);
return 0;
}

0 comments on commit bb4773c

Please sign in to comment.