Detailed Description
eventhdlr for writing various types of information during the solving process
If the filename is specified, a file is created and the eventhandler is installed to catch all events announcing that a node was solved or that a new best solution was found. Whenever one of these things happens, a line is printed to the file with the following information: 1) solving time 2) number of processed nodes (including the current node) 3) number of open nodes 4) number of LP iterations 5) number of variables in the master problem 6) current global dual bound 7) current primal bound
Definition in file event_solvingstats.c.
Go to the source code of this file.
Data Structures | |
struct | SCIP_EventhdlrData |
Macros | |
#define | EVENTHDLR_NAME "solvingstats" |
#define | EVENTHDLR_DESC "event handler for best solutions found" |
#define | DEFAULT_FILENAME "" |
Functions | |
static | SCIP_DECL_EVENTFREE (eventFreeSolvingstats) |
static | SCIP_DECL_EVENTINIT (eventInitSolvingstats) |
static | SCIP_DECL_EVENTEXIT (eventExitSolvingstats) |
static | SCIP_DECL_EVENTEXEC (eventExecSolvingstats) |
SCIP_RETCODE | SCIPincludeEventHdlrSolvingstats (SCIP *scip) |
Macro Definition Documentation
◆ EVENTHDLR_NAME
#define EVENTHDLR_NAME "solvingstats" |
Definition at line 50 of file event_solvingstats.c.
◆ EVENTHDLR_DESC
#define EVENTHDLR_DESC "event handler for best solutions found" |
Definition at line 51 of file event_solvingstats.c.
◆ DEFAULT_FILENAME
#define DEFAULT_FILENAME "" |
filename to write to
Definition at line 53 of file event_solvingstats.c.
Function Documentation
◆ SCIP_DECL_EVENTFREE()
|
static |
destructor of event handler to free user data (called when SCIP is exiting)
Definition at line 69 of file event_solvingstats.c.
◆ SCIP_DECL_EVENTINIT()
|
static |
initialization method of event handler (called after problem was transformed)
Definition at line 87 of file event_solvingstats.c.
References EVENTHDLR_NAME.
◆ SCIP_DECL_EVENTEXIT()
|
static |
deinitialization method of event handler (called before transformed problem is freed)
Definition at line 122 of file event_solvingstats.c.
References EVENTHDLR_NAME.
◆ SCIP_DECL_EVENTEXEC()
|
static |
execution method of event handler
Definition at line 148 of file event_solvingstats.c.
References EVENTHDLR_NAME.
◆ SCIPincludeEventHdlrSolvingstats()
SCIP_RETCODE SCIPincludeEventHdlrSolvingstats | ( | SCIP * | scip | ) |
includes event handler for best solution found
- Parameters
-
scip SCIP data structure
Definition at line 173 of file event_solvingstats.c.
References DEFAULT_FILENAME, EVENTHDLR_DESC, EVENTHDLR_NAME, and GCGmasterGetOrigprob().
Referenced by GCGincludeMasterPlugins().