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 | GCGincludeEventHdlrSolvingstats (GCG *gcg) |
Macro Definition Documentation
◆ EVENTHDLR_NAME
| #define EVENTHDLR_NAME "solvingstats" |
Definition at line 51 of file event_solvingstats.c.
◆ EVENTHDLR_DESC
| #define EVENTHDLR_DESC "event handler for best solutions found" |
Definition at line 52 of file event_solvingstats.c.
◆ DEFAULT_FILENAME
| #define DEFAULT_FILENAME "" |
filename to write to
Definition at line 54 of file event_solvingstats.c.
Referenced by GCGincludeEventHdlrSolvingstats().
Function Documentation
◆ SCIP_DECL_EVENTFREE()
|
static |
destructor of event handler to free user data (called when SCIP is exiting)
Definition at line 70 of file event_solvingstats.c.
References assert(), SCIP_EventhdlrData::file, and SCIPfreeMemory().
◆ SCIP_DECL_EVENTINIT()
|
static |
initialization method of event handler (called after problem was transformed)
Definition at line 88 of file event_solvingstats.c.
References assert(), EVENTHDLR_NAME, SCIP_EventhdlrData::file, SCIP_EventhdlrData::filename, SCIP_EventhdlrData::origprob, and SCIP_CALL().
◆ SCIP_DECL_EVENTEXIT()
|
static |
deinitialization method of event handler (called before transformed problem is freed)
Definition at line 123 of file event_solvingstats.c.
References assert(), EVENTHDLR_NAME, SCIP_EventhdlrData::file, and SCIP_CALL().
◆ SCIP_DECL_EVENTEXEC()
|
static |
execution method of event handler
Definition at line 149 of file event_solvingstats.c.
References assert(), EVENTHDLR_NAME, SCIP_EventhdlrData::file, SCIP_EventhdlrData::origprob, and SCIPdebugMessage().
◆ GCGincludeEventHdlrSolvingstats()
| SCIP_RETCODE GCGincludeEventHdlrSolvingstats | ( | GCG * | gcg | ) |
includes event handler for best solution found
- Parameters
-
gcg GCG data structure
Definition at line 174 of file event_solvingstats.c.
References assert(), DEFAULT_FILENAME, EVENTHDLR_DESC, EVENTHDLR_NAME, SCIP_EventhdlrData::file, SCIP_EventhdlrData::filename, GCGgetMasterprob(), GCGgetOrigprob(), GCGincludeEventHdlrSolvingstats(), masterprob, SCIP_EventhdlrData::origprob, and SCIP_CALL().
Referenced by GCGincludeEventHdlrSolvingstats(), and GCGincludeMasterPlugins().