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-2018 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 scip.zib.de. */
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 #include "scip/struct_event.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 /*
46  * Event handler methods
47  */
48 
49 /** copies the given event handler to a new scip */
50 extern
52  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
53  SCIP_SET* set /**< SCIP_SET of SCIP to copy to */
54  );
55 
56 /** creates an event handler */
57 extern
59  SCIP_EVENTHDLR** eventhdlr, /**< pointer to event handler data structure */
60  SCIP_SET* set, /**< global SCIP settings */
61  const char* name, /**< name of event handler */
62  const char* desc, /**< description of event handler */
63  SCIP_DECL_EVENTCOPY ((*eventcopy)), /**< copy method of event handler or NULL if you don't want to copy your plugin into sub-SCIPs */
64  SCIP_DECL_EVENTFREE ((*eventfree)), /**< destructor of event handler */
65  SCIP_DECL_EVENTINIT ((*eventinit)), /**< initialize event handler */
66  SCIP_DECL_EVENTEXIT ((*eventexit)), /**< deinitialize event handler */
67  SCIP_DECL_EVENTINITSOL((*eventinitsol)), /**< solving process initialization method of event handler */
68  SCIP_DECL_EVENTEXITSOL((*eventexitsol)), /**< solving process deinitialization method of event handler */
69  SCIP_DECL_EVENTDELETE ((*eventdelete)), /**< free specific event data */
70  SCIP_DECL_EVENTEXEC ((*eventexec)), /**< execute event handler */
71  SCIP_EVENTHDLRDATA* eventhdlrdata /**< event handler data */
72  );
73 
74 /** calls destructor and frees memory of event handler */
75 extern
77  SCIP_EVENTHDLR** eventhdlr, /**< pointer to event handler data structure */
78  SCIP_SET* set /**< global SCIP settings */
79  );
80 
81 /** initializes event handler */
82 extern
84  SCIP_EVENTHDLR* eventhdlr, /**< event handler for this event */
85  SCIP_SET* set /**< global SCIP settings */
86  );
87 
88 /** calls exit method of event handler */
89 extern
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 */
96 extern
98  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
99  SCIP_SET* set /**< global SCIP settings */
100  );
101 
102 /** informs event handler that the branch and bound process data is being freed */
103 extern
105  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
106  SCIP_SET* set /**< global SCIP settings */
107  );
108 
109 /** calls execution method of event handler */
110 extern
112  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
113  SCIP_SET* set, /**< global SCIP settings */
114  SCIP_EVENT* event, /**< event to call event handler with */
115  SCIP_EVENTDATA* eventdata /**< user data for the issued event */
116  );
117 
118 /**
119  * callback setter methods of event handlers
120  */
121 /** sets copy callback for all events of this event handler */
122 extern
124  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
125  SCIP_DECL_EVENTCOPY ((*eventcopy)) /**< copy callback for events */
126  );
127 
128 /** sets destructor callback of this event handler */
129 extern
131  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
132  SCIP_DECL_EVENTFREE ((*eventfree)) /**< destructor callback of event handler */
133  );
134 
135 /** sets initialization callback of this event handler */
136 extern
138  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
139  SCIP_DECL_EVENTINIT ((*eventinit)) /**< initialization callback of event handler */
140  );
141 
142 /** sets deinitialization callback of this event handler */
143 extern
145  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
146  SCIP_DECL_EVENTEXIT ((*eventexit)) /**< deinitialization callback of event handler */
147  );
148 
149 /** sets solving process initialization callback of this event handler */
150 extern
152  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
153  SCIP_DECL_EVENTINITSOL((*eventinitsol)) /**< solving process initialization callback of event handler */
154  );
155 
156 /** sets solving process deinitialization callback of this event handler */
157 extern
159  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
160  SCIP_DECL_EVENTEXITSOL((*eventexitsol)) /**< solving process deinitialization callback of event handler */
161  );
162 
163 /** sets callback to free specific event data */
164 extern
166  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
167  SCIP_DECL_EVENTDELETE ((*eventdelete)) /**< callback to free specific event data */
168  );
169 
170 /** enables or disables all clocks of \p eventhdlr, depending on the value of the flag */
171 extern
173  SCIP_EVENTHDLR* eventhdlr, /**< the event handler for which all clocks should be enabled or disabled */
174  SCIP_Bool enable /**< should the clocks of the event handler be enabled? */
175  );
176 
177 /*
178  * Event methods
179  */
180 
181 /** creates a synchronization event */
182 extern
184  SCIP_EVENT** event, /**< pointer to store the event */
185  BMS_BLKMEM* blkmem /**< block memory */
186  );
187 
188 /** creates an event for an addition of a variable to the problem */
189 extern
191  SCIP_EVENT** event, /**< pointer to store the event */
192  BMS_BLKMEM* blkmem, /**< block memory */
193  SCIP_VAR* var /**< variable that was added to the problem */
194  );
195 
196 /** creates an event for a deletion of a variable from the problem */
197 extern
199  SCIP_EVENT** event, /**< pointer to store the event */
200  BMS_BLKMEM* blkmem, /**< block memory */
201  SCIP_VAR* var /**< variable that is to be deleted from the problem */
202  );
203 
204 /** creates an event for a fixing of a variable */
205 extern
207  SCIP_EVENT** event, /**< pointer to store the event */
208  BMS_BLKMEM* blkmem, /**< block memory */
209  SCIP_VAR* var /**< variable that was fixed */
210  );
211 
212 /** creates an event for a change in the number of locks of a variable down to zero or one */
213 extern
215  SCIP_EVENT** event, /**< pointer to store the event */
216  BMS_BLKMEM* blkmem, /**< block memory */
217  SCIP_VAR* var /**< variable that changed the number of locks */
218  );
219 
220 /** creates an event for a change in the objective value of a variable */
221 extern
223  SCIP_EVENT** event, /**< pointer to store the event */
224  BMS_BLKMEM* blkmem, /**< block memory */
225  SCIP_VAR* var, /**< variable whose objective value changed */
226  SCIP_Real oldobj, /**< old objective value before value changed */
227  SCIP_Real newobj /**< new objective value after value changed */
228  );
229 
230 /** creates an event for a change in the global lower bound of a variable */
231 extern
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 global upper bound of a variable */
241 extern
243  SCIP_EVENT** event, /**< pointer to store the event */
244  BMS_BLKMEM* blkmem, /**< block memory */
245  SCIP_VAR* var, /**< variable whose bound changed */
246  SCIP_Real oldbound, /**< old bound before bound changed */
247  SCIP_Real newbound /**< new bound after bound changed */
248  );
249 
250 /** creates an event for a change in the lower bound of a variable */
251 extern
253  SCIP_EVENT** event, /**< pointer to store the event */
254  BMS_BLKMEM* blkmem, /**< block memory */
255  SCIP_VAR* var, /**< variable whose bound changed */
256  SCIP_Real oldbound, /**< old bound before bound changed */
257  SCIP_Real newbound /**< new bound after bound changed */
258  );
259 
260 /** creates an event for a change in the upper bound of a variable */
261 extern
263  SCIP_EVENT** event, /**< pointer to store the event */
264  BMS_BLKMEM* blkmem, /**< block memory */
265  SCIP_VAR* var, /**< variable whose bound changed */
266  SCIP_Real oldbound, /**< old bound before bound changed */
267  SCIP_Real newbound /**< new bound after bound changed */
268  );
269 
270 /** creates an event for an addition of a global domain hole to a variable */
272  SCIP_EVENT** event, /**< pointer to store the event */
273  BMS_BLKMEM* blkmem, /**< block memory */
274  SCIP_VAR* var, /**< variable whose bound changed */
275  SCIP_Real left, /**< left bound of open interval in new hole */
276  SCIP_Real right /**< right bound of open interval in new hole */
277  );
278 
279 /** creates an event for removing a global domain hole of a variable */
281  SCIP_EVENT** event, /**< pointer to store the event */
282  BMS_BLKMEM* blkmem, /**< block memory */
283  SCIP_VAR* var, /**< variable whose bound changed */
284  SCIP_Real left, /**< left bound of open interval in hole */
285  SCIP_Real right /**< right bound of open interval in hole */
286  );
287 
288 /** creates an event for an addition of a local domain hole to a variable */
290  SCIP_EVENT** event, /**< pointer to store the event */
291  BMS_BLKMEM* blkmem, /**< block memory */
292  SCIP_VAR* var, /**< variable whose bound changed */
293  SCIP_Real left, /**< left bound of open interval in new hole */
294  SCIP_Real right /**< right bound of open interval in new hole */
295  );
296 
297 /** creates an event for removing a local domain hole of a variable */
299  SCIP_EVENT** event, /**< pointer to store the event */
300  BMS_BLKMEM* blkmem, /**< block memory */
301  SCIP_VAR* var, /**< variable whose bound changed */
302  SCIP_Real left, /**< left bound of open interval in hole */
303  SCIP_Real right /**< right bound of open interval in hole */
304  );
305 
306 /** creates an event for an addition to the variable's implications list, clique or variable bounds information */
307 extern
309  SCIP_EVENT** event, /**< pointer to store the event */
310  BMS_BLKMEM* blkmem, /**< block memory */
311  SCIP_VAR* var /**< variable that was fixed */
312  );
313 
314 /** creates an event for the addition of a linear row to the separation storage */
315 extern
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 separation storage*/
320  );
321 
322 /** creates an event for the deletion of a linear row from the separation storage */
323 extern
325  SCIP_EVENT** event, /**< pointer to store the event */
326  BMS_BLKMEM* blkmem, /**< block memory */
327  SCIP_ROW* row /**< row that was deleted from the separation storage */
328  );
329 
330 /** creates an event for the addition of a linear row to the LP */
331 extern
333  SCIP_EVENT** event, /**< pointer to store the event */
334  BMS_BLKMEM* blkmem, /**< block memory */
335  SCIP_ROW* row /**< row that was added to the LP */
336  );
337 
338 /** creates an event for the deletion of a linear row from the LP */
339 extern
341  SCIP_EVENT** event, /**< pointer to store the event */
342  BMS_BLKMEM* blkmem, /**< block memory */
343  SCIP_ROW* row /**< row that was deleted from the LP */
344  );
345 
346 /** creates an event for the change of a coefficient in a linear row */
347 extern
349  SCIP_EVENT** event, /**< pointer to store the event */
350  BMS_BLKMEM* blkmem, /**< block memory */
351  SCIP_ROW* row, /**< row in which a coefficient changed */
352  SCIP_COL* col, /**< column which coefficient changed */
353  SCIP_Real oldval, /**< old value of coefficient */
354  SCIP_Real newval /**< new value of coefficient */
355  );
356 
357 /** creates an event for the change of a constant in a linear row */
358 extern
360  SCIP_EVENT** event, /**< pointer to store the event */
361  BMS_BLKMEM* blkmem, /**< block memory */
362  SCIP_ROW* row, /**< row in which the constant changed */
363  SCIP_Real oldval, /**< old value of constant */
364  SCIP_Real newval /**< new value of constant */
365  );
366 
367 /** creates an event for the change of a side of a linear row */
368 extern
370  SCIP_EVENT** event, /**< pointer to store the event */
371  BMS_BLKMEM* blkmem, /**< block memory */
372  SCIP_ROW* row, /**< row which side has changed */
373  SCIP_SIDETYPE side, /**< which side has changed */
374  SCIP_Real oldval, /**< old value of side */
375  SCIP_Real newval /**< new value of side */
376  );
377 
378 /** frees an event */
379 extern
381  SCIP_EVENT** event, /**< event to free */
382  BMS_BLKMEM* blkmem /**< block memory buffer */
383  );
384 
385 /** sets type of event */
386 extern
388  SCIP_EVENT* event, /**< event */
389  SCIP_EVENTTYPE eventtype /**< new event type */
390  );
391 
392 /** sets variable for a variable event */
393 extern
395  SCIP_EVENT* event, /**< event */
396  SCIP_VAR* var /**< new variable */
397  );
398 
399 /** sets node for a node or LP event */
400 extern
402  SCIP_EVENT* event, /**< event */
403  SCIP_NODE* node /**< new node */
404  );
405 
406 /** sets solution for a primal solution event */
407 extern
409  SCIP_EVENT* event, /**< event */
410  SCIP_SOL* sol /**< new primal solution */
411  );
412 
413 /** processes event by calling the appropriate event handlers */
414 extern
416  SCIP_EVENT* event, /**< event */
417  SCIP_SET* set, /**< global SCIP settings */
418  SCIP_PRIMAL* primal, /**< primal data; only needed for objchanged events, or NULL */
419  SCIP_LP* lp, /**< current LP data; only needed for obj/boundchanged events, or NULL */
420  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage; only needed for bound change events, or NULL */
421  SCIP_EVENTFILTER* eventfilter /**< event filter for global events; not needed for variable specific events */
422  );
423 
424 
425 
426 /*
427  * Event filter methods
428  */
429 
430 /** creates an event filter */
431 extern
433  SCIP_EVENTFILTER** eventfilter, /**< pointer to store the event filter */
434  BMS_BLKMEM* blkmem /**< block memory buffer */
435  );
436 
437 /** frees an event filter and the associated event data entries */
438 extern
440  SCIP_EVENTFILTER** eventfilter, /**< pointer to store the event filter */
441  BMS_BLKMEM* blkmem, /**< block memory buffer */
442  SCIP_SET* set /**< global SCIP settings */
443  );
444 
445 /** adds element to event filter */
446 extern
448  SCIP_EVENTFILTER* eventfilter, /**< event filter */
449  BMS_BLKMEM* blkmem, /**< block memory buffer */
450  SCIP_SET* set, /**< global SCIP settings */
451  SCIP_EVENTTYPE eventtype, /**< event type to catch */
452  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
453  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
454  int* filterpos /**< pointer to store position of event filter entry, or NULL */
455  );
456 
457 /** deletes element from event filter */
458 extern
460  SCIP_EVENTFILTER* eventfilter, /**< event filter */
461  BMS_BLKMEM* blkmem, /**< block memory buffer */
462  SCIP_SET* set, /**< global SCIP settings */
463  SCIP_EVENTTYPE eventtype, /**< event type */
464  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
465  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
466  int filterpos /**< position of event filter entry, or -1 if unknown */
467  );
468 
469 /** processes the event with all event handlers with matching filter setting */
470 extern
472  SCIP_EVENTFILTER* eventfilter, /**< event filter */
473  SCIP_SET* set, /**< global SCIP settings */
474  SCIP_EVENT* event /**< event to process */
475  );
476 
477 
478 
479 /*
480  * Event queue methods
481  */
482 
483 /** creates an event queue */
484 extern
486  SCIP_EVENTQUEUE** eventqueue /**< pointer to store the event queue */
487  );
488 
489 /** frees event queue; there must not be any unprocessed events in the queue! */
490 extern
492  SCIP_EVENTQUEUE** eventqueue /**< pointer to the event queue */
493  );
494 
495 /** processes event or adds event to the event queue */
496 extern
498  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
499  BMS_BLKMEM* blkmem, /**< block memory buffer */
500  SCIP_SET* set, /**< global SCIP settings */
501  SCIP_PRIMAL* primal, /**< primal data; only needed for objchanged events, or NULL */
502  SCIP_LP* lp, /**< current LP data; only needed for obj/boundchanged events, or NULL */
503  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage; only needed for bound change events, or NULL */
504  SCIP_EVENTFILTER* eventfilter, /**< event filter for global events; not needed for variable specific events */
505  SCIP_EVENT** event /**< pointer to event to add to the queue; will be NULL after queue addition */
506  );
507 
508 /** marks queue to delay incoming events until a call to SCIPeventqueueProcess() */
509 extern
511  SCIP_EVENTQUEUE* eventqueue /**< event queue */
512  );
513 
514 /** processes all events in the queue */
515 extern
517  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
518  BMS_BLKMEM* blkmem, /**< block memory buffer */
519  SCIP_SET* set, /**< global SCIP settings */
520  SCIP_PRIMAL* primal, /**< primal data */
521  SCIP_LP* lp, /**< current LP data */
522  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
523  SCIP_EVENTFILTER* eventfilter /**< event filter for global (not variable dependent) events */
524  );
525 
526 /** returns TRUE iff events of the queue are delayed until the next SCIPeventqueueProcess() call */
527 extern
529  SCIP_EVENTQUEUE* eventqueue /**< event queue */
530  );
531 
532 #ifdef NDEBUG
533 
534 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
535  * speed up the algorithms.
536  */
537 
538 #define SCIPeventqueueIsDelayed(eventqueue) ((eventqueue)->delayevents)
539 
540 #endif
541 
542 #ifdef __cplusplus
543 }
544 #endif
545 
546 #endif
void SCIPeventhdlrSetDelete(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTDELETE((*eventdelete)))
Definition: event.c:411
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:1892
SCIP_RETCODE SCIPeventCreateRowAddedLP(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:859
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:2404
SCIP_RETCODE SCIPeventCreateSync(SCIP_EVENT **event, BMS_BLKMEM *blkmem)
Definition: event.c:473
SCIP_RETCODE SCIPeventChgNode(SCIP_EVENT *event, SCIP_NODE *node)
Definition: event.c:1239
SCIP_RETCODE SCIPeventhdlrExit(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:206
SCIP_RETCODE SCIPeventCreateRowConstChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row, SCIP_Real oldval, SCIP_Real newval)
Definition: event.c:922
SCIP_RETCODE SCIPeventProcess(SCIP_EVENT *event, SCIP_SET *set, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTFILTER *eventfilter)
Definition: event.c:1496
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:2153
void SCIPeventhdlrSetInit(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTINIT((*eventinit)))
Definition: event.c:367
SCIP_RETCODE SCIPeventCreateUbChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:688
SCIP_DECL_EVENTEXIT(EventhdlrNewSol::scip_exit)
struct SCIP_EventhdlrData SCIP_EVENTHDLRDATA
Definition: type_event.h:138
SCIP_RETCODE SCIPeventhdlrInit(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:170
SCIP_RETCODE SCIPeventCreateLholeAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:758
SCIP_RETCODE SCIPeventqueueDelay(SCIP_EVENTQUEUE *eventqueue)
Definition: event.c:2389
SCIP_RETCODE SCIPeventfilterCreate(SCIP_EVENTFILTER **eventfilter, BMS_BLKMEM *blkmem)
Definition: event.c:1734
SCIP_RETCODE SCIPeventhdlrFree(SCIP_EVENTHDLR **eventhdlr, SCIP_SET *set)
Definition: event.c:139
void SCIPeventhdlrSetCopy(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTCOPY((*eventcopy)))
Definition: event.c:345
datastructures for managing events
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
void SCIPeventhdlrSetInitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTINITSOL((*eventinitsol)))
Definition: event.c:389
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:1799
SCIP_RETCODE SCIPeventChgType(SCIP_EVENT *event, SCIP_EVENTTYPE eventtype)
Definition: event.c:1005
SCIP_RETCODE SCIPeventChgVar(SCIP_EVENT *event, SCIP_VAR *var)
Definition: event.c:1074
type definitions for return codes for SCIP methods
SCIP_RETCODE SCIPeventCreateRowDeletedLP(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:878
void SCIPeventhdlrEnableOrDisableClocks(SCIP_EVENTHDLR *eventhdlr, SCIP_Bool enable)
Definition: event.c:432
SCIP_RETCODE SCIPeventCreateImplAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:802
SCIP_RETCODE SCIPeventCreateObjChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldobj, SCIP_Real newobj)
Definition: event.c:593
type definitions for branching rules
SCIP_RETCODE SCIPeventqueueCreate(SCIP_EVENTQUEUE **eventqueue)
Definition: event.c:2097
SCIP_DECL_EVENTINITSOL(EventhdlrNewSol::scip_initsol)
SCIP_RETCODE SCIPeventqueueFree(SCIP_EVENTQUEUE **eventqueue)
Definition: event.c:2113
type definitions for LP management
SCIP_RETCODE SCIPeventChgSol(SCIP_EVENT *event, SCIP_SOL *sol)
Definition: event.c:1276
SCIP_DECL_EVENTINIT(EventhdlrNewSol::scip_init)
SCIP_DECL_EVENTFREE(EventhdlrNewSol::scip_free)
SCIP_RETCODE SCIPeventhdlrInitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:236
void SCIPeventhdlrSetFree(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTFREE((*eventfree)))
Definition: event.c:356
SCIP_RETCODE SCIPeventCreateVarAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:514
SCIP_RETCODE SCIPeventCreateGlbChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:616
struct SCIP_EventData SCIP_EVENTDATA
Definition: type_event.h:155
SCIP_RETCODE SCIPeventCreateVarFixed(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:550
type definitions for problem variables
SCIP_RETCODE SCIPeventCreateRowDeletedSepa(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:840
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:945
SCIP_RETCODE SCIPeventCreateGholeRemoved(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:736
#define SCIP_Bool
Definition: def.h:62
void SCIPeventhdlrSetExit(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTEXIT((*eventexit)))
Definition: event.c:378
SCIP_RETCODE SCIPeventCreateLbChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:662
SCIP_RETCODE SCIPeventCreateRowCoefChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row, SCIP_COL *col, SCIP_Real oldval, SCIP_Real newval)
Definition: event.c:897
SCIP_RETCODE SCIPeventCreateLholeRemoved(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:780
SCIP_RETCODE SCIPeventfilterFree(SCIP_EVENTFILTER **eventfilter, BMS_BLKMEM *blkmem, SCIP_SET *set)
Definition: event.c:1759
SCIP_RETCODE SCIPeventCreateGholeAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:714
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:113
SCIP_RETCODE SCIPeventfilterProcess(SCIP_EVENTFILTER *eventfilter, SCIP_SET *set, SCIP_EVENT *event)
Definition: event.c:1995
SCIP_RETCODE SCIPeventCreateVarDeleted(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:532
SCIP_RETCODE SCIPeventhdlrExitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:260
SCIP_DECL_EVENTEXEC(EventhdlrNewSol::scip_exec)
SCIP_RETCODE SCIPeventhdlrExec(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set, SCIP_EVENT *event, SCIP_EVENTDATA *eventdata)
Definition: event.c:284
#define SCIP_Real
Definition: def.h:150
SCIP_RETCODE SCIPeventFree(SCIP_EVENT **event, BMS_BLKMEM *blkmem)
Definition: event.c:970
SCIP_DECL_EVENTEXITSOL(EventhdlrNewSol::scip_exitsol)
#define SCIP_DECL_EVENTCOPY(x)
Definition: type_event.h:165
SCIP_DECL_EVENTDELETE(EventhdlrNewSol::scip_delete)
SCIP_RETCODE SCIPeventCreateRowAddedSepa(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:821
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:419
SCIP_Bool SCIPeventqueueIsDelayed(SCIP_EVENTQUEUE *eventqueue)
Definition: event.c:2476
SCIP_RETCODE SCIPeventCreateGubChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:639
SCIP_RETCODE SCIPeventhdlrCopyInclude(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:50
SCIP_RETCODE SCIPeventCreateVarUnlocked(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:572
void SCIPeventhdlrSetExitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTEXITSOL((*eventexitsol)))
Definition: event.c:400
uint64_t SCIP_EVENTTYPE
Definition: type_event.h:134
memory allocation routines
enum SCIP_SideType SCIP_SIDETYPE
Definition: type_lp.h:58