Skip to content

Commit

Permalink
Cast 100 to HighsInt in HighsMipSolverData.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed Nov 26, 2024
1 parent 150f4f3 commit 7feb354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mip/HighsMipSolverData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ void HighsMipSolverData::startAnalyticCenterComputation(
// ipm.setOptionValue("output_flag", !mipsolver.submip);
ipm.setOptionValue("ipm_iteration_limit", 200);
HighsInt kkt_iteration_limit = mipsolver.model_->num_row_ / 1000;
kkt_iteration_limit = std::max(100, kkt_iteration_limit);
kkt_iteration_limit = std::max(HighsInt(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 7feb354

Please sign in to comment.