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 923d931 commit 2ebf1c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Clp/src/ClpSolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3818,7 +3818,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 2ebf1c8

Please sign in to comment.