Changeset 2025 for trunk/Cbc


Ignore:
Timestamp:
Mar 26, 2014 9:05:07 AM (5 years ago)
Author:
forrest
Message:

cosmetic change for status printing

File:
1 edited

Legend:

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

    r2014 r2025  
    44614461            //MODIF PIERRE
    44624462            bestPossibleObjective_ = tree_->getBestPossibleObjective();
     4463#ifdef CBC_THREAD
     4464            if (parallelMode() > 0 && master_) {
     4465              // need to adjust for ones not on tree
     4466              int numberThreads = master_->numberThreads();
     4467              for (int i=0;i<numberThreads;i++) {
     4468                CbcThread * child = master_->child(i);
     4469                if (child->node()) {
     4470                  // adjust
     4471                  double value = child->node()->objectiveValue();
     4472                  bestPossibleObjective_ = CoinMin(bestPossibleObjective_, value);
     4473                }
     4474              }
     4475            }
     4476#endif
    44634477            unlockThread();
    44644478#ifdef CLP_INVESTIGATE
Note: See TracChangeset for help on using the changeset viewer.