objconshdlr.h
Go to the documentation of this file.
21 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
39 * This class defines the interface for constraint handlers implemented in C++. Note that there are pure virtual
40 * functions (these have to be implemented). These functions are: scip_trans(), scip_enfolp(), scip_enforelax(),
76 /** default frequency of the constraint handler for eager evaluations in separation, propagation and enforcement */
91 /** positions in the node solving loop where propagation method of constraint handler should be executed */
104 int checkpriority, /**< priority of the constraint handler for checking infeasibility (and propagation) */
105 int sepafreq, /**< frequency for separating cuts; zero means to separate only in the root node */
106 int propfreq, /**< frequency for propagating domains; zero means only preprocessing propagation */
107 int eagerfreq, /**< frequency for using all instead of only the useful constraints in separation,
109 int maxprerounds, /**< maximal number of presolving rounds the constraint handler participates in (-1: no limit) */
110 SCIP_Bool delaysepa, /**< should separation method be delayed, if other separators found cuts? */
111 SCIP_Bool delayprop, /**< should propagation method be delayed, if other propagators found reductions? */
112 SCIP_Bool needscons, /**< should the constraint handler be skipped, if no constraints are available? */
113 SCIP_PROPTIMING proptiming, /**< positions in the node solving loop where propagation method of constraint handlers should be executed */
114 SCIP_PRESOLTIMING presoltiming /**< timing mask of the constraint handler's presolving method */
173 /** presolving initialization method of constraint handler (called when presolving is about to begin)
182 /** presolving deinitialization method of constraint handler (called after presolving has been finished)
191 /** solving process initialization method of constraint handler (called when branch and bound process is about to begin)
200 /** solving process deinitialization method of constraint handler (called before branch and bound process data is freed)
224 /** LP initialization method of constraint handler (called before the initial LP relaxation at a node is solved)
375 fprintf(stdout, "constraint handler <%s> does not support printing constraints\n", SCIPconshdlrGetName(conshdlr));
377 fprintf(file, "constraint handler <%s> does not support printing constraints\n", SCIPconshdlrGetName(conshdlr));
442 /** creates the constraint handler for the given constraint handler object and includes it in SCIP
466 SCIP_Bool deleteobject /**< should the constraint handler object be deleted when conshdlr is freed? */
virtual SCIP_DECL_CONSPARSE(scip_parse)
Definition: objconshdlr.h:395
Definition of base class for all clonable classes which define problem data.
Definition: type_result.h:33
#define SCIPduplicateMemoryArray(scip, ptr, source, num)
Definition: scip_mem.h:84
Definition: struct_scip.h:58
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:98
virtual SCIP_DECL_CONSEXITPRE(scip_exitpre)
Definition: objconshdlr.h:186
scip::ObjConshdlr * SCIPgetObjConshdlr(SCIP *scip, SCIP_CONSHDLR *conshdlr)
Definition: objconshdlr.cpp:679
virtual SCIP_DECL_CONSDELVARS(scip_delvars)
Definition: objconshdlr.h:363
virtual SCIP_DECL_CONSENABLE(scip_enable)
Definition: objconshdlr.h:345
virtual SCIP_DECL_CONSENFOLP(scip_enfolp)=0
virtual SCIP_DECL_CONSENFORELAX(scip_enforelax)
Definition: objconshdlr.h:265
virtual SCIP_DECL_CONSGETDIVEBDCHGS(scip_getdivebdchgs)
Definition: objconshdlr.h:429
virtual SCIP_DECL_CONSINITSOL(scip_initsol)
Definition: objconshdlr.h:195
scip::ObjConshdlr * SCIPfindObjConshdlr(SCIP *scip, const char *name)
Definition: objconshdlr.cpp:660
const SCIP_PROPTIMING scip_proptiming_
Definition: objconshdlr.h:92
virtual SCIP_DECL_CONSRESPROP(scip_resprop)
Definition: objconshdlr.h:310
virtual SCIP_DECL_CONSINIT(scip_init)
Definition: objconshdlr.h:159
virtual SCIP_DECL_CONSEXIT(scip_exit)
Definition: objconshdlr.h:168
virtual SCIP_DECL_CONSPRINT(scip_print)
Definition: objconshdlr.h:372
virtual SCIP_DECL_CONSLOCK(scip_lock)=0
Definition: type_result.h:35
virtual SCIP_DECL_CONSPRESOL(scip_presol)
Definition: objconshdlr.h:299
virtual SCIP_DECL_CONSSEPALP(scip_sepalp)
Definition: objconshdlr.h:237
virtual SCIP_DECL_CONSDISABLE(scip_disable)
Definition: objconshdlr.h:354
Definition: struct_cons.h:117
virtual SCIP_DECL_CONSCHECK(scip_check)=0
Definition: type_retcode.h:33
virtual SCIP_DECL_CONSPROP(scip_prop)
Definition: objconshdlr.h:288
virtual SCIP_DECL_CONSTRANS(scip_trans)=0
virtual SCIP_DECL_CONSDELETE(scip_delete)
Definition: objconshdlr.h:213
virtual SCIP_DECL_CONSGETNVARS(scip_getnvars)
Definition: objconshdlr.h:416
virtual SCIP_DECL_CONSDEACTIVE(scip_deactive)
Definition: objconshdlr.h:336
virtual SCIP_DECL_CONSSEPASOL(scip_sepasol)
Definition: objconshdlr.h:248
Definition of base class for all clonable classes which define problem data.
Definition: objprobcloneable.h:42
SCIP_RETCODE SCIPincludeObjConshdlr(SCIP *scip, scip::ObjConshdlr *objconshdlr, SCIP_Bool deleteobject)
Definition: objconshdlr.cpp:621
virtual SCIP_DECL_CONSINITPRE(scip_initpre)
Definition: objconshdlr.h:177
virtual SCIP_DECL_CONSCOPY(scip_copy)
Definition: objconshdlr.h:385
const SCIP_PRESOLTIMING scip_presoltiming_
Definition: objconshdlr.h:95
virtual SCIP_DECL_CONSACTIVE(scip_active)
Definition: objconshdlr.h:327
virtual SCIP_DECL_CONSGETVARS(scip_getvars)
Definition: objconshdlr.h:404
virtual SCIP_DECL_CONSEXITSOL(scip_exitsol)
Definition: objconshdlr.h:204
virtual SCIP_DECL_CONSENFOPS(scip_enfops)=0
Definition: objbenders.h:33
virtual SCIP_DECL_CONSFREE(scip_free)
Definition: objconshdlr.h:150
virtual SCIP_DECL_CONSINITLP(scip_initlp)
Definition: objconshdlr.h:228
SCIP callable library.