Scippy

SCIP

Solving Constraint Integer Programs

event.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2021 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not visit scipopt.org. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file event.h
17  * @brief internal methods for managing events
18  * @author Tobias Achterberg
19  */
20 
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22 
23 #ifndef __SCIP_EVENT_H__
24 #define __SCIP_EVENT_H__
25 
26 
27 #include "scip/def.h"
28 #include "blockmemshell/memory.h"
29 #include "scip/type_retcode.h"
30 #include "scip/type_set.h"
31 #include "scip/type_event.h"
32 #include "scip/type_lp.h"
33 #include "scip/type_var.h"
34 #include "scip/type_sol.h"
35 #include "scip/type_primal.h"
36 #include "scip/type_branch.h"
37 #include "scip/pub_event.h"
38 
39 /* In optimized mode, some function calls are overwritten by defines to reduce the number of function calls and
40  * speed up the algorithms. For this, we need to include struct_event.h.
41  */
42 #ifdef NDEBUG
43 #include "scip/struct_event.h"
44 #endif
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 /*
51  * Event handler methods
52  */
53 
54 /** copies the given event handler to a new scip */
56  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
57  SCIP_SET* set /**< SCIP_SET of SCIP to copy to */
58  );
59 
60 /** creates an event handler */
62  SCIP_EVENTHDLR** eventhdlr, /**< pointer to event handler data structure */
63  SCIP_SET* set, /**< global SCIP settings */
64  const char* name, /**< name of event handler */
65  const char* desc, /**< description of event handler */
66  SCIP_DECL_EVENTCOPY ((*eventcopy)), /**< copy method of event handler or NULL if you don't want to copy your plugin into sub-SCIPs */
67  SCIP_DECL_EVENTFREE ((*eventfree)), /**< destructor of event handler */
68  SCIP_DECL_EVENTINIT ((*eventinit)), /**< initialize event handler */
69  SCIP_DECL_EVENTEXIT ((*eventexit)), /**< deinitialize event handler */
70  SCIP_DECL_EVENTINITSOL((*eventinitsol)), /**< solving process initialization method of event handler */
71  SCIP_DECL_EVENTEXITSOL((*eventexitsol)), /**< solving process deinitialization method of event handler */
72  SCIP_DECL_EVENTDELETE ((*eventdelete)), /**< free specific event data */
73  SCIP_DECL_EVENTEXEC ((*eventexec)), /**< execute event handler */
74  SCIP_EVENTHDLRDATA* eventhdlrdata /**< event handler data */
75  );
76 
77 /** calls destructor and frees memory of event handler */
79  SCIP_EVENTHDLR** eventhdlr, /**< pointer to event handler data structure */
80  SCIP_SET* set /**< global SCIP settings */
81  );
82 
83 /** initializes event handler */
85  SCIP_EVENTHDLR* eventhdlr, /**< event handler for this event */
86  SCIP_SET* set /**< global SCIP settings */
87  );
88 
89 /** calls exit method of event handler */
91  SCIP_EVENTHDLR* eventhdlr, /**< event handler for this event */
92  SCIP_SET* set /**< global SCIP settings */
93  );
94 
95 /** informs event handler that the branch and bound process is being started */
97  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
98  SCIP_SET* set /**< global SCIP settings */
99  );
100 
101 /** informs event handler that the branch and bound process data is being freed */
103  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
104  SCIP_SET* set /**< global SCIP settings */
105  );
106 
107 /** calls execution method of event handler */
109  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
110  SCIP_SET* set, /**< global SCIP settings */
111  SCIP_EVENT* event, /**< event to call event handler with */
112  SCIP_EVENTDATA* eventdata /**< user data for the issued event */
113  );
114 
115 /**
116  * callback setter methods of event handlers
117  */
118 /** sets copy callback for all events of this event handler */
120  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
121  SCIP_DECL_EVENTCOPY ((*eventcopy)) /**< copy callback for events */
122  );
123 
124 /** sets destructor callback of this event handler */
126  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
127  SCIP_DECL_EVENTFREE ((*eventfree)) /**< destructor callback of event handler */
128  );
129 
130 /** sets initialization callback of this event handler */
132  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
133  SCIP_DECL_EVENTINIT ((*eventinit)) /**< initialization callback of event handler */
134  );
135 
136 /** sets deinitialization callback of this event handler */
138  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
139  SCIP_DECL_EVENTEXIT ((*eventexit)) /**< deinitialization callback of event handler */
140  );
141 
142 /** sets solving process initialization callback of this event handler */
144  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
145  SCIP_DECL_EVENTINITSOL((*eventinitsol)) /**< solving process initialization callback of event handler */
146  );
147 
148 /** sets solving process deinitialization callback of this event handler */
150  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
151  SCIP_DECL_EVENTEXITSOL((*eventexitsol)) /**< solving process deinitialization callback of event handler */
152  );
153 
154 /** sets callback to free specific event data */
156  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
157  SCIP_DECL_EVENTDELETE ((*eventdelete)) /**< callback to free specific event data */
158  );
159 
160 /** enables or disables all clocks of \p eventhdlr, depending on the value of the flag */
162  SCIP_EVENTHDLR* eventhdlr, /**< the event handler for which all clocks should be enabled or disabled */
163  SCIP_Bool enable /**< should the clocks of the event handler be enabled? */
164  );
165 
166 /*
167  * Event methods
168  */
169 
170 /** creates a synchronization event */
172  SCIP_EVENT** event, /**< pointer to store the event */
173  BMS_BLKMEM* blkmem /**< block memory */
174  );
175 
176 /** creates an event for an addition of a variable to the problem */
178  SCIP_EVENT** event, /**< pointer to store the event */
179  BMS_BLKMEM* blkmem, /**< block memory */
180  SCIP_VAR* var /**< variable that was added to the problem */
181  );
182 
183 /** creates an event for a deletion of a variable from the problem */
185  SCIP_EVENT** event, /**< pointer to store the event */
186  BMS_BLKMEM* blkmem, /**< block memory */
187  SCIP_VAR* var /**< variable that is to be deleted from the problem */
188  );
189 
190 /** creates an event for a fixing of a variable */
192  SCIP_EVENT** event, /**< pointer to store the event */
193  BMS_BLKMEM* blkmem, /**< block memory */
194  SCIP_VAR* var /**< variable that was fixed */
195  );
196 
197 /** creates an event for a change in the number of locks of a variable down to zero or one */
199  SCIP_EVENT** event, /**< pointer to store the event */
200  BMS_BLKMEM* blkmem, /**< block memory */
201  SCIP_VAR* var /**< variable that changed the number of locks */
202  );
203 
204 /** creates an event for a change in the objective value of a variable */
206  SCIP_EVENT** event, /**< pointer to store the event */
207  BMS_BLKMEM* blkmem, /**< block memory */
208  SCIP_VAR* var, /**< variable whose objective value changed */
209  SCIP_Real oldobj, /**< old objective value before value changed */
210  SCIP_Real newobj /**< new objective value after value changed */
211  );
212 
213 /** creates an event for a change in the global lower bound of a variable */
215  SCIP_EVENT** event, /**< pointer to store the event */
216  BMS_BLKMEM* blkmem, /**< block memory */
217  SCIP_VAR* var, /**< variable whose bound changed */
218  SCIP_Real oldbound, /**< old bound before bound changed */
219  SCIP_Real newbound /**< new bound after bound changed */
220  );
221 
222 /** creates an event for a change in the global upper bound of a variable */
224  SCIP_EVENT** event, /**< pointer to store the event */
225  BMS_BLKMEM* blkmem, /**< block memory */
226  SCIP_VAR* var, /**< variable whose bound changed */
227  SCIP_Real oldbound, /**< old bound before bound changed */
228  SCIP_Real newbound /**< new bound after bound changed */
229  );
230 
231 /** creates an event for a change in the lower bound of a variable */
233  SCIP_EVENT** event, /**< pointer to store the event */
234  BMS_BLKMEM* blkmem, /**< block memory */
235  SCIP_VAR* var, /**< variable whose bound changed */
236  SCIP_Real oldbound, /**< old bound before bound changed */
237  SCIP_Real newbound /**< new bound after bound changed */
238  );
239 
240 /** creates an event for a change in the upper bound of a variable */
242  SCIP_EVENT** event, /**< pointer to store the event */
243  BMS_BLKMEM* blkmem, /**< block memory */
244  SCIP_VAR* var, /**< variable whose bound changed */
245  SCIP_Real oldbound, /**< old bound before bound changed */
246  SCIP_Real newbound /**< new bound after bound changed */
247  );
248 
249 /** creates an event for an addition of a global domain hole to a variable */
251  SCIP_EVENT** event, /**< pointer to store the event */
252  BMS_BLKMEM* blkmem, /**< block memory */
253  SCIP_VAR* var, /**< variable whose bound changed */
254  SCIP_Real left, /**< left bound of open interval in new hole */
255  SCIP_Real right /**< right bound of open interval in new hole */
256  );
257 
258 /** creates an event for removing a global domain hole of a variable */
260  SCIP_EVENT** event, /**< pointer to store the event */
261  BMS_BLKMEM* blkmem, /**< block memory */
262  SCIP_VAR* var, /**< variable whose bound changed */
263  SCIP_Real left, /**< left bound of open interval in hole */
264  SCIP_Real right /**< right bound of open interval in hole */
265  );
266 
267 /** creates an event for an addition of a local domain hole to a variable */
269  SCIP_EVENT** event, /**< pointer to store the event */
270  BMS_BLKMEM* blkmem, /**< block memory */
271  SCIP_VAR* var, /**< variable whose bound changed */
272  SCIP_Real left, /**< left bound of open interval in new hole */
273  SCIP_Real right /**< right bound of open interval in new hole */
274  );
275 
276 /** creates an event for removing a local domain hole of a variable */
278  SCIP_EVENT** event, /**< pointer to store the event */
279  BMS_BLKMEM* blkmem, /**< block memory */
280  SCIP_VAR* var, /**< variable whose bound changed */
281  SCIP_Real left, /**< left bound of open interval in hole */
282  SCIP_Real right /**< right bound of open interval in hole */
283  );
284 
285 /** creates an event for an addition to the variable's implications list, clique or variable bounds information */
287  SCIP_EVENT** event, /**< pointer to store the event */
288  BMS_BLKMEM* blkmem, /**< block memory */
289  SCIP_VAR* var /**< variable that was fixed */
290  );
291 
292 /** creates an event for a changeing the type of a variable */
294  SCIP_EVENT** event, /**< pointer to store the event */
295  BMS_BLKMEM* blkmem, /**< block memory */
296  SCIP_VAR* var, /**< variable whose objective value changed */
297  SCIP_VARTYPE oldtype, /**< old variable type */
298  SCIP_VARTYPE newtype /**< new variable type */
299  );
300 
301 /** creates an event for the addition of a linear row to the separation storage */
303  SCIP_EVENT** event, /**< pointer to store the event */
304  BMS_BLKMEM* blkmem, /**< block memory */
305  SCIP_ROW* row /**< row that was added to the separation storage*/
306  );
307 
308 /** creates an event for the deletion of a linear row from the separation storage */
310  SCIP_EVENT** event, /**< pointer to store the event */
311  BMS_BLKMEM* blkmem, /**< block memory */
312  SCIP_ROW* row /**< row that was deleted from the separation storage */
313  );
314 
315 /** creates an event for the addition of a linear row to the LP */
317  SCIP_EVENT** event, /**< pointer to store the event */
318  BMS_BLKMEM* blkmem, /**< block memory */
319  SCIP_ROW* row /**< row that was added to the LP */
320  );
321 
322 /** creates an event for the deletion of a linear row from the LP */
324  SCIP_EVENT** event, /**< pointer to store the event */
325  BMS_BLKMEM* blkmem, /**< block memory */
326  SCIP_ROW* row /**< row that was deleted from the LP */
327  );
328 
329 /** creates an event for the change of a coefficient in a linear row */
331  SCIP_EVENT** event, /**< pointer to store the event */
332  BMS_BLKMEM* blkmem, /**< block memory */
333  SCIP_ROW* row, /**< row in which a coefficient changed */
334  SCIP_COL* col, /**< column which coefficient changed */
335  SCIP_Real oldval, /**< old value of coefficient */
336  SCIP_Real newval /**< new value of coefficient */
337  );
338 
339 /** creates an event for the change of a constant in a linear row */
341  SCIP_EVENT** event, /**< pointer to store the event */
342  BMS_BLKMEM* blkmem, /**< block memory */
343  SCIP_ROW* row, /**< row in which the constant changed */
344  SCIP_Real oldval, /**< old value of constant */
345  SCIP_Real newval /**< new value of constant */
346  );
347 
348 /** creates an event for the change of a side of a linear row */
350  SCIP_EVENT** event, /**< pointer to store the event */
351  BMS_BLKMEM* blkmem, /**< block memory */
352  SCIP_ROW* row, /**< row which side has changed */
353  SCIP_SIDETYPE side, /**< which side has changed */
354  SCIP_Real oldval, /**< old value of side */
355  SCIP_Real newval /**< new value of side */
356  );
357 
358 /** frees an event */
360  SCIP_EVENT** event, /**< event to free */
361  BMS_BLKMEM* blkmem /**< block memory buffer */
362  );
363 
364 /** sets type of event */
366  SCIP_EVENT* event, /**< event */
367  SCIP_EVENTTYPE eventtype /**< new event type */
368  );
369 
370 /** sets variable for a variable event */
372  SCIP_EVENT* event, /**< event */
373  SCIP_VAR* var /**< new variable */
374  );
375 
376 /** sets node for a node or LP event */
378  SCIP_EVENT* event, /**< event */
379  SCIP_NODE* node /**< new node */
380  );
381 
382 /** sets solution for a primal solution event */
384  SCIP_EVENT* event, /**< event */
385  SCIP_SOL* sol /**< new primal solution */
386  );
387 
388 /** processes event by calling the appropriate event handlers */
390  SCIP_EVENT* event, /**< event */
391  SCIP_SET* set, /**< global SCIP settings */
392  SCIP_PRIMAL* primal, /**< primal data; only needed for objchanged events, or NULL */
393  SCIP_LP* lp, /**< current LP data; only needed for obj/boundchanged events, or NULL */
394  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage; only needed for bound change events, or NULL */
395  SCIP_EVENTFILTER* eventfilter /**< event filter for global events; not needed for variable specific events */
396  );
397 
398 
399 
400 /*
401  * Event filter methods
402  */
403 
404 /** creates an event filter */
406  SCIP_EVENTFILTER** eventfilter, /**< pointer to store the event filter */
407  BMS_BLKMEM* blkmem /**< block memory buffer */
408  );
409 
410 /** frees an event filter and the associated event data entries */
412  SCIP_EVENTFILTER** eventfilter, /**< pointer to store the event filter */
413  BMS_BLKMEM* blkmem, /**< block memory buffer */
414  SCIP_SET* set /**< global SCIP settings */
415  );
416 
417 /** adds element to event filter */
419  SCIP_EVENTFILTER* eventfilter, /**< event filter */
420  BMS_BLKMEM* blkmem, /**< block memory buffer */
421  SCIP_SET* set, /**< global SCIP settings */
422  SCIP_EVENTTYPE eventtype, /**< event type to catch */
423  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
424  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
425  int* filterpos /**< pointer to store position of event filter entry, or NULL */
426  );
427 
428 /** deletes element from event filter */
430  SCIP_EVENTFILTER* eventfilter, /**< event filter */
431  BMS_BLKMEM* blkmem, /**< block memory buffer */
432  SCIP_SET* set, /**< global SCIP settings */
433  SCIP_EVENTTYPE eventtype, /**< event type */
434  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
435  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
436  int filterpos /**< position of event filter entry, or -1 if unknown */
437  );
438 
439 /** processes the event with all event handlers with matching filter setting */
441  SCIP_EVENTFILTER* eventfilter, /**< event filter */
442  SCIP_SET* set, /**< global SCIP settings */
443  SCIP_EVENT* event /**< event to process */
444  );
445 
446 
447 
448 /*
449  * Event queue methods
450  */
451 
452 /** creates an event queue */
454  SCIP_EVENTQUEUE** eventqueue /**< pointer to store the event queue */
455  );
456 
457 /** frees event queue; there must not be any unprocessed events in the queue! */
459  SCIP_EVENTQUEUE** eventqueue /**< pointer to the event queue */
460  );
461 
462 /** processes event or adds event to the event queue */
464  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
465  BMS_BLKMEM* blkmem, /**< block memory buffer */
466  SCIP_SET* set, /**< global SCIP settings */
467  SCIP_PRIMAL* primal, /**< primal data; only needed for objchanged events, or NULL */
468  SCIP_LP* lp, /**< current LP data; only needed for obj/boundchanged events, or NULL */
469  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage; only needed for bound change events, or NULL */
470  SCIP_EVENTFILTER* eventfilter, /**< event filter for global events; not needed for variable specific events */
471  SCIP_EVENT** event /**< pointer to event to add to the queue; will be NULL after queue addition */
472  );
473 
474 /** marks queue to delay incoming events until a call to SCIPeventqueueProcess() */
476  SCIP_EVENTQUEUE* eventqueue /**< event queue */
477  );
478 
479 /** processes all events in the queue */
481  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
482  BMS_BLKMEM* blkmem, /**< block memory buffer */
483  SCIP_SET* set, /**< global SCIP settings */
484  SCIP_PRIMAL* primal, /**< primal data */
485  SCIP_LP* lp, /**< current LP data */
486  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
487  SCIP_EVENTFILTER* eventfilter /**< event filter for global (not variable dependent) events */
488  );
489 
490 /** returns TRUE iff events of the queue are delayed until the next SCIPeventqueueProcess() call */
492  SCIP_EVENTQUEUE* eventqueue /**< event queue */
493  );
494 
495 #ifdef NDEBUG
496 
497 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
498  * speed up the algorithms.
499  */
500 
501 #define SCIPeventqueueIsDelayed(eventqueue) ((eventqueue)->delayevents)
502 
503 #endif
504 
505 #ifdef __cplusplus
506 }
507 #endif
508 
509 #endif
void SCIPeventhdlrSetDelete(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTDELETE((*eventdelete)))
Definition: event.c:412
SCIP_RETCODE SCIPeventfilterDel(SCIP_EVENTFILTER *eventfilter, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int filterpos)
Definition: event.c:1970
SCIP_RETCODE SCIPeventCreateRowAddedLP(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:885
SCIP_RETCODE SCIPeventqueueProcess(SCIP_EVENTQUEUE *eventqueue, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTFILTER *eventfilter)
Definition: event.c:2487
SCIP_RETCODE SCIPeventCreateSync(SCIP_EVENT **event, BMS_BLKMEM *blkmem)
Definition: event.c:474
SCIP_RETCODE SCIPeventChgNode(SCIP_EVENT *event, SCIP_NODE *node)
Definition: event.c:1308
SCIP_RETCODE SCIPeventhdlrExit(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:207
SCIP_RETCODE SCIPeventCreateRowConstChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row, SCIP_Real oldval, SCIP_Real newval)
Definition: event.c:948
SCIP_RETCODE SCIPeventProcess(SCIP_EVENT *event, SCIP_SET *set, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTFILTER *eventfilter)
Definition: event.c:1565
SCIP_RETCODE SCIPeventqueueAdd(SCIP_EVENTQUEUE *eventqueue, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTFILTER *eventfilter, SCIP_EVENT **event)
Definition: event.c:2231
void SCIPeventhdlrSetInit(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTINIT((*eventinit)))
Definition: event.c:368
SCIP_RETCODE SCIPeventCreateUbChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:691
SCIP_DECL_EVENTEXIT(EventhdlrNewSol::scip_exit)
struct SCIP_EventhdlrData SCIP_EVENTHDLRDATA
Definition: type_event.h:146
SCIP_RETCODE SCIPeventhdlrInit(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:171
SCIP_RETCODE SCIPeventCreateLholeAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:761
SCIP_RETCODE SCIPeventqueueDelay(SCIP_EVENTQUEUE *eventqueue)
Definition: event.c:2472
SCIP_RETCODE SCIPeventfilterCreate(SCIP_EVENTFILTER **eventfilter, BMS_BLKMEM *blkmem)
Definition: event.c:1812
SCIP_RETCODE SCIPeventhdlrFree(SCIP_EVENTHDLR **eventhdlr, SCIP_SET *set)
Definition: event.c:140
void SCIPeventhdlrSetCopy(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTCOPY((*eventcopy)))
Definition: event.c:346
datastructures for managing events
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:54
void SCIPeventhdlrSetInitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTINITSOL((*eventinitsol)))
Definition: event.c:390
type definitions for global SCIP settings
SCIP_RETCODE SCIPeventfilterAdd(SCIP_EVENTFILTER *eventfilter, BMS_BLKMEM *blkmem, SCIP_SET *set, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int *filterpos)
Definition: event.c:1877
SCIP_RETCODE SCIPeventChgType(SCIP_EVENT *event, SCIP_EVENTTYPE eventtype)
Definition: event.c:1031
SCIP_RETCODE SCIPeventChgVar(SCIP_EVENT *event, SCIP_VAR *var)
Definition: event.c:1104
type definitions for return codes for SCIP methods
SCIP_RETCODE SCIPeventCreateRowDeletedLP(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:904
void SCIPeventhdlrEnableOrDisableClocks(SCIP_EVENTHDLR *eventhdlr, SCIP_Bool enable)
Definition: event.c:433
SCIP_RETCODE SCIPeventCreateImplAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:805
SCIP_RETCODE SCIPeventCreateObjChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldobj, SCIP_Real newobj)
Definition: event.c:596
type definitions for branching rules
SCIP_RETCODE SCIPeventqueueCreate(SCIP_EVENTQUEUE **eventqueue)
Definition: event.c:2175
SCIP_DECL_EVENTINITSOL(EventhdlrNewSol::scip_initsol)
SCIP_RETCODE SCIPeventqueueFree(SCIP_EVENTQUEUE **eventqueue)
Definition: event.c:2191
type definitions for LP management
SCIP_RETCODE SCIPeventChgSol(SCIP_EVENT *event, SCIP_SOL *sol)
Definition: event.c:1345
SCIP_DECL_EVENTINIT(EventhdlrNewSol::scip_init)
SCIP_DECL_EVENTFREE(EventhdlrNewSol::scip_free)
SCIP_RETCODE SCIPeventhdlrInitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:237
void SCIPeventhdlrSetFree(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTFREE((*eventfree)))
Definition: event.c:357
SCIP_RETCODE SCIPeventCreateVarAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:517
SCIP_RETCODE SCIPeventCreateGlbChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:619
struct SCIP_EventData SCIP_EVENTDATA
Definition: type_event.h:164
SCIP_RETCODE SCIPeventCreateVarFixed(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:553
type definitions for problem variables
SCIP_RETCODE SCIPeventCreateRowDeletedSepa(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:866
type definitions for managing events
SCIP_RETCODE SCIPeventCreateRowSideChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row, SCIP_SIDETYPE side, SCIP_Real oldval, SCIP_Real newval)
Definition: event.c:971
SCIP_RETCODE SCIPeventCreateGholeRemoved(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:739
#define SCIP_Bool
Definition: def.h:70
void SCIPeventhdlrSetExit(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTEXIT((*eventexit)))
Definition: event.c:379
SCIP_RETCODE SCIPeventCreateLbChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:665
SCIP_RETCODE SCIPeventCreateRowCoefChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row, SCIP_COL *col, SCIP_Real oldval, SCIP_Real newval)
Definition: event.c:923
SCIP_RETCODE SCIPeventCreateLholeRemoved(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:783
SCIP_RETCODE SCIPeventfilterFree(SCIP_EVENTFILTER **eventfilter, BMS_BLKMEM *blkmem, SCIP_SET *set)
Definition: event.c:1837
SCIP_RETCODE SCIPeventCreateGholeAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:717
type definitions for storing primal CIP solutions
public methods for managing events
SCIP_RETCODE SCIPeventhdlrCreate(SCIP_EVENTHDLR **eventhdlr, SCIP_SET *set, const char *name, const char *desc, SCIP_DECL_EVENTCOPY((*eventcopy)), SCIP_DECL_EVENTFREE((*eventfree)), SCIP_DECL_EVENTINIT((*eventinit)), SCIP_DECL_EVENTEXIT((*eventexit)), SCIP_DECL_EVENTINITSOL((*eventinitsol)), SCIP_DECL_EVENTEXITSOL((*eventexitsol)), SCIP_DECL_EVENTDELETE((*eventdelete)), SCIP_DECL_EVENTEXEC((*eventexec)), SCIP_EVENTHDLRDATA *eventhdlrdata)
Definition: event.c:114
SCIP_RETCODE SCIPeventfilterProcess(SCIP_EVENTFILTER *eventfilter, SCIP_SET *set, SCIP_EVENT *event)
Definition: event.c:2073
SCIP_RETCODE SCIPeventCreateVarDeleted(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:535
SCIP_RETCODE SCIPeventhdlrExitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:261
SCIP_DECL_EVENTEXEC(EventhdlrNewSol::scip_exec)
SCIP_RETCODE SCIPeventhdlrExec(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set, SCIP_EVENT *event, SCIP_EVENTDATA *eventdata)
Definition: event.c:285
#define SCIP_Real
Definition: def.h:163
SCIP_RETCODE SCIPeventFree(SCIP_EVENT **event, BMS_BLKMEM *blkmem)
Definition: event.c:996
SCIP_DECL_EVENTEXITSOL(EventhdlrNewSol::scip_exitsol)
#define SCIP_DECL_EVENTCOPY(x)
Definition: type_event.h:174
enum SCIP_Vartype SCIP_VARTYPE
Definition: type_var.h:60
SCIP_DECL_EVENTDELETE(EventhdlrNewSol::scip_delete)
SCIP_RETCODE SCIPeventCreateRowAddedSepa(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:847
type definitions for collecting primal CIP solutions and primal informations
common defines and data types used in all packages of SCIP
struct BMS_BlkMem BMS_BLKMEM
Definition: memory.h:429
SCIP_Bool SCIPeventqueueIsDelayed(SCIP_EVENTQUEUE *eventqueue)
Definition: event.c:2559
SCIP_RETCODE SCIPeventCreateTypeChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_VARTYPE oldtype, SCIP_VARTYPE newtype)
Definition: event.c:824
SCIP_RETCODE SCIPeventCreateGubChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:642
SCIP_RETCODE SCIPeventhdlrCopyInclude(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:51
SCIP_RETCODE SCIPeventCreateVarUnlocked(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:575
void SCIPeventhdlrSetExitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTEXITSOL((*eventexitsol)))
Definition: event.c:401
uint64_t SCIP_EVENTTYPE
Definition: type_event.h:142
memory allocation routines
enum SCIP_SideType SCIP_SIDETYPE
Definition: type_lp.h:58