struct_cons.h
Go to the documentation of this file.
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
42 SCIP_Real age; /**< age of constraint: number of successive times, the constraint was irrelevant */
46 SCIP_CONS* transorigcons; /**< for original constraints: associated transformed constraint or NULL,
48 SCIP_CONSSETCHG* addconssetchg; /**< constraint change that added constraint to current subproblem, or NULL if
50 int addarraypos; /**< position of constraint in the conssetchg's/prob's addedconss/conss array */
57 int nlockspos[NLOCKTYPES]; /**< array of times, the constraint locked rounding of its variables */
58 int nlocksneg[NLOCKTYPES]; /**< array of times, the constraint locked vars for the constraint's negation */
59 int activedepth; /**< depth level of constraint activation (-2: inactive, -1: problem constraint) */
62 unsigned int initial:1; /**< TRUE iff LP relaxation of constraint should be in initial LP, if possible */
66 unsigned int propagate:1; /**< TRUE iff constraint should be propagated during node processing */
67 unsigned int sepaenabled:1; /**< TRUE iff constraint should be separated in the next separation call */
68 unsigned int propenabled:1; /**< TRUE iff constraint should be propagated in the next propagation call */
70 unsigned int modifiable:1; /**< TRUE iff constraint is modifiable (subject to column generation) */
72 unsigned int removable:1; /**< TRUE iff relaxation should be removed from the LP due to aging or cleanup */
73 unsigned int stickingatnode:1; /**< TRUE iff the node should always be kept at the node where it was added */
75 unsigned int deleteconsdata:1; /**< TRUE iff constraint data has to be deleted if constraint is freed */
82 unsigned int enabled:1; /**< TRUE iff constraint is enforced, separated, and propagated in current node */
84 unsigned int markpropagate:1; /**< TRUE iff constraint is marked to be propagated in the next round */
89 unsigned int updatedeactivate:1; /**< TRUE iff constraint has to be deactivated in update phase */
92 unsigned int updatesepaenable:1; /**< TRUE iff constraint's separation has to be enabled in update phase */
93 unsigned int updatesepadisable:1;/**< TRUE iff constraint's separation has to be disabled in update phase */
94 unsigned int updatepropenable:1; /**< TRUE iff constraint's propagation has to be enabled in update phase */
95 unsigned int updatepropdisable:1;/**< TRUE iff constraint's propagation has to be disabled in update phase */
96 unsigned int updateobsolete:1; /**< TRUE iff obsolete status of constraint has to be updated in update phase */
98 unsigned int updateactfocus:1; /**< TRUE iff delayed constraint activation happened at focus node */
99 unsigned int updatemarkpropagate:1;/**< TRUE iff constraint has to be marked to be propagated in update phase */
100 unsigned int updateunmarkpropagate:1;/**< TRUE iff constraint has to be unmarked to be propagated in update phase */
128 SCIP_Longint ncutsapplied; /**< number of cuts found by this constraint handler applied to lp */
129 SCIP_Longint nconssfound; /**< number of additional constraints added by this constraint handler */
130 SCIP_Longint ndomredsfound; /**< number of domain reductions found so far by this constraint handler */
131 SCIP_Longint nchildren; /**< number of children the constraint handler created during branching */
132 SCIP_Longint lastpropdomchgcount;/**< last bound change number, where the domain propagation was called */
133 SCIP_Longint storedpropdomchgcount;/**< bound change number, where the domain propagation was called last before starting probing */
134 SCIP_Longint lastenfolpdomchgcount;/**< last bound change number, where the LP enforcement was called */
135 SCIP_Longint lastenfopsdomchgcount;/**< last bound change number, where the pseudo enforcement was called */
136 SCIP_Longint lastenforelaxdomchgcount;/**< last bound change number, where the relaxation enforcement was called */
139 SCIP_Longint lastenforelaxnode; /**< last node at which the relaxation enforcement was called */
143 SCIP_Real ageresetavg; /**< exp. decaying weighted average of constraint ages at moment of age reset */
146 SCIP_DECL_CONSHDLRCOPY((*conshdlrcopy)); /**< copy method of constraint handler or NULL if you don't want to copy your plugin into sub-SCIPs */
150 SCIP_DECL_CONSINITPRE ((*consinitpre)); /**< presolving initialization method of constraint handler */
151 SCIP_DECL_CONSEXITPRE ((*consexitpre)); /**< presolving deinitialization method of constraint handler */
152 SCIP_DECL_CONSINITSOL ((*consinitsol)); /**< solving process initialization method of constraint handler */
153 SCIP_DECL_CONSEXITSOL ((*consexitsol)); /**< solving process deinitialization method of constraint handler */
155 SCIP_DECL_CONSTRANS ((*constrans)); /**< transform constraint data into data belonging to the transformed problem */
156 SCIP_DECL_CONSINITLP ((*consinitlp)); /**< initialize LP with relaxations of "initial" constraints */
158 SCIP_DECL_CONSSEPASOL ((*conssepasol)); /**< separate cutting planes for arbitrary primal solution */
160 SCIP_DECL_CONSENFORELAX ((*consenforelax)); /**< enforcing constraints for relaxation solutions */
177 SCIP_DECL_CONSGETDIVEBDCHGS((*consgetdivebdchgs)); /**< constraint handler diving solution enforcement method */
183 SCIP_CONS** initconss; /**< array with active constraints that must enter the LP with their initial representation */
184 SCIP_CONS** sepaconss; /**< array with active constraints that must be separated during LP processing */
185 SCIP_CONS** enfoconss; /**< array with active constraints that must be enforced during node processing */
186 SCIP_CONS** checkconss; /**< array with active constraints that must be checked for feasibility */
187 SCIP_CONS** propconss; /**< array with active constraints that must be propagated during node processing */
188 SCIP_CONS** storedpropconss; /**< array to store constraints that were marked for propagation before
191 SCIP_CONS** updateconss; /**< array with constraints that changed and have to be update in the handler */
192 SCIP_CLOCK* setuptime; /**< time spend for setting up this constraint handler for the next stages */
197 SCIP_CLOCK* enforelaxtime; /**< time used for relaxation enforcement of this constraint handler */
199 SCIP_CLOCK* sbproptime; /**< time used for propagation of this constraint handler during strong branching */
204 SCIP_Longint lastenforelaxrelaxcount; /**< last relax number, where the relax enforcement was called */
208 int sepafreq; /**< frequency for separating cuts; zero means to separate only in the root node */
209 int propfreq; /**< frequency for propagating domains; zero means only preprocessing propagation */
210 int eagerfreq; /**< frequency for using all instead of only the useful constraints in separation,
212 int maxprerounds; /**< maximal number of presolving rounds the constraint handler participates in (-1: no limit) */
217 int startnactiveconss; /**< number of active constraints existing when problem solving started */
220 int ninitconsskept; /**< number of active constraints that must enter the LP, but were not initialized at
225 int nusefulsepaconss; /**< number of non-obsolete active constraints that should be separated */
227 int nenfoconss; /**< number of active constraints that must be enforced during node processing */
233 int npropconss; /**< number of active constraints that may be propagated during node processing */
234 int nmarkedpropconss; /**< number of active constraints which are marked to be propagated in the next round */
235 int nusefulpropconss; /**< number of non-obsolete active constraints that should be propagated */
237 int storednmarkedpropconss;/**< number of marked propagation constraints that are stored away */
241 int lastnusefulpropconss;/**< number of already propagated useful constraints on current domains */
242 int lastnusefulsepaconss;/**< number of already separated useful constraints on current solution */
243 int lastnusefulenfoconss;/**< number of already enforced useful constraints on current solution */
246 int lastnchgvartypes; /**< number of variable type changes before the last call to the presolver */
247 int lastnchgbds; /**< number of variable bounds tightened before the last call to the presolver */
251 int lastnupgdconss; /**< number of upgraded constraints before the last call to the presolver */
253 int lastnchgsides; /**< number of changed left or right hand sides before the last call to the presolver */
264 int npresolcalls; /**< number of times the constraint handler was called in presolving and tried to find reductions */
265 int delayupdatecount; /**< must the updates of the constraint arrays be delayed until processUpdates()? */
266 SCIP_Bool delaysepa; /**< should separation method be delayed, if other separators found cuts? */
267 SCIP_Bool delayprop; /**< should propagation method be delayed, if other propagators found reductions? */
268 SCIP_Bool needscons; /**< should the constraint handler be skipped, if no constraints are available? */
275 SCIP_PROPTIMING proptiming; /**< positions in the node solving loop where propagation method of constraint handlers should be executed */
276 SCIP_PRESOLTIMING presoltiming; /**< timing mask of the constraint handler's presolving method */
Definition: struct_cons.h:280
Definition: struct_scip.h:58
SCIP_DECL_CONSSEPALP(ConshdlrSubtour::scip_sepalp)
Definition: ConshdlrSubtour.cpp:277
SCIP_DECL_CONSENFOPS(ConshdlrSubtour::scip_enfops)
Definition: ConshdlrSubtour.cpp:396
SCIP_DECL_CONSSEPASOL(ConshdlrSubtour::scip_sepasol)
Definition: ConshdlrSubtour.cpp:304
SCIP_Longint lastenforelaxrelaxcount
Definition: struct_cons.h:204
SCIP_DECL_CONSDELETE(ConshdlrSubtour::scip_delete)
Definition: ConshdlrSubtour.cpp:223
SCIP_DECL_CONSENFOLP(ConshdlrSubtour::scip_enfolp)
Definition: ConshdlrSubtour.cpp:342
SCIP_DECL_CONSCHECK(ConshdlrSubtour::scip_check)
Definition: ConshdlrSubtour.cpp:441
Definition: struct_cons.h:37
Definition: struct_cons.h:117
SCIP_DECL_CONSTRANS(ConshdlrSubtour::scip_trans)
Definition: ConshdlrSubtour.cpp:235
SCIP_DECL_CONSDELVARS(ConshdlrSubtour::scip_delvars)
Definition: ConshdlrSubtour.cpp:573
SCIP_Longint lastenforelaxdomchgcount
Definition: struct_cons.h:136
type definitions for clocks and timing issues
Definition: struct_cons.h:106
SCIP_DECL_CONSPRINT(ConshdlrSubtour::scip_print)
Definition: ConshdlrSubtour.cpp:583
common defines and data types used in all packages of SCIP
Definition: struct_clock.h:55
type definitions for constraints and constraint handlers