Changeset 1922 for stable/2.8/Cbc/src


Ignore:
Timestamp:
May 16, 2013 3:35:51 AM (6 years ago)
Author:
forrest
Message:

fix for divepseudo when when -999

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/2.8/Cbc/src/CbcHeuristicDivePseudoCost.cpp

    r1902 r1922  
    153153    // get pseudo costs
    154154    model_->fillPseudoCosts(downArray_, upArray_);
    155     int diveOptions = when_ / 100;
     155    // allow for -999 -> force to run
     156    int diveOptions = (when_>0) ? when_ / 100 : 0;
    156157    if (diveOptions) {
    157158        // pseudo shadow prices
Note: See TracChangeset for help on using the changeset viewer.