objconshdlr.h
Go to the documentation of this file.
30 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
48 * This class defines the interface for constraint handlers implemented in C++. Note that there are pure virtual
49 * functions (these have to be implemented). These functions are: scip_trans(), scip_enfolp(), scip_enforelax(),
85 /** default frequency of the constraint handler for eager evaluations in separation, propagation and enforcement */
100 /** positions in the node solving loop where propagation method of constraint handler should be executed */
113 int checkpriority, /**< priority of the constraint handler for checking infeasibility (and propagation) */
114 int sepafreq, /**< frequency for separating cuts; zero means to separate only in the root node */
115 int propfreq, /**< frequency for propagating domains; zero means only preprocessing propagation */
116 int eagerfreq, /**< frequency for using all instead of only the useful constraints in separation,
118 int maxprerounds, /**< maximal number of presolving rounds the constraint handler participates in (-1: no limit) */
119 SCIP_Bool delaysepa, /**< should separation method be delayed, if other separators found cuts? */
120 SCIP_Bool delayprop, /**< should propagation method be delayed, if other propagators found reductions? */
121 SCIP_Bool needscons, /**< should the constraint handler be skipped, if no constraints are available? */
122 SCIP_PROPTIMING proptiming, /**< positions in the node solving loop where propagation method of constraint handlers should be executed */
123 SCIP_PRESOLTIMING presoltiming /**< timing mask of the constraint handler's presolving method */
149 o.scip_checkpriority_, o.scip_sepafreq_, o.scip_propfreq_, o.scip_eagerfreq_, o.scip_maxprerounds_,
150 o.scip_delaysepa_, o.scip_delayprop_, o.scip_needscons_, o.scip_proptiming_, o.scip_presoltiming_)
218 /** presolving initialization method of constraint handler (called when presolving is about to begin)
227 /** presolving deinitialization method of constraint handler (called after presolving has been finished)
236 /** solving process initialization method of constraint handler (called when branch and bound process is about to begin)
245 /** solving process deinitialization method of constraint handler (called before branch and bound process data is freed)
269 /** LP initialization method of constraint handler (called before the initial LP relaxation at a node is solved)
420 fprintf(stdout, "constraint handler <%s> does not support printing constraints\n", SCIPconshdlrGetName(conshdlr));
422 fprintf(file, "constraint handler <%s> does not support printing constraints\n", SCIPconshdlrGetName(conshdlr));
483 /** constraint handler method which returns the permutation symmetry detection graph of a constraint (if possible)
494 /** constraint handler method which returns the signed permutation symmetry detection graph of a constraint (if possible)
510 /** creates the constraint handler for the given constraint handler object and includes it in SCIP
534 SCIP_Bool deleteobject /**< should the constraint handler object be deleted when conshdlr is freed? */
virtual SCIP_DECL_CONSPARSE(scip_parse)
Definition: objconshdlr.h:441
Definition of base class for all clonable classes which define problem data.
Definition: type_result.h:42
#define SCIPduplicateMemoryArray(scip, ptr, source, num)
Definition: scip_mem.h:76
Definition: struct_scip.h:69
ObjConshdlr(SCIP *scip, const char *name, const char *desc, int sepapriority, int enfopriority, int checkpriority, int sepafreq, int propfreq, int eagerfreq, int maxprerounds, SCIP_Bool delaysepa, SCIP_Bool delayprop, SCIP_Bool needscons, SCIP_PROPTIMING proptiming, SCIP_PRESOLTIMING presoltiming)
Definition: objconshdlr.h:107
virtual SCIP_DECL_CONSEXITPRE(scip_exitpre)
Definition: objconshdlr.h:231
scip::ObjConshdlr * SCIPgetObjConshdlr(SCIP *scip, SCIP_CONSHDLR *conshdlr)
Definition: objconshdlr.cpp:721
virtual SCIP_DECL_CONSDELVARS(scip_delvars)
Definition: objconshdlr.h:408
virtual SCIP_DECL_CONSENABLE(scip_enable)
Definition: objconshdlr.h:390
virtual SCIP_DECL_CONSENFOLP(scip_enfolp)=0
virtual SCIP_DECL_CONSENFORELAX(scip_enforelax)
Definition: objconshdlr.h:310
virtual SCIP_DECL_CONSGETDIVEBDCHGS(scip_getdivebdchgs)
Definition: objconshdlr.h:476
virtual SCIP_DECL_CONSINITSOL(scip_initsol)
Definition: objconshdlr.h:240
scip::ObjConshdlr * SCIPfindObjConshdlr(SCIP *scip, const char *name)
Definition: objconshdlr.cpp:702
const SCIP_PROPTIMING scip_proptiming_
Definition: objconshdlr.h:101
virtual SCIP_DECL_CONSGETSIGNEDPERMSYMGRAPH(scip_getsignedpermsymgraph)
Definition: objconshdlr.h:498
virtual SCIP_DECL_CONSRESPROP(scip_resprop)
Definition: objconshdlr.h:355
virtual SCIP_DECL_CONSINIT(scip_init)
Definition: objconshdlr.h:204
virtual SCIP_DECL_CONSEXIT(scip_exit)
Definition: objconshdlr.h:213
virtual SCIP_DECL_CONSPRINT(scip_print)
Definition: objconshdlr.h:417
virtual SCIP_DECL_CONSLOCK(scip_lock)=0
Definition: type_result.h:44
virtual SCIP_DECL_CONSPRESOL(scip_presol)
Definition: objconshdlr.h:344
virtual SCIP_DECL_CONSSEPALP(scip_sepalp)
Definition: objconshdlr.h:282
virtual SCIP_DECL_CONSDISABLE(scip_disable)
Definition: objconshdlr.h:399
Definition: struct_cons.h:126
virtual SCIP_DECL_CONSCHECK(scip_check)=0
Definition: type_retcode.h:42
virtual SCIP_DECL_CONSPROP(scip_prop)
Definition: objconshdlr.h:333
virtual SCIP_DECL_CONSTRANS(scip_trans)=0
virtual SCIP_DECL_CONSDELETE(scip_delete)
Definition: objconshdlr.h:258
virtual SCIP_DECL_CONSGETNVARS(scip_getnvars)
Definition: objconshdlr.h:461
virtual SCIP_DECL_CONSDEACTIVE(scip_deactive)
Definition: objconshdlr.h:381
virtual SCIP_DECL_CONSSEPASOL(scip_sepasol)
Definition: objconshdlr.h:293
ObjConshdlr & operator=(const ObjConshdlr &o)=delete
Definition of base class for all clonable classes which define problem data.
Definition: objprobcloneable.h:51
SCIP_RETCODE SCIPincludeObjConshdlr(SCIP *scip, scip::ObjConshdlr *objconshdlr, SCIP_Bool deleteobject)
Definition: objconshdlr.cpp:662
virtual SCIP_DECL_CONSINITPRE(scip_initpre)
Definition: objconshdlr.h:222
virtual SCIP_DECL_CONSCOPY(scip_copy)
Definition: objconshdlr.h:430
const SCIP_PRESOLTIMING scip_presoltiming_
Definition: objconshdlr.h:104
virtual SCIP_DECL_CONSACTIVE(scip_active)
Definition: objconshdlr.h:372
virtual SCIP_DECL_CONSGETVARS(scip_getvars)
Definition: objconshdlr.h:450
virtual SCIP_DECL_CONSEXITSOL(scip_exitsol)
Definition: objconshdlr.h:249
virtual SCIP_DECL_CONSENFOPS(scip_enfops)=0
virtual SCIP_DECL_CONSGETPERMSYMGRAPH(scip_getpermsymgraph)
Definition: objconshdlr.h:487
Definition: objbenders.h:43
virtual SCIP_DECL_CONSFREE(scip_free)
Definition: objconshdlr.h:195
virtual SCIP_DECL_CONSINITLP(scip_initlp)
Definition: objconshdlr.h:273
SCIP callable library.