Changeset 2082


Ignore:
Timestamp:
Sep 25, 2014 7:52:41 AM (5 years ago)
Author:
forrest
Message:

allow restarts with deterministic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.8/Cbc/src/CbcModel.cpp

    r2079 r2082  
    16351635    dblParam_[CbcLargestChange] = 0.0;
    16361636    intParam_[CbcNumberBranches] = 0;
     1637    // when to check for restart
     1638    int nextCheckRestart=50;
    16371639    // Force minimization !!!!
    16381640    bool flipObjective = (solver_->getObjSense()<0.0);
     
    41044106            unlockThread();
    41054107        }
    4106         // If done 100 nodes see if worth trying reduction
    4107         if (numberNodes_ == 50 || numberNodes_ == 100) {
     4108        // If done 50/100 nodes see if worth trying reduction
     4109        if (numberNodes_ >= nextCheckRestart) {
     4110          if (nextCheckRestart<100)
     4111            nextCheckRestart=100;
     4112          else
     4113            nextCheckRestart=COIN_INT_MAX;
    41084114#ifdef COIN_HAS_CLP
    41094115            OsiClpSolverInterface * clpSolver
Note: See TracChangeset for help on using the changeset viewer.