Detailed Description
eventhdlr to transfer solutions found in the original problem to the master problem
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 |
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 |
initialization method of event handler (called after problem was transformed)
Definition at line 82 of file event_mastersol.c.
◆ SCIP_DECL_EVENTEXIT()
|
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 |
execution method of event handler
Definition at line 109 of file event_mastersol.c.
References DEC_DECMODE_BENDERS, DEC_DECMODE_ORIGINAL, EVENTHDLR_NAME, GCGeventhdlrRelaxsolIsTriggered(), GCGgetDecompositionMode(), GCGgetMasterprob(), and GCGmasterTransOrigSolToMasterVars().
◆ SCIPincludeEventHdlrMastersol()
SCIP_RETCODE SCIPincludeEventHdlrMastersol | ( | SCIP * | scip | ) |
creates event handler for mastersol event
- Parameters
-
scip SCIP 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
-
scip SCIP data structure
Definition at line 187 of file event_mastersol.c.
References EVENTHDLR_NAME.
Referenced by SCIP_DECL_EVENTEXEC().