Skip to content

Commit

Permalink
allow problems with no rows, elements or columns if not too bad
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Nov 7, 2023
1 parent 11043dc commit 5a54e9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ClpSimplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7453,6 +7453,7 @@ ClpSimplex::valueIncomingDual() const
// Sanity check on input data - returns true if okay
bool ClpSimplex::sanityCheck()
{
#if 0 // can't say bad - just because empty
// bad if empty
if (!numberColumns_ || ((!numberRows_ || !matrix_->getNumElements()) && objective_->type() < 2)) {
int infeasNumber[2];
Expand All @@ -7464,6 +7465,7 @@ bool ClpSimplex::sanityCheck()
sumPrimalInfeasibilities_ = infeasSum[1];
return false;
}
#endif
int numberBad;
double largestBound, smallestBound, minimumGap;
double smallestObj, largestObj;
Expand Down

0 comments on commit 5a54e9c

Please sign in to comment.