Ignore:
Timestamp:
Sep 27, 2010 12:55:11 PM (9 years ago)
Author:
lou
Message:

Fix `Invalid heap' error in cl debug builds. Add validateHeap method to CbcTree? for future debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcCompareBase.hpp

    r1400 r1506  
    3131    }
    3232
    33     // This allows any method to change behavior as it is called
    34     // after each solution
    35     virtual void newSolution(CbcModel * ) {}
     33    /*! \brief Reconsider behaviour after discovering a new solution.
     34   
     35      This allows any method to change its behaviour. It is called
     36      after each solution.
    3637
    37     // This Also allows any method to change behavior as it is called
    38     // after each solution
    39     virtual void newSolution(CbcModel * ,
     38      The method should return true if changes are made which will
     39      alter the evaluation criteria applied to a node. (So that in
     40      cases where the search tree is sorted, it can be properly
     41      rebuilt.)
     42    */
     43    virtual bool newSolution(CbcModel * ) { return (false) ; }
     44
     45    /*! \brief Reconsider behaviour after discovering a new solution.
     46   
     47      This allows any method to change its behaviour. It is called
     48      after each solution.
     49
     50      The method should return true if changes are made which will
     51      alter the evaluation criteria applied to a node. (So that in
     52      cases where the search tree is sorted, it can be properly
     53      rebuilt.)
     54    */
     55    virtual bool newSolution(CbcModel * ,
    4056                             double ,
    41                              int ) {}
     57                             int ) { return (false) ; }
    4258
    4359    // This allows any method to change behavior as it is called
Note: See TracChangeset for help on using the changeset viewer.