 Timestamp:
 May 19, 2008 12:02:14 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

stable/2.1/Cbc/src/CbcModel.cpp
r943 r946 10922 10922 double * saveUpper = CoinCopyOfArray(solver_>getColUpper(),numberColumns); 10923 10923 // Fix integers 10924 int numberAway=0; 10924 10925 for (int i=0;i<numberColumns;i++) { 10925 10926 if (solver_>isInteger(i)) { 10926 10927 double value = solution[i]; 10927 10928 double intValue = floor(value+0.5); 10928 assert (fabs(valueintValue)<1.0e4); 10929 if (fabs(valueintValue)>1.0e4) 10930 numberAway++; 10929 10931 solver_>setColLower(i,intValue); 10930 10932 solver_>setColUpper(i,intValue); … … 10936 10938 solver_>initialSolve(); 10937 10939 char printBuffer[200]; 10940 if (numberAway) { 10941 sprintf(printBuffer,"Warning %d integer variables were more than 1.0e4 away from integer",numberAway); 10942 messageHandler()>message(CBC_FPUMP1,messages()) 10943 << printBuffer << CoinMessageEol ; 10944 } 10938 10945 bool looksGood = solver_>isProvenOptimal(); 10939 10946 if (looksGood) {
Note: See TracChangeset
for help on using the changeset viewer.