Detailed Description
eventhdlr that adds new solutions to the candidate pool for the exchange heuristic
Definition in file event_newsol.c.
#include <assert.h>
#include <string.h>
#include "event_newsol.h"
#include "heur_cyckerlin.h"
#include "probdata_cyc.h"
Go to the source code of this file.
Macros | |
#define | EVENTHDLR_NAME "newsol" |
#define | EVENTHDLR_DESC "event handler for solution events" |
Functions | |
static | SCIP_DECL_EVENTCOPY (eventCopyNewsol) |
static | SCIP_DECL_EVENTINIT (eventInitNewsol) |
static | SCIP_DECL_EVENTEXIT (eventExitNewsol) |
static | SCIP_DECL_EVENTEXEC (eventExecNewsol) |
SCIP_RETCODE | SCIPincludeEventHdlrNewsol (SCIP *scip) |
Macro Definition Documentation
◆ EVENTHDLR_NAME
#define EVENTHDLR_NAME "newsol" |
Definition at line 30 of file event_newsol.c.
Referenced by SCIP_DECL_EVENTCOPY(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTINIT(), and SCIPincludeEventHdlrNewsol().
◆ EVENTHDLR_DESC
#define EVENTHDLR_DESC "event handler for solution events" |
Definition at line 31 of file event_newsol.c.
Referenced by SCIPincludeEventHdlrNewsol().
Function Documentation
◆ SCIP_DECL_EVENTCOPY()
|
static |
copy method for event handler plugins (called when SCIP copies plugins)
Definition at line 35 of file event_newsol.c.
References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrGetName(), and SCIPincludeEventHdlrNewsol().
◆ SCIP_DECL_EVENTINIT()
|
static |
initialization method of event handler (called after problem was transformed)
Definition at line 49 of file event_newsol.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 63 of file event_newsol.c.
References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIPdropEvent(), and SCIPeventhdlrGetName().
◆ SCIP_DECL_EVENTEXEC()
|
static |
execution method of event handler
Definition at line 77 of file event_newsol.c.
References addCandSolCyckerlin(), EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_BESTSOLFOUND, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPdebugMsg, SCIPeventGetSol(), SCIPeventGetType(), SCIPeventhdlrGetName(), SCIPgetSolOrigObj(), and SCIPgetStage().
◆ SCIPincludeEventHdlrNewsol()
SCIP_RETCODE SCIPincludeEventHdlrNewsol | ( | SCIP * | scip | ) |
includes event handler for best solution found
- Parameters
-
scip SCIP data structure
Definition at line 103 of file event_newsol.c.
References EVENTHDLR_DESC, EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeEventhdlrBasic(), SCIPsetEventhdlrCopy(), SCIPsetEventhdlrExit(), and SCIPsetEventhdlrInit().
Referenced by SCIP_DECL_EVENTCOPY(), and SCIPincludeCycPlugins().