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 email to 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  const char* name, /**< name of event handler */
61  const char* desc, /**< description of event handler */
62  SCIP_DECL_EVENTCOPY ((*eventcopy)), /**< copy method of event handler or NULL if you don't want to copy your plugin into sub-SCIPs */
63  SCIP_DECL_EVENTFREE ((*eventfree)), /**< destructor of event handler */
64  SCIP_DECL_EVENTINIT ((*eventinit)), /**< initialize event handler */
65  SCIP_DECL_EVENTEXIT ((*eventexit)), /**< deinitialize event handler */
66  SCIP_DECL_EVENTINITSOL((*eventinitsol)), /**< solving process initialization method of event handler */
67  SCIP_DECL_EVENTEXITSOL((*eventexitsol)), /**< solving process deinitialization method of event handler */
68  SCIP_DECL_EVENTDELETE ((*eventdelete)), /**< free specific event data */
69  SCIP_DECL_EVENTEXEC ((*eventexec)), /**< execute event handler */
70  SCIP_EVENTHDLRDATA* eventhdlrdata /**< event handler data */
71  );
72 
73 /** calls destructor and frees memory of event handler */
74 extern
76  SCIP_EVENTHDLR** eventhdlr, /**< pointer to event handler data structure */
77  SCIP_SET* set /**< global SCIP settings */
78  );
79 
80 /** initializes event handler */
81 extern
83  SCIP_EVENTHDLR* eventhdlr, /**< event handler for this event */
84  SCIP_SET* set /**< global SCIP settings */
85  );
86 
87 /** calls exit method of event handler */
88 extern
90  SCIP_EVENTHDLR* eventhdlr, /**< event handler for this event */
91  SCIP_SET* set /**< global SCIP settings */
92  );
93 
94 /** informs event handler that the branch and bound process is being started */
95 extern
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 */
102 extern
104  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
105  SCIP_SET* set /**< global SCIP settings */
106  );
107 
108 /** calls execution method of event handler */
109 extern
111  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
112  SCIP_SET* set, /**< global SCIP settings */
113  SCIP_EVENT* event, /**< event to call event handler with */
114  SCIP_EVENTDATA* eventdata /**< user data for the issued event */
115  );
116 
117 /**
118  * callback setter methods of event handlers
119  */
120 /** sets copy callback for all events of this event handler */
121 extern
123  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
124  SCIP_DECL_EVENTCOPY ((*eventcopy)) /**< copy callback for events */
125  );
126 
127 /** sets destructor callback of this event handler */
128 extern
130  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
131  SCIP_DECL_EVENTFREE ((*eventfree)) /**< destructor callback of event handler */
132  );
133 
134 /** sets initialization callback of this event handler */
135 extern
137  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
138  SCIP_DECL_EVENTINIT ((*eventinit)) /**< initialization callback of event handler */
139  );
140 
141 /** sets deinitialization callback of this event handler */
142 extern
144  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
145  SCIP_DECL_EVENTEXIT ((*eventexit)) /**< deinitialization callback of event handler */
146  );
147 
148 /** sets solving process initialization callback of this event handler */
149 extern
151  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
152  SCIP_DECL_EVENTINITSOL((*eventinitsol)) /**< solving process initialization callback of event handler */
153  );
154 
155 /** sets solving process deinitialization callback of this event handler */
156 extern
158  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
159  SCIP_DECL_EVENTEXITSOL((*eventexitsol)) /**< solving process deinitialization callback of event handler */
160  );
161 
162 /** sets callback to free specific event data */
163 extern
165  SCIP_EVENTHDLR* eventhdlr, /**< event handler */
166  SCIP_DECL_EVENTDELETE ((*eventdelete)) /**< callback to free specific event data */
167  );
168 
169 /** enables or disables all clocks of \p eventhdlr, depending on the value of the flag */
170 extern
172  SCIP_EVENTHDLR* eventhdlr, /**< the event handler for which all clocks should be enabled or disabled */
173  SCIP_Bool enable /**< should the clocks of the event handler be enabled? */
174  );
175 
176 /*
177  * Event methods
178  */
179 
180 /** creates a synchronization event */
181 extern
183  SCIP_EVENT** event, /**< pointer to store the event */
184  BMS_BLKMEM* blkmem /**< block memory */
185  );
186 
187 /** creates an event for an addition of a variable to the problem */
188 extern
190  SCIP_EVENT** event, /**< pointer to store the event */
191  BMS_BLKMEM* blkmem, /**< block memory */
192  SCIP_VAR* var /**< variable that was added to the problem */
193  );
194 
195 /** creates an event for a deletion of a variable from the problem */
196 extern
198  SCIP_EVENT** event, /**< pointer to store the event */
199  BMS_BLKMEM* blkmem, /**< block memory */
200  SCIP_VAR* var /**< variable that is to be deleted from the problem */
201  );
202 
203 /** creates an event for a fixing of a variable */
204 extern
206  SCIP_EVENT** event, /**< pointer to store the event */
207  BMS_BLKMEM* blkmem, /**< block memory */
208  SCIP_VAR* var /**< variable that was fixed */
209  );
210 
211 /** creates an event for a change in the number of locks of a variable down to zero or one */
212 extern
214  SCIP_EVENT** event, /**< pointer to store the event */
215  BMS_BLKMEM* blkmem, /**< block memory */
216  SCIP_VAR* var /**< variable that changed the number of locks */
217  );
218 
219 /** creates an event for a change in the objective value of a variable */
220 extern
222  SCIP_EVENT** event, /**< pointer to store the event */
223  BMS_BLKMEM* blkmem, /**< block memory */
224  SCIP_VAR* var, /**< variable whose objective value changed */
225  SCIP_Real oldobj, /**< old objective value before value changed */
226  SCIP_Real newobj /**< new objective value after value changed */
227  );
228 
229 /** creates an event for a change in the global lower bound of a variable */
230 extern
232  SCIP_EVENT** event, /**< pointer to store the event */
233  BMS_BLKMEM* blkmem, /**< block memory */
234  SCIP_VAR* var, /**< variable whose bound changed */
235  SCIP_Real oldbound, /**< old bound before bound changed */
236  SCIP_Real newbound /**< new bound after bound changed */
237  );
238 
239 /** creates an event for a change in the global upper bound of a variable */
240 extern
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 a change in the lower bound of a variable */
250 extern
252  SCIP_EVENT** event, /**< pointer to store the event */
253  BMS_BLKMEM* blkmem, /**< block memory */
254  SCIP_VAR* var, /**< variable whose bound changed */
255  SCIP_Real oldbound, /**< old bound before bound changed */
256  SCIP_Real newbound /**< new bound after bound changed */
257  );
258 
259 /** creates an event for a change in the upper bound of a variable */
260 extern
262  SCIP_EVENT** event, /**< pointer to store the event */
263  BMS_BLKMEM* blkmem, /**< block memory */
264  SCIP_VAR* var, /**< variable whose bound changed */
265  SCIP_Real oldbound, /**< old bound before bound changed */
266  SCIP_Real newbound /**< new bound after bound changed */
267  );
268 
269 /** creates an event for an addition of a global domain hole to a variable */
271  SCIP_EVENT** event, /**< pointer to store the event */
272  BMS_BLKMEM* blkmem, /**< block memory */
273  SCIP_VAR* var, /**< variable whose bound changed */
274  SCIP_Real left, /**< left bound of open interval in new hole */
275  SCIP_Real right /**< right bound of open interval in new hole */
276  );
277 
278 /** creates an event for removing a global domain hole of a variable */
280  SCIP_EVENT** event, /**< pointer to store the event */
281  BMS_BLKMEM* blkmem, /**< block memory */
282  SCIP_VAR* var, /**< variable whose bound changed */
283  SCIP_Real left, /**< left bound of open interval in hole */
284  SCIP_Real right /**< right bound of open interval in hole */
285  );
286 
287 /** creates an event for an addition of a local domain hole to a variable */
289  SCIP_EVENT** event, /**< pointer to store the event */
290  BMS_BLKMEM* blkmem, /**< block memory */
291  SCIP_VAR* var, /**< variable whose bound changed */
292  SCIP_Real left, /**< left bound of open interval in new hole */
293  SCIP_Real right /**< right bound of open interval in new hole */
294  );
295 
296 /** creates an event for removing a local domain hole of a variable */
298  SCIP_EVENT** event, /**< pointer to store the event */
299  BMS_BLKMEM* blkmem, /**< block memory */
300  SCIP_VAR* var, /**< variable whose bound changed */
301  SCIP_Real left, /**< left bound of open interval in hole */
302  SCIP_Real right /**< right bound of open interval in hole */
303  );
304 
305 /** creates an event for an addition to the variable's implications list, clique or variable bounds information */
306 extern
308  SCIP_EVENT** event, /**< pointer to store the event */
309  BMS_BLKMEM* blkmem, /**< block memory */
310  SCIP_VAR* var /**< variable that was fixed */
311  );
312 
313 /** creates an event for the addition of a linear row to the separation storage */
314 extern
316  SCIP_EVENT** event, /**< pointer to store the event */
317  BMS_BLKMEM* blkmem, /**< block memory */
318  SCIP_ROW* row /**< row that was added to the separation storage*/
319  );
320 
321 /** creates an event for the deletion of a linear row from the separation storage */
322 extern
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 separation storage */
327  );
328 
329 /** creates an event for the addition of a linear row to the LP */
330 extern
332  SCIP_EVENT** event, /**< pointer to store the event */
333  BMS_BLKMEM* blkmem, /**< block memory */
334  SCIP_ROW* row /**< row that was added to the LP */
335  );
336 
337 /** creates an event for the deletion of a linear row from the LP */
338 extern
340  SCIP_EVENT** event, /**< pointer to store the event */
341  BMS_BLKMEM* blkmem, /**< block memory */
342  SCIP_ROW* row /**< row that was deleted from the LP */
343  );
344 
345 /** creates an event for the change of a coefficient in a linear row */
346 extern
348  SCIP_EVENT** event, /**< pointer to store the event */
349  BMS_BLKMEM* blkmem, /**< block memory */
350  SCIP_ROW* row, /**< row in which a coefficient changed */
351  SCIP_COL* col, /**< column which coefficient changed */
352  SCIP_Real oldval, /**< old value of coefficient */
353  SCIP_Real newval /**< new value of coefficient */
354  );
355 
356 /** creates an event for the change of a constant in a linear row */
357 extern
359  SCIP_EVENT** event, /**< pointer to store the event */
360  BMS_BLKMEM* blkmem, /**< block memory */
361  SCIP_ROW* row, /**< row in which the constant changed */
362  SCIP_Real oldval, /**< old value of constant */
363  SCIP_Real newval /**< new value of constant */
364  );
365 
366 /** creates an event for the change of a side of a linear row */
367 extern
369  SCIP_EVENT** event, /**< pointer to store the event */
370  BMS_BLKMEM* blkmem, /**< block memory */
371  SCIP_ROW* row, /**< row which side has changed */
372  SCIP_SIDETYPE side, /**< which side has changed */
373  SCIP_Real oldval, /**< old value of side */
374  SCIP_Real newval /**< new value of side */
375  );
376 
377 /** frees an event */
378 extern
380  SCIP_EVENT** event, /**< event to free */
381  BMS_BLKMEM* blkmem /**< block memory buffer */
382  );
383 
384 /** sets type of event */
385 extern
387  SCIP_EVENT* event, /**< event */
388  SCIP_EVENTTYPE eventtype /**< new event type */
389  );
390 
391 /** sets variable for a variable event */
392 extern
394  SCIP_EVENT* event, /**< event */
395  SCIP_VAR* var /**< new variable */
396  );
397 
398 /** sets node for a node or LP event */
399 extern
401  SCIP_EVENT* event, /**< event */
402  SCIP_NODE* node /**< new node */
403  );
404 
405 /** sets solution for a primal solution event */
406 extern
408  SCIP_EVENT* event, /**< event */
409  SCIP_SOL* sol /**< new primal solution */
410  );
411 
412 /** processes event by calling the appropriate event handlers */
413 extern
415  SCIP_EVENT* event, /**< event */
416  SCIP_SET* set, /**< global SCIP settings */
417  SCIP_PRIMAL* primal, /**< primal data; only needed for objchanged events, or NULL */
418  SCIP_LP* lp, /**< current LP data; only needed for obj/boundchanged events, or NULL */
419  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage; only needed for bound change events, or NULL */
420  SCIP_EVENTFILTER* eventfilter /**< event filter for global events; not needed for variable specific events */
421  );
422 
423 
424 
425 /*
426  * Event filter methods
427  */
428 
429 /** creates an event filter */
430 extern
432  SCIP_EVENTFILTER** eventfilter, /**< pointer to store the event filter */
433  BMS_BLKMEM* blkmem /**< block memory buffer */
434  );
435 
436 /** frees an event filter and the associated event data entries */
437 extern
439  SCIP_EVENTFILTER** eventfilter, /**< pointer to store the event filter */
440  BMS_BLKMEM* blkmem, /**< block memory buffer */
441  SCIP_SET* set /**< global SCIP settings */
442  );
443 
444 /** adds element to event filter */
445 extern
447  SCIP_EVENTFILTER* eventfilter, /**< event filter */
448  BMS_BLKMEM* blkmem, /**< block memory buffer */
449  SCIP_SET* set, /**< global SCIP settings */
450  SCIP_EVENTTYPE eventtype, /**< event type to catch */
451  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
452  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
453  int* filterpos /**< pointer to store position of event filter entry, or NULL */
454  );
455 
456 /** deletes element from event filter */
457 extern
459  SCIP_EVENTFILTER* eventfilter, /**< event filter */
460  BMS_BLKMEM* blkmem, /**< block memory buffer */
461  SCIP_SET* set, /**< global SCIP settings */
462  SCIP_EVENTTYPE eventtype, /**< event type */
463  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
464  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
465  int filterpos /**< position of event filter entry, or -1 if unknown */
466  );
467 
468 /** processes the event with all event handlers with matching filter setting */
469 extern
471  SCIP_EVENTFILTER* eventfilter, /**< event filter */
472  SCIP_SET* set, /**< global SCIP settings */
473  SCIP_EVENT* event /**< event to process */
474  );
475 
476 
477 
478 /*
479  * Event queue methods
480  */
481 
482 /** creates an event queue */
483 extern
485  SCIP_EVENTQUEUE** eventqueue /**< pointer to store the event queue */
486  );
487 
488 /** frees event queue; there must not be any unprocessed events in the queue! */
489 extern
491  SCIP_EVENTQUEUE** eventqueue /**< pointer to the event queue */
492  );
493 
494 /** processes event or adds event to the event queue */
495 extern
497  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
498  BMS_BLKMEM* blkmem, /**< block memory buffer */
499  SCIP_SET* set, /**< global SCIP settings */
500  SCIP_PRIMAL* primal, /**< primal data; only needed for objchanged events, or NULL */
501  SCIP_LP* lp, /**< current LP data; only needed for obj/boundchanged events, or NULL */
502  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage; only needed for bound change events, or NULL */
503  SCIP_EVENTFILTER* eventfilter, /**< event filter for global events; not needed for variable specific events */
504  SCIP_EVENT** event /**< pointer to event to add to the queue; will be NULL after queue addition */
505  );
506 
507 /** marks queue to delay incoming events until a call to SCIPeventqueueProcess() */
508 extern
510  SCIP_EVENTQUEUE* eventqueue /**< event queue */
511  );
512 
513 /** processes all events in the queue */
514 extern
516  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
517  BMS_BLKMEM* blkmem, /**< block memory buffer */
518  SCIP_SET* set, /**< global SCIP settings */
519  SCIP_PRIMAL* primal, /**< primal data */
520  SCIP_LP* lp, /**< current LP data */
521  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
522  SCIP_EVENTFILTER* eventfilter /**< event filter for global (not variable dependent) events */
523  );
524 
525 /** returns TRUE iff events of the queue are delayed until the next SCIPeventqueueProcess() call */
526 extern
528  SCIP_EVENTQUEUE* eventqueue /**< event queue */
529  );
530 
531 #ifdef NDEBUG
532 
533 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
534  * speed up the algorithms.
535  */
536 
537 #define SCIPeventqueueIsDelayed(eventqueue) ((eventqueue)->delayevents)
538 
539 #endif
540 
541 #ifdef __cplusplus
542 }
543 #endif
544 
545 #endif
void SCIPeventhdlrSetDelete(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTDELETE((*eventdelete)))
Definition: event.c:375
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:1856
SCIP_RETCODE SCIPeventCreateRowAddedLP(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:823
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:2368
SCIP_RETCODE SCIPeventCreateSync(SCIP_EVENT **event, BMS_BLKMEM *blkmem)
Definition: event.c:437
SCIP_RETCODE SCIPeventChgNode(SCIP_EVENT *event, SCIP_NODE *node)
Definition: event.c:1203
SCIP_RETCODE SCIPeventhdlrExit(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:170
SCIP_RETCODE SCIPeventCreateRowConstChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row, SCIP_Real oldval, SCIP_Real newval)
Definition: event.c:886
SCIP_RETCODE SCIPeventProcess(SCIP_EVENT *event, SCIP_SET *set, SCIP_PRIMAL *primal, SCIP_LP *lp, SCIP_BRANCHCAND *branchcand, SCIP_EVENTFILTER *eventfilter)
Definition: event.c:1460
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:2117
void SCIPeventhdlrSetInit(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTINIT((*eventinit)))
Definition: event.c:331
SCIP_RETCODE SCIPeventCreateUbChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:652
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:134
SCIP_RETCODE SCIPeventCreateLholeAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:722
SCIP_RETCODE SCIPeventqueueDelay(SCIP_EVENTQUEUE *eventqueue)
Definition: event.c:2353
SCIP_RETCODE SCIPeventfilterCreate(SCIP_EVENTFILTER **eventfilter, BMS_BLKMEM *blkmem)
Definition: event.c:1698
SCIP_RETCODE SCIPeventhdlrFree(SCIP_EVENTHDLR **eventhdlr, SCIP_SET *set)
Definition: event.c:106
void SCIPeventhdlrSetCopy(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTCOPY((*eventcopy)))
Definition: event.c:309
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:353
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:1763
SCIP_RETCODE SCIPeventhdlrCreate(SCIP_EVENTHDLR **eventhdlr, 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:64
SCIP_RETCODE SCIPeventChgType(SCIP_EVENT *event, SCIP_EVENTTYPE eventtype)
Definition: event.c:969
SCIP_RETCODE SCIPeventChgVar(SCIP_EVENT *event, SCIP_VAR *var)
Definition: event.c:1038
type definitions for return codes for SCIP methods
SCIP_RETCODE SCIPeventCreateRowDeletedLP(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:842
void SCIPeventhdlrEnableOrDisableClocks(SCIP_EVENTHDLR *eventhdlr, SCIP_Bool enable)
Definition: event.c:396
SCIP_RETCODE SCIPeventCreateImplAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:766
SCIP_RETCODE SCIPeventCreateObjChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldobj, SCIP_Real newobj)
Definition: event.c:557
type definitions for branching rules
SCIP_RETCODE SCIPeventqueueCreate(SCIP_EVENTQUEUE **eventqueue)
Definition: event.c:2061
SCIP_DECL_EVENTINITSOL(EventhdlrNewSol::scip_initsol)
SCIP_RETCODE SCIPeventqueueFree(SCIP_EVENTQUEUE **eventqueue)
Definition: event.c:2077
type definitions for LP management
SCIP_RETCODE SCIPeventChgSol(SCIP_EVENT *event, SCIP_SOL *sol)
Definition: event.c:1240
SCIP_DECL_EVENTINIT(EventhdlrNewSol::scip_init)
SCIP_DECL_EVENTFREE(EventhdlrNewSol::scip_free)
SCIP_RETCODE SCIPeventhdlrInitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:200
void SCIPeventhdlrSetFree(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTFREE((*eventfree)))
Definition: event.c:320
SCIP_RETCODE SCIPeventCreateVarAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:478
SCIP_RETCODE SCIPeventCreateGlbChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:580
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:514
type definitions for problem variables
SCIP_RETCODE SCIPeventCreateRowDeletedSepa(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row)
Definition: event.c:804
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:909
SCIP_RETCODE SCIPeventCreateGholeRemoved(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:700
#define SCIP_Bool
Definition: def.h:61
void SCIPeventhdlrSetExit(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTEXIT((*eventexit)))
Definition: event.c:342
SCIP_RETCODE SCIPeventCreateLbChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:626
SCIP_RETCODE SCIPeventCreateRowCoefChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_ROW *row, SCIP_COL *col, SCIP_Real oldval, SCIP_Real newval)
Definition: event.c:861
SCIP_RETCODE SCIPeventCreateLholeRemoved(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:744
SCIP_RETCODE SCIPeventfilterFree(SCIP_EVENTFILTER **eventfilter, BMS_BLKMEM *blkmem, SCIP_SET *set)
Definition: event.c:1723
SCIP_RETCODE SCIPeventCreateGholeAdded(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real left, SCIP_Real right)
Definition: event.c:678
type definitions for storing primal CIP solutions
public methods for managing events
SCIP_RETCODE SCIPeventfilterProcess(SCIP_EVENTFILTER *eventfilter, SCIP_SET *set, SCIP_EVENT *event)
Definition: event.c:1959
SCIP_RETCODE SCIPeventCreateVarDeleted(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:496
SCIP_RETCODE SCIPeventhdlrExitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:224
SCIP_DECL_EVENTEXEC(EventhdlrNewSol::scip_exec)
SCIP_RETCODE SCIPeventhdlrExec(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set, SCIP_EVENT *event, SCIP_EVENTDATA *eventdata)
Definition: event.c:248
#define SCIP_Real
Definition: def.h:149
SCIP_RETCODE SCIPeventFree(SCIP_EVENT **event, BMS_BLKMEM *blkmem)
Definition: event.c:934
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:785
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:2440
SCIP_RETCODE SCIPeventCreateGubChanged(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var, SCIP_Real oldbound, SCIP_Real newbound)
Definition: event.c:603
SCIP_RETCODE SCIPeventhdlrCopyInclude(SCIP_EVENTHDLR *eventhdlr, SCIP_SET *set)
Definition: event.c:45
SCIP_RETCODE SCIPeventCreateVarUnlocked(SCIP_EVENT **event, BMS_BLKMEM *blkmem, SCIP_VAR *var)
Definition: event.c:536
void SCIPeventhdlrSetExitsol(SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTEXITSOL((*eventexitsol)))
Definition: event.c:364
uint64_t SCIP_EVENTTYPE
Definition: type_event.h:134
memory allocation routines
enum SCIP_SideType SCIP_SIDETYPE
Definition: type_lp.h:58