GOBNILP  f164d83
Macros | Functions
event_splitdag.c File Reference

Provides a simple event handler to detect when the program should attempt to split dagcluster constraints into their individual strongly connected components. More...

#include "event_splitdag.h"
#include "cons_dagcluster.h"
Include dependency graph for event_splitdag.c:

Macros

#define EVENTHDLR_DESC   "event handler for splitting dagcluster constraints"
 A description of the event handler. More...
 
#define EVENTHDLR_NAME   "splitdag"
 The name of the event handler. More...
 

Functions

static SCIP_DECL_EVENTEXEC (eventExecSplitDAG)
 Executes the code to try splitting the dagcluster constraint when the program enters a new node. More...
 
static SCIP_DECL_EVENTINIT (eventInitSplitDAG)
 Adds the event catching once the problem is transformed. More...
 
SCIP_RETCODE SCIPincludeEventHdlrSplitDAG (SCIP *scip)
 Creates the event handler and registers it with the program. More...
 

Detailed Description

Provides a simple event handler to detect when the program should attempt to split dagcluster constraints into their individual strongly connected components.

The code for the actual splitting is in DC_tryToSplit() , this file just provides the code to ensure that that function is called at the correct time.

Macro Definition Documentation

◆ EVENTHDLR_DESC

#define EVENTHDLR_DESC   "event handler for splitting dagcluster constraints"

A description of the event handler.

Referenced by SCIPincludeEventHdlrSplitDAG().

◆ EVENTHDLR_NAME

#define EVENTHDLR_NAME   "splitdag"

The name of the event handler.

Referenced by SCIPincludeEventHdlrSplitDAG().

Function Documentation

◆ SCIP_DECL_EVENTEXEC()

static SCIP_DECL_EVENTEXEC ( eventExecSplitDAG  )
static

Executes the code to try splitting the dagcluster constraint when the program enters a new node.

References DC_tryToSplit().

Here is the call graph for this function:

◆ SCIP_DECL_EVENTINIT()

static SCIP_DECL_EVENTINIT ( eventInitSplitDAG  )
static

Adds the event catching once the problem is transformed.

◆ SCIPincludeEventHdlrSplitDAG()

SCIP_RETCODE SCIPincludeEventHdlrSplitDAG ( SCIP *  scip)

Creates the event handler and registers it with the program.

Parameters
scipThe SCIP instance to contain the handler.
Returns
SCIP_OKAY if the handler was correctly created, or an error code otherwise.

References EVENTHDLR_DESC, and EVENTHDLR_NAME.