xternal_eventhdlr.c
Go to the documentation of this file.
30/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
37 * reacts on new best solutions and an event handler acting on processed nodes. You should also read the section
40 * The event handlers event_bestsol.c and event_boundwriting.c show how the create a customized event handler in \SCIP.
49 * The remainder of this page focusses on the best solution event handler. See event_boundwriting.c for
60 * on the SCIP_EVENTTYPE_BESTSOLFOUND which already exists in SCIP. The main methods for changing the way
66 * event handler in the callback SCIP_DECL_EVENTINIT. At that point the problem was tranformed. Note that there are
67 * heuristics which are called before even the presolving starts as for example the trivial heuristic. This means the callback
68 * SCIP_DECL_EVENTINTSOL is too late to install the solution event because at that stage, we might have already missed
85 * The method SCIPcatchEvent() notifies \SCIP that we want to react on the event type best solution found.
89 * With respect to dropping the event handling, we perform that action in SCIP_DECL_EVENTEXIT which is the counter part
90 * of SCIP_DECL_EVENTINIT. The callback SCIP_DECL_EVENTEXITSOL which is the counter part to SCIP_DECL_EVENTINTSOL does
91 * not work because it will be called before the branch-and-bound process is freed. This, however, is not only done
92 * after the problem is solved. It also happens when a restart is performed. Dropping the event handler within this
93 * method would cause our event handler not to be informed about every new solution found after the first restart.
95 * place to drop that event handler is the callback SCIP_DECL_EVENTEXIT. Below you find the source code.
110 * The method SCIPdropEvent() tells SCIP that we want to drop the event type SCIP_EVENTTYPE_BESTSOLFOUND of belonging
115 * In the callback SCIP_DECL_EVENTEXEC, which is the execution method of the event handler, you can specify how the