Skip to content

Commit

Permalink
Continue even if Highs gives warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaslundell committed Jun 18, 2024
1 parent a2a9495 commit cc3d057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MIPSolver/MIPSolverHighs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ bool MIPSolverHighs::finalizeProblem()
highsModel.lp_.col_cost_ = variableCosts;
highsModel.lp_.sense_ = objectiveSense;

if(highsInstance.passModel(highsModel) != HighsStatus::kOk)
if(highsInstance.passModel(highsModel) == HighsStatus::kError)
return (false);

setSolutionLimit(1);
Expand Down

0 comments on commit cc3d057

Please sign in to comment.