Skip to content

Commit

Permalink
maybe fix error that never ocurs with standalone clp
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Dec 7, 2023
1 parent 69481cc commit 2f97a4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ClpSimplexPrimal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,15 @@ void ClpSimplexPrimal::statusOfProblemInPrimal(int &lastCleaned, int type,
printf("nonLinearCost says infeasible %d summing to %g\n",
ninfeas, sum);
#endif
// Need to increase infeasibility cost (keep Henning happy)
if (infeasibilityCost_ < 1.0e14) {
infeasibilityCost_ *= 5.0;
// reset looping criterion
progress->reset();
if (handler_->logLevel() == 63)
printf("increasing weight to %g\n", infeasibilityCost_);
gutsOfSolution(NULL, NULL, ifValuesPass != 0);
}
if (average > relaxedToleranceP) {
sumOfRelaxedPrimalInfeasibilities_ = sum;
numberPrimalInfeasibilities_ = ninfeas;
Expand Down

0 comments on commit 2f97a4d

Please sign in to comment.