4 cdef public Model model
8 '''sets copy callback for all events of this event handler '''
12 '''calls destructor and frees memory of event handler '''
16 '''initializes event handler'''
20 '''calls exit method of event handler'''
24 '''informs event handler that the branch and bound process is being started '''
28 '''informs event handler that the branch and bound process data is being freed '''
32 '''sets callback to free specific event data'''
36 '''calls execution method of event handler '''
37 print(
"python error in eventexec: this method needs to be implemented")
42 cdef Eventhdlr getPyEventhdlr(SCIP_EVENTHDLR* eventhdlr) noexcept
with gil:
43 cdef SCIP_EVENTHDLRDATA* eventhdlrdata
45 return <Eventhdlr>eventhdlrdata
47 cdef SCIP_RETCODE PyEventCopy (SCIP* scip, SCIP_EVENTHDLR* eventhdlr) noexcept
with gil:
48 PyEventhdlr = getPyEventhdlr(eventhdlr)
49 PyEventhdlr.eventcopy()
52 cdef SCIP_RETCODE PyEventFree (SCIP* scip, SCIP_EVENTHDLR* eventhdlr) noexcept
with gil:
53 PyEventhdlr = getPyEventhdlr(eventhdlr)
54 PyEventhdlr.eventfree()
55 Py_DECREF(PyEventhdlr)
58 cdef SCIP_RETCODE PyEventInit (SCIP* scip, SCIP_EVENTHDLR* eventhdlr) noexcept
with gil:
59 PyEventhdlr = getPyEventhdlr(eventhdlr)
60 PyEventhdlr.eventinit()
63 cdef SCIP_RETCODE PyEventExit (SCIP* scip, SCIP_EVENTHDLR* eventhdlr) noexcept
with gil:
64 PyEventhdlr = getPyEventhdlr(eventhdlr)
65 PyEventhdlr.eventexit()
68 cdef SCIP_RETCODE PyEventInitsol (SCIP* scip, SCIP_EVENTHDLR* eventhdlr) noexcept
with gil:
69 PyEventhdlr = getPyEventhdlr(eventhdlr)
70 PyEventhdlr.eventinitsol()
73 cdef SCIP_RETCODE PyEventExitsol (SCIP* scip, SCIP_EVENTHDLR* eventhdlr) noexcept
with gil:
74 PyEventhdlr = getPyEventhdlr(eventhdlr)
75 PyEventhdlr.eventexitsol()
78 cdef SCIP_RETCODE PyEventDelete (SCIP* scip, SCIP_EVENTHDLR* eventhdlr, SCIP_EVENTDATA** eventdata) noexcept
with gil:
79 PyEventhdlr = getPyEventhdlr(eventhdlr)
80 PyEventhdlr.eventdelete()
83 cdef SCIP_RETCODE PyEventExec (SCIP* scip, SCIP_EVENTHDLR* eventhdlr, SCIP_EVENT* event, SCIP_EVENTDATA* eventdata) noexcept
with gil:
84 PyEventhdlr = getPyEventhdlr(eventhdlr)
87 PyEventhdlr.eventexec(PyEvent)