diff --git a/Clp/src/ClpNonLinearCost.cpp b/Clp/src/ClpNonLinearCost.cpp index 15666eb5..79b7d35a 100644 --- a/Clp/src/ClpNonLinearCost.cpp +++ b/Clp/src/ClpNonLinearCost.cpp @@ -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;