Ignore:
Timestamp:
Feb 29, 2012 3:48:21 AM (7 years ago)
Author:
forrest
Message:

changes to allow multiple solutions in standalone executable

File:
1 edited

Legend:

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

    r1764 r1769  
    1505815058    }
    1505915059}
     15060// Delete a saved solution and move others up
     15061void
     15062CbcModel::deleteSavedSolution(int which)
     15063{
     15064  if (which >0 && which <= numberSavedSolutions_) {
     15065    delete [] savedSolutions_[which-1];
     15066    // move up
     15067    numberSavedSolutions_--;
     15068    for (int j =  which-1; j <numberSavedSolutions_; j++) {
     15069      savedSolutions_[j] = savedSolutions_[j+1];
     15070    }
     15071    savedSolutions_[numberSavedSolutions_]=NULL;
     15072  }
     15073}
    1506015074#ifdef COIN_HAS_CLP
    1506115075void
Note: See TracChangeset for help on using the changeset viewer.