Skip to content

Commit

Permalink
fix empty problem bug
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjforrest committed Mar 21, 2020
1 parent a11d410 commit 4688136
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ClpModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3689,7 +3689,6 @@ int ClpModel::emptyProblem(int *infeasNumber, double *infeasSum, bool printMessa
columnActivity_[i] = columnUpper_[i];
status_[i] = 2;
numberDualInfeasibilities++;
;
sumDualInfeasibilities += fabs(objValue);
badColumn = i;
badValue = -1.0;
Expand All @@ -3704,7 +3703,6 @@ int ClpModel::emptyProblem(int *infeasNumber, double *infeasSum, bool printMessa
columnActivity_[i] = columnLower_[i];
status_[i] = 3;
numberDualInfeasibilities++;
;
sumDualInfeasibilities += fabs(objValue);
badColumn = i;
badValue = 1.0;
Expand All @@ -3716,7 +3714,8 @@ int ClpModel::emptyProblem(int *infeasNumber, double *infeasSum, bool printMessa
columnActivity_[i] = 0.0;
if (objValue) {
numberDualInfeasibilities++;
;
badColumn = i;
badValue = (objValue > 0.0) ? -1.0 : 1.0;
sumDualInfeasibilities += fabs(objValue);
returnCode |= 2;
}
Expand Down

0 comments on commit 4688136

Please sign in to comment.