Changeset 2024 for stable/2.8


Ignore:
Timestamp:
Mar 26, 2014 9:01:47 AM (6 years ago)
Author:
forrest
Message:

cosmetic change for status with threads

File:
1 edited

Legend:

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

    r2015 r2024  
    43794379            //MODIF PIERRE
    43804380            bestPossibleObjective_ = tree_->getBestPossibleObjective();
     4381#ifdef CBC_THREAD
     4382            if (parallelMode() > 0 && master_) {
     4383              // need to adjust for ones not on tree
     4384              int numberThreads = master_->numberThreads();
     4385              for (int i=0;i<numberThreads;i++) {
     4386                CbcThread * child = master_->child(i);
     4387                if (child->node()) {
     4388                  // adjust
     4389                  double value = child->node()->objectiveValue();
     4390                  bestPossibleObjective_ = CoinMin(bestPossibleObjective_, value);
     4391                }
     4392              }
     4393            }
     4394#endif
    43814395            unlockThread();
    43824396#ifdef CLP_INVESTIGATE
Note: See TracChangeset for help on using the changeset viewer.