Scippy

GCG

Branch-and-Price & Column Generation for Everyone

event_mastersol.h File Reference

Detailed Description

eventhdlr to transfer solutions found in the original problem to the master problem

Author
Christian Puchert

Definition in file event_mastersol.h.

#include "scip/scip.h"
#include "gcg/gcg.h"

Go to the source code of this file.

Functions

GCG_EXPORT SCIP_RETCODE GCGincludeEventHdlrMastersol (GCG *gcg)
 
GCG_EXPORT SCIP_Bool GCGeventhdlrMastersolIsTriggered (GCG *gcg)
 

Function Documentation

◆ GCGincludeEventHdlrMastersol()

GCG_EXPORT SCIP_RETCODE GCGincludeEventHdlrMastersol ( GCG *  gcg)

creates event handler for mastersol event

Parameters
gcgGCG data structure

Definition at line 163 of file event_mastersol.c.

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

Referenced by GCGincludeGcgPlugins().

◆ GCGeventhdlrMastersolIsTriggered()

GCG_EXPORT SCIP_Bool GCGeventhdlrMastersolIsTriggered ( GCG *  gcg)

return whether event has been triggered

Parameters
gcgGCG data structure

Definition at line 192 of file event_mastersol.c.

References EVENTHDLR_NAME, GCGgetOrigprob(), NULL, SCIP_Bool, SCIPeventhdlrGetData(), SCIPfindEventhdlr(), and SCIP_EventhdlrData::triggered.

Referenced by SCIP_DECL_EVENTEXEC().