SCIP

    Solving Constraint Integer Programs

    Detailed Description

    eventhandler for storing all global bound changes

    Author
    Leona Gottwald

    the bound changes are stored so that they can be shared with other threads in a concurrent solve.

    Definition in file event_globalbnd.c.

    #include "blockmemshell/memory.h"
    #include "scip/boundstore.h"
    #include "scip/concurrent.h"
    #include "scip/event_globalbnd.h"
    #include "scip/pub_event.h"
    #include "scip/pub_lp.h"
    #include "scip/pub_message.h"
    #include "scip/pub_var.h"
    #include "scip/scip_concurrent.h"
    #include "scip/scip_copy.h"
    #include "scip/scip_event.h"
    #include "scip/scip_mem.h"
    #include "scip/scip_message.h"
    #include "scip/scip_prob.h"
    #include "scip/syncstore.h"

    Go to the source code of this file.

    Macros

    #define EVENTHDLR_NAME   "globalbnd"
     
    #define EVENTHDLR_DESC   "event handler for globalbnd event"
     

    Functions

    static SCIP_DECL_EVENTFREE (eventFreeGlobalbnd)
     
    static SCIP_DECL_EVENTINIT (eventInitGlobalbnd)
     
    static SCIP_DECL_EVENTEXIT (eventExitGlobalbnd)
     
    static SCIP_DECL_EVENTEXEC (eventExecGlobalbnd)
     
    SCIP_RETCODE SCIPincludeEventHdlrGlobalbnd (SCIP *scip)
     
    SCIP_BOUNDSTORE * SCIPeventGlobalbndGetBoundChanges (SCIP_EVENTHDLR *eventhdlr)
     
    void SCIPeventGlobalbndEnableBoundStorage (SCIP_EVENTHDLR *eventhdlr)
     
    void SCIPeventGlobalbndDisableBoundStorage (SCIP_EVENTHDLR *eventhdlr)
     
    void SCIPeventGlobalbndClearBoundChanges (SCIP_EVENTHDLR *eventhdlr)
     

    Macro Definition Documentation

    ◆ EVENTHDLR_NAME

    #define EVENTHDLR_NAME   "globalbnd"

    Definition at line 53 of file event_globalbnd.c.

    ◆ EVENTHDLR_DESC

    #define EVENTHDLR_DESC   "event handler for globalbnd event"

    Definition at line 54 of file event_globalbnd.c.

    Function Documentation

    ◆ SCIP_DECL_EVENTFREE()

    static SCIP_DECL_EVENTFREE ( eventFreeGlobalbnd  )
    static

    destructor of event handler to free user data (called when SCIP is exiting)

    Definition at line 79 of file event_globalbnd.c.

    References EVENTHDLR_NAME, NULL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STRINGEQ, SCIPeventhdlrGetData(), SCIPeventhdlrGetName(), SCIPeventhdlrSetData(), and SCIPfreeMemory.

    ◆ SCIP_DECL_EVENTINIT()

    ◆ SCIP_DECL_EVENTEXIT()

    static SCIP_DECL_EVENTEXIT ( eventExitGlobalbnd  )
    static

    deinitialization method of event handler (called before transformed problem is freed)

    Definition at line 137 of file event_globalbnd.c.

    References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_VARADDED, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STRINGEQ, SCIPboundstoreFree(), SCIPdropEvent(), SCIPeventhdlrGetData(), and SCIPeventhdlrGetName().

    ◆ SCIP_DECL_EVENTEXEC()

    ◆ SCIPincludeEventHdlrGlobalbnd()

    SCIP_RETCODE SCIPincludeEventHdlrGlobalbnd ( SCIP *  scip)

    creates event handler for globalbnd event

    Parameters
    scipSCIP data structure

    Definition at line 223 of file event_globalbnd.c.

    References EVENTHDLR_DESC, EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, SCIPincludeEventhdlrBasic(), SCIPsetEventhdlrExit(), SCIPsetEventhdlrFree(), and SCIPsetEventhdlrInit().

    Referenced by SCIPcreateConcurrent().

    ◆ SCIPeventGlobalbndGetBoundChanges()

    SCIP_BOUNDSTORE * SCIPeventGlobalbndGetBoundChanges ( SCIP_EVENTHDLR *  eventhdlr)

    gets the global bound changes stored in the eventhandler

    Parameters
    eventhdlrthe globalbound eventhandler

    Definition at line 253 of file event_globalbnd.c.

    References EVENTHDLR_NAME, NULL, SCIP_STRINGEQ, SCIPeventhdlrGetData(), and SCIPeventhdlrGetName().

    Referenced by SCIPgetConcurrentGlobalBoundChanges().

    ◆ SCIPeventGlobalbndEnableBoundStorage()

    void SCIPeventGlobalbndEnableBoundStorage ( SCIP_EVENTHDLR *  eventhdlr)

    enables storing of bound changes

    Parameters
    eventhdlrthe globalbound eventhandler

    Definition at line 269 of file event_globalbnd.c.

    References NULL, SCIPeventhdlrGetData(), and TRUE.

    Referenced by SCIPenableConcurrentBoundStorage().

    ◆ SCIPeventGlobalbndDisableBoundStorage()

    void SCIPeventGlobalbndDisableBoundStorage ( SCIP_EVENTHDLR *  eventhdlr)

    disables storing of bound changes

    Parameters
    eventhdlrthe globalbound eventhandler

    Definition at line 283 of file event_globalbnd.c.

    References FALSE, NULL, and SCIPeventhdlrGetData().

    Referenced by SCIPdisableConcurrentBoundStorage().

    ◆ SCIPeventGlobalbndClearBoundChanges()

    void SCIPeventGlobalbndClearBoundChanges ( SCIP_EVENTHDLR *  eventhdlr)

    clears all bound changes stored in the eventhandler

    Parameters
    eventhdlrthe globalbound eventhandler

    Definition at line 297 of file event_globalbnd.c.

    References NULL, SCIPboundstoreClear(), and SCIPeventhdlrGetData().

    Referenced by SCIPsynchronize().