Ignore:
File:
1 edited

Legend:

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

    r1573 r1813  
    316316}
    317317
    318 
    319318#ifndef CBC_DUBIOUS_HEAP
    320319/*
     
    530529        best->setOnTree(false);
    531530    return best;
    532 }
    533 
    534 double
    535 CbcTree::getBestPossibleObjective()
    536 {
    537     double r_val = 1e100;
    538     for (int i = 0 ; i < static_cast<int> (nodes_.size()) ; i++) {
    539         if (nodes_[i] && nodes_[i]->objectiveValue() < r_val) {
    540             r_val = nodes_[i]->objectiveValue();
    541         }
    542     }
    543     return r_val;
    544531}
    545532/*! \brief Prune the tree using an objective function cutoff
     
    14061393#endif
    14071394
     1395double
     1396CbcTree::getBestPossibleObjective()
     1397{
     1398    double r_val = 1e100;
     1399    for (int i = 0 ; i < static_cast<int> (nodes_.size()) ; i++) {
     1400        if (nodes_[i] && nodes_[i]->objectiveValue() < r_val) {
     1401            r_val = nodes_[i]->objectiveValue();
     1402        }
     1403    }
     1404    return r_val;
     1405}
     1406
Note: See TracChangeset for help on using the changeset viewer.