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-2019 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 /* 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 the addition of a linear row to the separation storage */
294  SCIP_EVENT** event, /**< pointer to store the event */
295  BMS_BLKMEM* blkmem, /**< block memory */
296  SCIP_ROW* row /**< row that was added to the separation storage*/
297  );
298 
299 /** creates an event for the deletion of a linear row from the separation storage */
301  SCIP_EVENT** event, /**< pointer to store the event */
302  BMS_BLKMEM* blkmem, /**< block memory */
303  SCIP_ROW* row /**< row that was deleted from the separation storage */
304  );
305 
306 /** creates an event for the addition of a linear row to the LP */
308  SCIP_EVENT** event, /**< pointer to store the event */
309  BMS_BLKMEM* blkmem, /**< block memory */
310  SCIP_ROW* row /**< row that was added to the LP */
311  );
312 
313 /** creates an event for the deletion of a linear row from the LP */
315  SCIP_EVENT** event, /**< pointer to store the event */
316  BMS_BLKMEM* blkmem, /**< block memory */
317  SCIP_ROW* row /**< row that was deleted from the LP */
318  );
319 
320 /** creates an event for the change of a coefficient in a linear row */
322  SCIP_EVENT** event, /**< pointer to store the event */
323  BMS_BLKMEM* blkmem, /**< block memory */
324  SCIP_ROW* row, /**< row in which a coefficient changed */
325  SCIP_COL* col, /**< column which coefficient changed */
326  SCIP_Real oldval, /**< old value of coefficient */
327  SCIP_Real newval /**< new value of coefficient */
328  );
329 
330 /** creates an event for the change of a constant in a linear row */
332  SCIP_EVENT** event, /**< pointer to store the event */
333  BMS_BLKMEM* blkmem, /**< block memory */
334  SCIP_ROW* row, /**< row in which the constant changed */
335  SCIP_Real oldval, /**< old value of constant */
336  SCIP_Real newval /**< new value of constant */
337  );
338 
339 /** creates an event for the change of a side of a linear row */
341  SCIP_EVENT** event, /**< pointer to store the event */
342  BMS_BLKMEM* blkmem, /**< block memory */
343  SCIP_ROW* row, /**< row which side has changed */
344  SCIP_SIDETYPE side, /**< which side has changed */
345  SCIP_Real oldval, /**< old value of side */
346  SCIP_Real newval /**< new value of side */
347  );
348 
349 /** frees an event */
351  SCIP_EVENT** event, /**< event to free */
352  BMS_BLKMEM* blkmem /**< block memory buffer */
353  );
354 
355 /** sets type of event */
357  SCIP_EVENT* event, /**< event */
358  SCIP_EVENTTYPE eventtype /**< new event type */
359  );
360 
361 /** sets variable for a variable event */
363  SCIP_EVENT* event, /**< event */
364  SCIP_VAR* var /**< new variable */
365  );
366 
367 /** sets node for a node or LP event */
369  SCIP_EVENT* event, /**< event */
370  SCIP_NODE* node /**< new node */
371  );
372 
373 /** sets solution for a primal solution event */
375  SCIP_EVENT* event, /**< event */
376  SCIP_SOL* sol /**< new primal solution */
377  );
378 
379 /** processes event by calling the appropriate event handlers */
381  SCIP_EVENT* event, /**< event */
382  SCIP_SET* set, /**< global SCIP settings */
383  SCIP_PRIMAL* primal, /**< primal data; only needed for objchanged events, or NULL */
384  SCIP_LP* lp, /**< current LP data; only needed for obj/boundchanged events, or NULL */
385  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage; only needed for bound change events, or NULL */
386  SCIP_EVENTFILTER* eventfilter /**< event filter for global events; not needed for variable specific events */
387  );
388 
389 
390 
391 /*
392  * Event filter methods
393  */
394 
395 /** creates an event filter */
397  SCIP_EVENTFILTER** eventfilter, /**< pointer to store the event filter */
398  BMS_BLKMEM* blkmem /**< block memory buffer */
399  );
400 
401 /** frees an event filter and the associated event data entries */
403  SCIP_EVENTFILTER** eventfilter, /**< pointer to store the event filter */
404  BMS_BLKMEM* blkmem, /**< block memory buffer */
405  SCIP_SET* set /**< global SCIP settings */
406  );
407 
408 /** adds element to event filter */
410  SCIP_EVENTFILTER* eventfilter, /**< event filter */
411  BMS_BLKMEM* blkmem, /**< block memory buffer */
412  SCIP_SET* set, /**< global SCIP settings */
413  SCIP_EVENTTYPE eventtype, /**< event type to catch */
414  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
415  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
416  int* filterpos /**< pointer to store position of event filter entry, or NULL */
417  );
418 
419 /** deletes element from event filter */
421  SCIP_EVENTFILTER* eventfilter, /**< event filter */
422  BMS_BLKMEM* blkmem, /**< block memory buffer */
423  SCIP_SET* set, /**< global SCIP settings */
424  SCIP_EVENTTYPE eventtype, /**< event type */
425  SCIP_EVENTHDLR* eventhdlr, /**< event handler to call for the event processing */
426  SCIP_EVENTDATA* eventdata, /**< event data to pass to the event handler for the event processing */
427  int filterpos /**< position of event filter entry, or -1 if unknown */
428  );
429 
430 /** processes the event with all event handlers with matching filter setting */
432  SCIP_EVENTFILTER* eventfilter, /**< event filter */
433  SCIP_SET* set, /**< global SCIP settings */
434  SCIP_EVENT* event /**< event to process */
435  );
436 
437 
438 
439 /*
440  * Event queue methods
441  */
442 
443 /** creates an event queue */
445  SCIP_EVENTQUEUE** eventqueue /**< pointer to store the event queue */
446  );
447 
448 /** frees event queue; there must not be any unprocessed events in the queue! */
450  SCIP_EVENTQUEUE** eventqueue /**< pointer to the event queue */
451  );
452 
453 /** processes event or adds event to the event queue */
455  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
456  BMS_BLKMEM* blkmem, /**< block memory buffer */
457  SCIP_SET* set, /**< global SCIP settings */
458  SCIP_PRIMAL* primal, /**< primal data; only needed for objchanged events, or NULL */
459  SCIP_LP* lp, /**< current LP data; only needed for obj/boundchanged events, or NULL */
460  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage; only needed for bound change events, or NULL */
461  SCIP_EVENTFILTER* eventfilter, /**< event filter for global events; not needed for variable specific events */
462  SCIP_EVENT** event /**< pointer to event to add to the queue; will be NULL after queue addition */
463  );
464 
465 /** marks queue to delay incoming events until a call to SCIPeventqueueProcess() */
467  SCIP_EVENTQUEUE* eventqueue /**< event queue */
468  );
469 
470 /** processes all events in the queue */
472  SCIP_EVENTQUEUE* eventqueue, /**< event queue */
473  BMS_BLKMEM* blkmem, /**< block memory buffer */
474  SCIP_SET* set, /**< global SCIP settings */
475  SCIP_PRIMAL* primal, /**< primal data */
476  SCIP_LP* lp, /**< current LP data */
477  SCIP_BRANCHCAND* branchcand, /**< branching candidate storage */
478  SCIP_EVENTFILTER* eventfilter /**< event filter for global (not variable dependent) events */
479  );
480 
481 /** returns TRUE iff events of the queue are delayed until the next SCIPeventqueueProcess() call */
483  SCIP_EVENTQUEUE* eventqueue /**< event queue */
484  );
485 
486 #ifdef NDEBUG
487 
488 /* In optimized mode, the function calls are overwritten by defines to reduce the number of function calls and
489  * speed up the algorithms.
490  */
491 
492 #define SCIPeventqueueIsDelayed(eventqueue) ((eventqueue)->delayevents)
493 
494 #endif
495 
496 #ifdef __cplusplus
497 }
498 #endif
499 
500 #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:70
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:164
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:427
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