objconshdlr.h
Go to the documentation of this file.
30 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
49 * This class defines the interface for constraint handlers implemented in C++. Note that there are pure virtual
50 * functions (these have to be implemented). These functions are: scip_trans(), scip_enfolp(), scip_enforelax(),
86 /** default frequency of the constraint handler for eager evaluations in separation, propagation and enforcement */
101 /** positions in the node solving loop where propagation method of constraint handler should be executed */
114 int checkpriority, /**< priority of the constraint handler for checking infeasibility (and propagation) */
115 int sepafreq, /**< frequency for separating cuts; zero means to separate only in the root node */
116 int propfreq, /**< frequency for propagating domains; zero means only preprocessing propagation */
117 int eagerfreq, /**< frequency for using all instead of only the useful constraints in separation,
119 int maxprerounds, /**< maximal number of presolving rounds the constraint handler participates in (-1: no limit) */
120 SCIP_Bool delaysepa, /**< should separation method be delayed, if other separators found cuts? */
121 SCIP_Bool delayprop, /**< should propagation method be delayed, if other propagators found reductions? */
122 SCIP_Bool needscons, /**< should the constraint handler be skipped, if no constraints are available? */
123 SCIP_PROPTIMING proptiming, /**< positions in the node solving loop where propagation method of constraint handlers should be executed */
124 SCIP_PRESOLTIMING presoltiming /**< timing mask of the constraint handler's presolving method */
150 o.scip_checkpriority_, o.scip_sepafreq_, o.scip_propfreq_, o.scip_eagerfreq_, o.scip_maxprerounds_,
151 o.scip_delaysepa_, o.scip_delayprop_, o.scip_needscons_, o.scip_proptiming_, o.scip_presoltiming_)
219 /** presolving initialization method of constraint handler (called when presolving is about to begin)
228 /** presolving deinitialization method of constraint handler (called after presolving has been finished)
237 /** solving process initialization method of constraint handler (called when branch and bound process is about to begin)
246 /** solving process deinitialization method of constraint handler (called before branch and bound process data is freed)
270 /** LP initialization method of constraint handler (called before the initial LP relaxation at a node is solved)
421 fprintf(stdout, "constraint handler <%s> does not support printing constraints\n", SCIPconshdlrGetName(conshdlr));
423 fprintf(file, "constraint handler <%s> does not support printing constraints\n", SCIPconshdlrGetName(conshdlr));
488 /** creates the constraint handler for the given constraint handler object and includes it in SCIP
512 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:68
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:108
virtual SCIP_DECL_CONSEXITPRE(scip_exitpre)
Definition: objconshdlr.h:232
scip::ObjConshdlr * SCIPgetObjConshdlr(SCIP *scip, SCIP_CONSHDLR *conshdlr)
Definition: objconshdlr.cpp:688
virtual SCIP_DECL_CONSDELVARS(scip_delvars)
Definition: objconshdlr.h:409
virtual SCIP_DECL_CONSENABLE(scip_enable)
Definition: objconshdlr.h:391
virtual SCIP_DECL_CONSENFOLP(scip_enfolp)=0
virtual SCIP_DECL_CONSENFORELAX(scip_enforelax)
Definition: objconshdlr.h:311
virtual SCIP_DECL_CONSGETDIVEBDCHGS(scip_getdivebdchgs)
Definition: objconshdlr.h:475
virtual SCIP_DECL_CONSINITSOL(scip_initsol)
Definition: objconshdlr.h:241
scip::ObjConshdlr * SCIPfindObjConshdlr(SCIP *scip, const char *name)
Definition: objconshdlr.cpp:669
const SCIP_PROPTIMING scip_proptiming_
Definition: objconshdlr.h:102
virtual SCIP_DECL_CONSRESPROP(scip_resprop)
Definition: objconshdlr.h:356
virtual SCIP_DECL_CONSINIT(scip_init)
Definition: objconshdlr.h:205
virtual SCIP_DECL_CONSEXIT(scip_exit)
Definition: objconshdlr.h:214
virtual SCIP_DECL_CONSPRINT(scip_print)
Definition: objconshdlr.h:418
virtual SCIP_DECL_CONSLOCK(scip_lock)=0
Definition: type_result.h:44
virtual SCIP_DECL_CONSPRESOL(scip_presol)
Definition: objconshdlr.h:345
virtual SCIP_DECL_CONSSEPALP(scip_sepalp)
Definition: objconshdlr.h:283
virtual SCIP_DECL_CONSDISABLE(scip_disable)
Definition: objconshdlr.h:400
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:334
virtual SCIP_DECL_CONSTRANS(scip_trans)=0
virtual SCIP_DECL_CONSDELETE(scip_delete)
Definition: objconshdlr.h:259
virtual SCIP_DECL_CONSGETNVARS(scip_getnvars)
Definition: objconshdlr.h:462
virtual SCIP_DECL_CONSDEACTIVE(scip_deactive)
Definition: objconshdlr.h:382
virtual SCIP_DECL_CONSSEPASOL(scip_sepasol)
Definition: objconshdlr.h:294
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:630
virtual SCIP_DECL_CONSINITPRE(scip_initpre)
Definition: objconshdlr.h:223
virtual SCIP_DECL_CONSCOPY(scip_copy)
Definition: objconshdlr.h:431
const SCIP_PRESOLTIMING scip_presoltiming_
Definition: objconshdlr.h:105
virtual SCIP_DECL_CONSACTIVE(scip_active)
Definition: objconshdlr.h:373
virtual SCIP_DECL_CONSGETVARS(scip_getvars)
Definition: objconshdlr.h:450
virtual SCIP_DECL_CONSEXITSOL(scip_exitsol)
Definition: objconshdlr.h:250
virtual SCIP_DECL_CONSENFOPS(scip_enfops)=0
Definition: objbenders.h:43
virtual SCIP_DECL_CONSFREE(scip_free)
Definition: objconshdlr.h:196
virtual SCIP_DECL_CONSINITLP(scip_initlp)
Definition: objconshdlr.h:274
SCIP callable library.