Skip to content

Commit

Permalink
resolve in ClpSolve if primal infeasible
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Mar 22, 2024
1 parent 576b37f commit 555b17b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ClpSolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3850,7 +3850,9 @@ int ClpSimplex::initialSolve(ClpSolve &options)
int savePerturbation = perturbation();
if (savePerturbation == 50)
setPerturbation(51); // small
if (!finalStatus || finalStatus == 2 || (moreSpecialOptions_ & 2) == 0 || fabs(sumDual) + fabs(sumPrimal) < 1.0e-3) {
if ((finalStatus>=0 && finalStatus <= 2) ||
(moreSpecialOptions_ & 2) == 0 ||
fabs(sumDual) + fabs(sumPrimal) < 1.0e-3) {
if (finalStatus == 2) {
if (sumDual > 1.0e-4) {
// unbounded - get feasible first
Expand Down

0 comments on commit 555b17b

Please sign in to comment.