28 #define EVENTHDLR_NAME "bestsol" 29 #define EVENTHDLR_DESC "event handler for best solutions found" 36 assert(eventhdlr !=
NULL);
50 assert(eventhdlr !=
NULL);
64 assert(eventhdlr !=
NULL);
80 assert(eventhdlr !=
NULL);
82 assert(event !=
NULL);
86 SCIPdebugMsg(
scip,
"exec method of event handler for best solution found\n");
89 assert(bestsol !=
NULL);
106 eventhdlrdata =
NULL;
111 assert(eventhdlr !=
NULL);
SCIP_RETCODE SCIPsetEventhdlrExit(SCIP *scip, SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTEXIT((*eventexit)))
static SCIP_DECL_EVENTINIT(eventInitBestsol)
SCIP_RETCODE SCIPincludeEventhdlrBasic(SCIP *scip, SCIP_EVENTHDLR **eventhdlrptr, const char *name, const char *desc, SCIP_DECL_EVENTEXEC((*eventexec)), SCIP_EVENTHDLRDATA *eventhdlrdata)
struct SCIP_EventhdlrData SCIP_EVENTHDLRDATA
static SCIP_DECL_EVENTEXIT(eventExitBestsol)
const char * SCIPeventhdlrGetName(SCIP_EVENTHDLR *eventhdlr)
enum SCIP_Retcode SCIP_RETCODE
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
const char * SCIPgetProbName(SCIP *scip)
SCIP_RETCODE SCIPsetEventhdlrCopy(SCIP *scip, SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTCOPY((*eventcopy)))
SCIP_RETCODE SCIPsetEventhdlrInit(SCIP *scip, SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTINIT((*eventinit)))
SCIP_RETCODE SCIPcatchEvent(SCIP *scip, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int *filterpos)
SCIP_EVENTTYPE SCIPeventGetType(SCIP_EVENT *event)
eventhdlr for best solution found
SCIP_RETCODE SCIPdropEvent(SCIP *scip, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int filterpos)
SCIP_Real SCIPgetSolOrigObj(SCIP *scip, SCIP_SOL *sol)
static SCIP_DECL_EVENTCOPY(eventCopyBestsol)
#define SCIP_EVENTTYPE_BESTSOLFOUND
SCIP_SOL * SCIPgetBestSol(SCIP *scip)
SCIP_RETCODE SCIPincludeEventHdlrBestsol(SCIP *scip)
static SCIP_DECL_EVENTEXEC(eventExecBestsol)