Changeset 1813 for trunk/Cbc/src/CbcTree.cpp
- Timestamp:
- Nov 22, 2012 2:00:22 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cbc/src/CbcTree.cpp
r1573 r1813 316 316 } 317 317 318 319 318 #ifndef CBC_DUBIOUS_HEAP 320 319 /* … … 530 529 best->setOnTree(false); 531 530 return best; 532 }533 534 double535 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;544 531 } 545 532 /*! \brief Prune the tree using an objective function cutoff … … 1406 1393 #endif 1407 1394 1395 double 1396 CbcTree::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.