Changeset 828 for stable/2.0/Cbc
 Timestamp:
 Oct 21, 2007 1:04:00 PM (13 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

stable/2.0/Cbc/src/CbcHeuristicFPump.cpp
r776 r828 310 310 double saveBestObjective = model_>getMinimizationObjValue(); 311 311 int numberSolutions=0; 312 OsiSolverInterface * solver = NULL; 312 313 while (!exitAll) { 313 314 int numberPasses=0; 314 315 numberTries++; 315 316 // Clone solver  otherwise annoys root node computations 316 OsiSolverInterface *solver = model_>solver()>clone();317 solver = model_>solver()>clone(); 317 318 if (CoinMin(fakeCutoff_,cutoff)<1.0e50) { 318 319 // Fix on djs … … 358 359 printf("CbcHeuristicFPump obj offset %g\n",offset); 359 360 #endif 360 solver>addRow(nel,which,els,COIN_DBL_MAX,cutoff+offset );361 solver>addRow(nel,which,els,COIN_DBL_MAX,cutoff+offset*direction); 361 362 delete [] which; 362 363 delete [] els; … … 935 936 } 936 937 delete solver; 938 solver=NULL; 937 939 for ( j=0;j<NUMBER_OLD;j++) 938 940 delete [] oldSolution[j]; … … 1127 1129 } 1128 1130 } 1131 delete solver; // probably NULL but do anyway 1129 1132 if (!finalReturnCode&&closestSolution&&closestObjectiveValue <= 10.0&&usedColumn) { 1130 1133 // try a bit of branch and bound
Note: See TracChangeset
for help on using the changeset viewer.