Changeset 268 for trunk/CbcModel.cpp


Ignore:
Timestamp:
Mar 10, 2006 10:31:54 AM (14 years ago)
Author:
forrest
Message:

for nonlinear

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CbcModel.cpp

    r267 r268  
    89778977*/
    89788978void
    8979 CbcModel::setObjectiveValue(CbcNode * thisNode, const CbcNode * parentNode)
     8979CbcModel::setObjectiveValue(CbcNode * thisNode, const CbcNode * parentNode) const
    89808980{
    89818981  double newObjValue = solver_->getObjSense()*solver_->getObjValue();
    89828982  // If odd solver take its bound
    8983   newObjValue = CoinMax(newObjValue,solverCharacteristics_->mipBound());
    8984   // Reset bound anyway (no harm if not odd)
    8985   solverCharacteristics_->setMipBound(-COIN_DBL_MAX);
     8983  if (solverCharacteristics_) {
     8984    newObjValue = CoinMax(newObjValue,solverCharacteristics_->mipBound());
     8985    // Reset bound anyway (no harm if not odd)
     8986    solverCharacteristics_->setMipBound(-COIN_DBL_MAX);
     8987  }
    89868988  // If not root then use max of this and parent
    89878989  if (parentNode)
Note: See TracChangeset for help on using the changeset viewer.