Changeset 2232


Ignore:
Timestamp:
Nov 18, 2015 9:55:57 AM (3 years ago)
Author:
forrest
Message:

relax assert with deterministic threads

File:
1 edited

Legend:

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

    r1943 r2232  
    430430    assert (rhsObject->numberTimesDown_ >= baseObject->numberTimesDown_);
    431431    assert (rhsObject->numberTimesDownInfeasible_ >= baseObject->numberTimesDownInfeasible_);
    432     assert( rhsObject->sumDownCost_ >= baseObject->sumDownCost_);
     432    assert( rhsObject->sumDownCost_ >= baseObject->sumDownCost_-1.0e-4);
    433433    double sumUp = upDynamicPseudoCost_ * numberTimesUp_;
    434434    sumUp -= baseObject->upDynamicPseudoCost_ * baseObject->numberTimesUp_;
     
    437437    assert (rhsObject->numberTimesUp_ >= baseObject->numberTimesUp_);
    438438    assert (rhsObject->numberTimesUpInfeasible_ >= baseObject->numberTimesUpInfeasible_);
    439     assert( rhsObject->sumUpCost_ >= baseObject->sumUpCost_);
     439    assert( rhsObject->sumUpCost_ >= baseObject->sumUpCost_-1.0e-4);
    440440    sumDownCost_ += rhsObject->sumDownCost_ - baseObject->sumDownCost_;
    441441    sumUpCost_ += rhsObject->sumUpCost_ - baseObject->sumUpCost_;
Note: See TracChangeset for help on using the changeset viewer.