Skip to content

Commit

Permalink
Fixed std::max error in HighsMipSolverDat.cpp:324
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed Nov 26, 2024
1 parent f3ff0b4 commit 150f4f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mip/HighsMipSolverData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ void HighsMipSolverData::startAnalyticCenterComputation(
ipm.setOptionValue("output_flag", false);
// ipm.setOptionValue("output_flag", !mipsolver.submip);
ipm.setOptionValue("ipm_iteration_limit", 200);
HighsInt kkt_iteration_limit =
std::max(100, mipsolver.model_->num_row_ / 1000);
HighsInt kkt_iteration_limit = mipsolver.model_->num_row_ / 1000;
kkt_iteration_limit = std::max(100, kkt_iteration_limit);
ipm.setOptionValue("kkt_iteration_limit", kkt_iteration_limit);
HighsLp lpmodel(*mipsolver.model_);
lpmodel.col_cost_.assign(lpmodel.num_col_, 0.0);
Expand Down

0 comments on commit 150f4f3

Please sign in to comment.