Skip to content

Commit

Permalink
remove self-assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
svigerske committed Mar 17, 2023
1 parent f85d6cf commit b0d9ac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Clp/src/ClpSimplexPrimal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ int ClpSimplexPrimal::primal(int ifValuesPass, int startFinishOptions)
numberFixed++;
break;
case atLowerBound:
dj = dj;
//dj = dj;
break;
case isFree:
dj = -100.0 * fabs(dj);
Expand Down Expand Up @@ -3918,7 +3918,7 @@ int ClpSimplexPrimal::lexSolve()
numberFixed++;
break;
case atLowerBound:
dj = dj;
//dj = dj;
break;
case isFree:
dj = -100.0 * fabs(dj);
Expand Down
2 changes: 1 addition & 1 deletion Clp/src/ClpSolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,7 @@ int ClpSimplex::initialSolve(ClpSolve &options)
double value = fullSolution[iColumn];
if (model2->getColumnStatus(iColumn) != ClpSimplex::basic) {
if (dj < -dualTolerance_ && value < columnUpper[iColumn])
dj = dj;
/*dj = dj*/;
else if (dj > dualTolerance_ && value > columnLower[iColumn])
dj = -dj;
else if (columnUpper[iColumn] > columnLower[iColumn])
Expand Down

0 comments on commit b0d9ac2

Please sign in to comment.