Skip to content

Commit

Permalink
skip change to infeasibility cost if quadratic
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Aug 3, 2023
1 parent 0dd1386 commit 7ff37f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Clp/src/ClpNonLinearCost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ ClpNonLinearCost::ClpNonLinearCost(ClpSimplex * model, int method)
break;
}
}
if (allZero && model_->clpMatrix()->type() < 15)
if (allZero && model_->clpMatrix()->type() < 15
&& model_->objectiveAsObject()->type() == 1)
model_->setInfeasibilityCost(1.0);
double infeasibilityCost = model_->infeasibilityCost();
sumInfeasibilities_ = 0.0;
Expand Down

0 comments on commit 7ff37f5

Please sign in to comment.