Ignore:
Timestamp:
Nov 22, 2012 2:00:22 PM (7 years ago)
Author:
forrest
Message:

add random seed setting

File:
1 edited

Legend:

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

    r1802 r1813  
    488488    int maximumPasses = maximumPasses_;
    489489#ifdef COIN_HAS_CLP
    490     if (maximumPasses == 30) {
    491         OsiClpSolverInterface * clpSolver
     490    {
     491      OsiClpSolverInterface * clpSolver
    492492        = dynamic_cast<OsiClpSolverInterface *> (model_->solver());
    493         if (clpSolver && clpSolver->fakeObjective())
     493      if (clpSolver ) {
     494        if (maximumPasses == 30) {
     495          if (clpSolver->fakeObjective())
    494496            maximumPasses = 100; // feasibility problem?
     497        }
     498        if (model_->getRandomSeed()!=-1)
     499          clpSolver->getModelPtr()->setRandomSeed(randomNumberGenerator_.getSeed());
     500      }
    495501    }
    496502#endif
Note: See TracChangeset for help on using the changeset viewer.