Detailed Description
eventhdlr to print the best solution value
Definition in file event_bestsol.c.
Go to the source code of this file.
Macros | |
| #define | EVENTHDLR_NAME "bestsol" |
| #define | EVENTHDLR_DESC "event handler for best solutions found" |
Functions | |
| static | SCIP_DECL_EVENTINIT (eventInitBestsol) |
| static | SCIP_DECL_EVENTEXIT (eventExitBestsol) |
| static | SCIP_DECL_EVENTDELETE (eventDeleteBestsol) |
| static | SCIP_DECL_EVENTEXEC (eventExecBestsol) |
| SCIP_RETCODE | SCIPcreateEventHdlrBestsol (SCIP *scip) |
Macro Definition Documentation
◆ EVENTHDLR_NAME
| #define EVENTHDLR_NAME "bestsol" |
Definition at line 39 of file event_bestsol.c.
◆ EVENTHDLR_DESC
| #define EVENTHDLR_DESC "event handler for best solutions found" |
Definition at line 40 of file event_bestsol.c.
Function Documentation
◆ SCIP_DECL_EVENTINIT()
|
static |
initialization method of event handler (called after problem was transformed)
Definition at line 45 of file event_bestsol.c.
References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIPcatchEvent(), and SCIPeventhdlrGetName().
◆ SCIP_DECL_EVENTEXIT()
|
static |
deinitialization method of event handler (called before transformed problem is freed)
Definition at line 58 of file event_bestsol.c.
References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIPdropEvent(), and SCIPeventhdlrGetName().
◆ SCIP_DECL_EVENTDELETE()
|
static |
frees specific event data
Definition at line 71 of file event_bestsol.c.
References EVENTHDLR_NAME, NULL, SCIP_OKAY, SCIPeventhdlrGetName(), and SCIPfreeMemory.
◆ SCIP_DECL_EVENTEXEC()
|
static |
execution method of event handler
Definition at line 86 of file event_bestsol.c.
References ABS, EVENTHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIP_Real, SCIPdebugMessage, SCIPeventGetType(), SCIPeventhdlrGetName(), SCIPgetBestSol(), SCIPgetMessagehdlr(), SCIPgetSolOrigObj(), SCIPinfoMessage(), SCIPisHugeValue(), SCIPmessagehdlrGetData(), SCIPmessagehdlrIsQuiet(), SCIPmessagehdlrSetQuiet(), and SCIPround().
◆ SCIPcreateEventHdlrBestsol()
| SCIP_RETCODE SCIPcreateEventHdlrBestsol | ( | SCIP * | scip | ) |
creates event handler for best solution found
- Parameters
-
scip SCIP data structure
Definition at line 130 of file event_bestsol.c.
References EVENTHDLR_DESC, EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, and SCIPincludeEventhdlr().
Referenced by fromCommandLine().