Changeset 1590 for trunk/Cbc/src


Ignore:
Timestamp:
Feb 3, 2011 10:46:48 AM (9 years ago)
Author:
forrest
Message:

extra event hook

Location:
trunk/Cbc/src
Files:
2 edited

Legend:

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

    r1573 r1590  
    9797        /*! A solution will be found unless user takes action (thorough check). */
    9898        beforeSolution2,
     99        /*! After failed heuristic. */
     100        afterHeuristic,
    99101        /*! End of search. */
    100102        endSearch
  • trunk/Cbc/src/CbcModel.cpp

    r1585 r1590  
    1293412934                        heuristicValue = saveValue ;
    1293512935                    }
     12936                    if (eventHandler) {
     12937                      if (!eventHandler->event(CbcEventHandler::afterHeuristic)) {
     12938                        eventHappened_ = true; // exit
     12939                        break;
     12940                      }
     12941                    }
    1293612942                }
    1293712943#ifdef CBC_THREAD
Note: See TracChangeset for help on using the changeset viewer.