Ignore:
Timestamp:
Mar 16, 2009 6:30:25 AM (10 years ago)
Author:
forrest
Message:

chnages to try and make faster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcHeuristicLocal.cpp

    r1103 r1132  
    574574  delete [] mark;
    575575  if (numberSolutions_>1&&swap_==1) {
     576    int i;
     577    for ( i=0;i<numberColumns;i++) {
     578      if (used_[i]>1)
     579        break;
     580    }
     581    if (i==numberColumns) {
     582      // modify used_ if just one
     583      const int * used = model_->usedInSolution();
     584      for (int i=0;i<numberColumns;i++)
     585        used_[i]= CoinMin(used[i],255);
     586    }
    576587    // try merge
    577588    int returnCode2=solutionFix( solutionValue, betterSolution,NULL);
Note: See TracChangeset for help on using the changeset viewer.