Detailed Description
eventhdlr for soft time limit
Definition in file event_softtimelimit.c.
#include "scip/event_softtimelimit.h"
#include "scip/pub_event.h"
#include "scip/pub_message.h"
#include "scip/scip_event.h"
#include "scip/scip_mem.h"
#include "scip/scip_message.h"
#include "scip/scip_numerics.h"
#include "scip/scip_param.h"
#include <string.h>
Go to the source code of this file.
Macros | |
#define | EVENTHDLR_NAME "softtimelimit" |
#define | EVENTHDLR_DESC "event handler for soft time limit" |
Functions | |
static | SCIP_DECL_EVENTCOPY (eventCopySofttimelimit) |
static | SCIP_DECL_EVENTFREE (eventFreeSofttimelimit) |
static | SCIP_DECL_EVENTINIT (eventInitSofttimelimit) |
static | SCIP_DECL_EVENTEXIT (eventExitSofttimelimit) |
static | SCIP_DECL_EVENTEXEC (eventExecSofttimelimit) |
SCIP_RETCODE | SCIPincludeEventHdlrSofttimelimit (SCIP *scip) |
Macro Definition Documentation
◆ EVENTHDLR_NAME
#define EVENTHDLR_NAME "softtimelimit" |
Definition at line 34 of file event_softtimelimit.c.
Referenced by SCIP_DECL_EVENTCOPY(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTINIT(), and SCIPincludeEventHdlrSofttimelimit().
◆ EVENTHDLR_DESC
#define EVENTHDLR_DESC "event handler for soft time limit" |
Definition at line 35 of file event_softtimelimit.c.
Referenced by SCIPincludeEventHdlrSofttimelimit().
Function Documentation
◆ SCIP_DECL_EVENTCOPY()
|
static |
copy method for event handler plugins (called when SCIP copies plugins) ! [SnippetEventCopySofttimelimit]
Definition at line 55 of file event_softtimelimit.c.
References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrGetName(), and SCIPincludeEventHdlrSofttimelimit().
◆ SCIP_DECL_EVENTFREE()
|
static |
! [SnippetEventCopySofttimelimit] destructor of event handler to free user data (called when SCIP is exiting) ! [SnippetEventFreeSofttimelimit]
Definition at line 71 of file event_softtimelimit.c.
References EVENTHDLR_NAME, NULL, SCIP_OKAY, SCIPeventhdlrGetData(), SCIPeventhdlrGetName(), SCIPeventhdlrSetData(), and SCIPfreeBlockMemory.
◆ SCIP_DECL_EVENTINIT()
|
static |
! [SnippetEventFreeSofttimelimit] initialization method of event handler (called after problem was transformed)
Definition at line 93 of file event_softtimelimit.c.
References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIPcatchEvent(), SCIPeventhdlrGetData(), SCIPeventhdlrGetName(), and SCIPisNegative().
◆ SCIP_DECL_EVENTEXIT()
|
static |
deinitialization method of event handler (called before transformed problem is freed)
Definition at line 115 of file event_softtimelimit.c.
References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIPdropEvent(), SCIPeventhdlrGetData(), and SCIPeventhdlrGetName().
◆ SCIP_DECL_EVENTEXEC()
|
static |
execution method of event handler
Definition at line 138 of file event_softtimelimit.c.
References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIP_Real, SCIP_VERBLEVEL_FULL, SCIPdebugMsg, SCIPdropEvent(), SCIPeventGetType(), SCIPeventhdlrGetData(), SCIPeventhdlrGetName(), SCIPgetRealParam(), SCIPsetRealParam(), and SCIPverbMessage().
◆ SCIPincludeEventHdlrSofttimelimit()
SCIP_RETCODE SCIPincludeEventHdlrSofttimelimit | ( | SCIP * | scip | ) |
includes event handler for best solution found
- Parameters
-
scip SCIP data structure
Definition at line 173 of file event_softtimelimit.c.
References EVENTHDLR_DESC, EVENTHDLR_NAME, FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_REAL_MAX, SCIPaddRealParam(), SCIPallocBlockMemory(), SCIPincludeEventhdlrBasic(), SCIPsetEventhdlrCopy(), SCIPsetEventhdlrExit(), SCIPsetEventhdlrFree(), and SCIPsetEventhdlrInit().
Referenced by SCIP_DECL_EVENTCOPY(), and SCIPincludeDefaultPlugins().