- Timestamp:
- Jan 27, 2010 12:49:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Clp/src/ClpSimplex.cpp
r1453 r1494 10073 10073 static_cast<ClpSimplexOther *> (this)->afterCrunch(*small, 10074 10074 whichRow,whichColumn,nBound); 10075 bool badSolution=false; 10075 10076 for (int i=0;i<numberColumns_;i++) { 10076 10077 if (integerType_[i]) { 10077 10078 double value = columnActivity_[i]; 10078 10079 double value2 = floor(value+0.5); 10079 assert (fabs(value-value2)<1.0e-4); 10080 if (fabs(value-value2)>=1.0e-4) { 10081 // Very odd - can't use 10082 badSolution=true; 10083 } 10080 10084 columnActivity_[i]=value2; 10081 10085 if (fixBounds) { … … 10084 10088 } 10085 10089 } 10090 } 10091 if (badSolution) { 10092 info->nNodes_=-1; 10093 returnCode=0; 10086 10094 } 10087 10095 //setLogLevel(63);
Note: See TracChangeset
for help on using the changeset viewer.