- Timestamp:
- Oct 21, 2007 12:33:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cbc/src/CbcHeuristicFPump.cpp
r776 r826 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 … … 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.