Changeset 887 for stable/0.4


Ignore:
Timestamp:
Aug 6, 2012 2:30:46 PM (8 years ago)
Author:
stefan
Message:

workaround sideeffect of recordbestsol workaround: if cbc solved a model to optimality, it reports the primal bound also as dual bound; however, couenne may thinks of a better primal bound (that it cannot tell cbc...) and stop branch-and-bound due to that bound; so, at least, let CouenneBab::bestBound() never report a dual bound that is above the best known primal bound

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/0.4/Couenne/src/main/CouenneBab.hpp

    r853 r887  
    6363    // }
    6464
    65     // /** return the best known lower bound on the objective value*/
    66     // double bestBound();
     65    /** return the best known lower bound on the objective value*/
     66    double bestBound() { return CoinMin(Bonmin::Bab::bestBound(), bestObj()); }
    6767
    6868    // /** return the total number of nodes explored.*/
Note: See TracChangeset for help on using the changeset viewer.