Scippy

SCIP

Solving Constraint Integer Programs

event_globalbnd.h File Reference

Detailed Description

eventhdlr 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.h.

#include "scip/def.h"
#include "scip/type_event.h"
#include "scip/type_retcode.h"
#include "scip/type_scip.h"
#include "scip/type_syncstore.h"

Go to the source code of this file.

Functions

SCIP_RETCODE SCIPincludeEventHdlrGlobalbnd (SCIP *scip)
 
SCIP_BOUNDSTORESCIPeventGlobalbndGetBoundChanges (SCIP_EVENTHDLR *eventhdlr)
 
void SCIPeventGlobalbndEnableBoundStorage (SCIP_EVENTHDLR *eventhdlr)
 
void SCIPeventGlobalbndDisableBoundStorage (SCIP_EVENTHDLR *eventhdlr)
 
void SCIPeventGlobalbndClearBoundChanges (SCIP_EVENTHDLR *eventhdlr)
 

Function Documentation

◆ SCIPincludeEventHdlrGlobalbnd()

SCIP_RETCODE SCIPincludeEventHdlrGlobalbnd ( SCIP scip)

creates event handler for global bound event

creates event handler for globalbnd event

Parameters
scipSCIP data structure

Definition at line 204 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 236 of file event_globalbnd.c.

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

Referenced by SCIPgetConcurrentGlobalBoundChanges().

◆ SCIPeventGlobalbndEnableBoundStorage()

void SCIPeventGlobalbndEnableBoundStorage ( SCIP_EVENTHDLR eventhdlr)

enables storing of bound changes

Parameters
eventhdlrthe globalbound eventhandler

Definition at line 251 of file event_globalbnd.c.

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

Referenced by SCIPenableConcurrentBoundStorage().

◆ SCIPeventGlobalbndDisableBoundStorage()

void SCIPeventGlobalbndDisableBoundStorage ( SCIP_EVENTHDLR eventhdlr)

disables storing of bound changes

Parameters
eventhdlrthe globalbound eventhandler

Definition at line 267 of file event_globalbnd.c.

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

Referenced by SCIPdisableConcurrentBoundStorage().

◆ SCIPeventGlobalbndClearBoundChanges()

void SCIPeventGlobalbndClearBoundChanges ( SCIP_EVENTHDLR eventhdlr)

clears all bound changes stored in the eventhandler

Parameters
eventhdlrthe globalbound eventhandler

Definition at line 283 of file event_globalbnd.c.

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

Referenced by SCIPsynchronize().