Scippy

GCG

Branch-and-Price & Column Generation for Everyone

event_mastersol.c 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.c.

#include <string.h>
#include "event_mastersol.h"
#include "pricer_gcg.h"
#include "gcg.h"
#include "relax_gcg.h"
#include "event_relaxsol.h"

Go to the source code of this file.

Data Structures

struct  SCIP_EventhdlrData
 

Macros

#define EVENTHDLR_NAME   "mastersol"
 
#define EVENTHDLR_DESC   "event handler to to transfer solutions found in the original problem to the master problem"
 

Functions

static SCIP_DECL_EVENTFREE (eventFreeMastersol)
 
static SCIP_DECL_EVENTINIT (eventInitMastersol)
 
static SCIP_DECL_EVENTEXIT (eventExitMastersol)
 
static SCIP_DECL_EVENTEXEC (eventExecMastersol)
 
SCIP_RETCODE SCIPincludeEventHdlrMastersol (SCIP *scip)
 
SCIP_Bool GCGeventhdlrMastersolIsTriggered (SCIP *scip)
 

Macro Definition Documentation

◆ EVENTHDLR_NAME

#define EVENTHDLR_NAME   "mastersol"

Definition at line 42 of file event_mastersol.c.

◆ EVENTHDLR_DESC

#define EVENTHDLR_DESC   "event handler to to transfer solutions found in the original problem to the master problem"

Definition at line 43 of file event_mastersol.c.

Function Documentation

◆ SCIP_DECL_EVENTFREE()

static SCIP_DECL_EVENTFREE ( eventFreeMastersol  )
static

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

Definition at line 63 of file event_mastersol.c.

References EVENTHDLR_NAME.

◆ SCIP_DECL_EVENTINIT()

static SCIP_DECL_EVENTINIT ( eventInitMastersol  )
static

initialization method of event handler (called after problem was transformed)

Definition at line 82 of file event_mastersol.c.

◆ SCIP_DECL_EVENTEXIT()

static SCIP_DECL_EVENTEXIT ( eventExitMastersol  )
static

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

Definition at line 98 of file event_mastersol.c.

◆ SCIP_DECL_EVENTEXEC()

static SCIP_DECL_EVENTEXEC ( eventExecMastersol  )
static

◆ SCIPincludeEventHdlrMastersol()

SCIP_RETCODE SCIPincludeEventHdlrMastersol ( SCIP *  scip)

creates event handler for mastersol event

Parameters
scipSCIP data structure

Definition at line 161 of file event_mastersol.c.

References EVENTHDLR_DESC, and EVENTHDLR_NAME.

Referenced by SCIPincludeGcgPlugins().

◆ GCGeventhdlrMastersolIsTriggered()

SCIP_Bool GCGeventhdlrMastersolIsTriggered ( SCIP *  scip)

return whether event has been triggered

Parameters
scipSCIP data structure

Definition at line 187 of file event_mastersol.c.

References EVENTHDLR_NAME.

Referenced by SCIP_DECL_EVENTEXEC().