Changeset 2286


Ignore:
Timestamp:
Aug 15, 2016 6:19:41 AM (22 months ago)
Author:
forrest
Message:

add event

Location:
trunk/Cbc/src
Files:
2 edited

Legend:

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

    r1987 r2286  
    106106        /*! When converting constraints to cuts. */
    107107        convertToCuts,
     108        /*! Having generated cuts, allows user to think. */
     109        generatedCuts,
    108110        /*! End of search. */
    109111        endSearch
  • trunk/Cbc/src/CbcModel.cpp

    r2270 r2286  
    84538453            delete [] newSolution ;
    84548454        }
    8455 
     8455        CbcEventHandler *eventHandler = getEventHandler() ;
     8456        if (eventHandler) {
     8457          // Massage cuts??
     8458          // save appData
     8459          void * saveAppData = getApplicationData();
     8460          // point to cuts
     8461          setApplicationData(&theseCuts);
     8462          eventHandler->event(CbcEventHandler::generatedCuts);
     8463          setApplicationData(saveAppData);
     8464        }
    84568465#ifdef JJF_ZERO
    84578466        // switch on to get all cuts printed
Note: See TracChangeset for help on using the changeset viewer.