C++ wrapper for constraint handlers.
This class defines the interface for constraint handlers implemented in C++. Note that there are pure virtual functions (these have to be implemented). These functions are: scip_trans(), scip_enfolp(), scip_enforelax(), scip_enfops(), scip_check(), and scip_lock().
Definition at line 47 of file objconshdlr.h.
#include <objconshdlr.h>
Public Member Functions | |
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) | |
virtual | ~ObjConshdlr () |
virtual | SCIP_DECL_CONSFREE (scip_free) |
virtual | SCIP_DECL_CONSINIT (scip_init) |
virtual | SCIP_DECL_CONSEXIT (scip_exit) |
virtual | SCIP_DECL_CONSINITPRE (scip_initpre) |
virtual | SCIP_DECL_CONSEXITPRE (scip_exitpre) |
virtual | SCIP_DECL_CONSINITSOL (scip_initsol) |
virtual | SCIP_DECL_CONSEXITSOL (scip_exitsol) |
virtual | SCIP_DECL_CONSDELETE (scip_delete) |
virtual | SCIP_DECL_CONSTRANS (scip_trans)=0 |
virtual | SCIP_DECL_CONSINITLP (scip_initlp) |
virtual | SCIP_DECL_CONSSEPALP (scip_sepalp) |
virtual | SCIP_DECL_CONSSEPASOL (scip_sepasol) |
virtual | SCIP_DECL_CONSENFOLP (scip_enfolp)=0 |
virtual | SCIP_DECL_CONSENFORELAX (scip_enforelax) |
virtual | SCIP_DECL_CONSENFOPS (scip_enfops)=0 |
virtual | SCIP_DECL_CONSCHECK (scip_check)=0 |
virtual | SCIP_DECL_CONSPROP (scip_prop) |
virtual | SCIP_DECL_CONSPRESOL (scip_presol) |
virtual | SCIP_DECL_CONSRESPROP (scip_resprop) |
virtual | SCIP_DECL_CONSLOCK (scip_lock)=0 |
virtual | SCIP_DECL_CONSACTIVE (scip_active) |
virtual | SCIP_DECL_CONSDEACTIVE (scip_deactive) |
virtual | SCIP_DECL_CONSENABLE (scip_enable) |
virtual | SCIP_DECL_CONSDISABLE (scip_disable) |
virtual | SCIP_DECL_CONSDELVARS (scip_delvars) |
virtual | SCIP_DECL_CONSPRINT (scip_print) |
virtual | SCIP_DECL_CONSCOPY (scip_copy) |
virtual | SCIP_DECL_CONSPARSE (scip_parse) |
virtual | SCIP_DECL_CONSGETVARS (scip_getvars) |
virtual | SCIP_DECL_CONSGETNVARS (scip_getnvars) |
virtual | SCIP_DECL_CONSGETDIVEBDCHGS (scip_getdivebdchgs) |
Public Member Functions inherited from scip::ObjProbCloneable | |
virtual | ~ObjProbCloneable () |
virtual | SCIP_DECL_OBJPROBCLONE (ObjProbCloneable *clone) |
virtual | SCIP_DECL_OBJPROBISCLONEABLE (iscloneable) |
Data Fields | |
SCIP * | scip_ |
char * | scip_name_ |
char * | scip_desc_ |
const int | scip_sepapriority_ |
const int | scip_enfopriority_ |
const int | scip_checkpriority_ |
const int | scip_sepafreq_ |
const int | scip_propfreq_ |
const int | scip_eagerfreq_ |
const int | scip_maxprerounds_ |
const SCIP_Bool | scip_delaysepa_ |
const SCIP_Bool | scip_delayprop_ |
const SCIP_Bool | scip_needscons_ |
const SCIP_PROPTIMING | scip_proptiming_ |
const SCIP_PRESOLTIMING | scip_presoltiming_ |
|
inline |
default constructor
scip | SCIP data structure |
name | name of constraint handler |
desc | description of constraint handler |
sepapriority | priority of the constraint handler for separation |
enfopriority | priority of the constraint handler for constraint enforcing |
checkpriority | priority of the constraint handler for checking infeasibility (and propagation) |
sepafreq | frequency for separating cuts; zero means to separate only in the root node |
propfreq | frequency for propagating domains; zero means only preprocessing propagation |
eagerfreq | frequency for using all instead of only the useful constraints in separation, propagation and enforcement, -1 for no eager evaluations, 0 for first only |
maxprerounds | maximal number of presolving rounds the constraint handler participates in (-1: no limit) |
delaysepa | should separation method be delayed, if other separators found cuts? |
delayprop | should propagation method be delayed, if other propagators found reductions? |
needscons | should the constraint handler be skipped, if no constraints are available? |
proptiming | positions in the node solving loop where propagation method of constraint handlers should be executed |
presoltiming | timing mask of the constraint handler's presolving method |
Definition at line 98 of file objconshdlr.h.
References SCIP_CALL_ABORT, and SCIPduplicateMemoryArray.
|
inlinevirtual |
|
inlinevirtual |
destructor of constraint handler to free user data (called when SCIP is exiting)
Definition at line 150 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
initialization method of constraint handler (called after problem has been transformed)
Definition at line 159 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
deinitialization method of constraint handler (called before transformed problem is freed)
Definition at line 168 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
presolving initialization method of constraint handler (called when presolving is about to begin)
Definition at line 177 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
presolving deinitialization method of constraint handler (called after presolving has been finished)
Definition at line 186 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
solving process initialization method of constraint handler (called when branch and bound process is about to begin)
Definition at line 195 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
solving process deinitialization method of constraint handler (called before branch and bound process data is freed)
Definition at line 204 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
frees specific constraint data
Reimplemented in tsp::ConshdlrSubtour.
Definition at line 213 of file objconshdlr.h.
References SCIP_DECL_CONSTRANS(), and SCIP_OKAY.
|
pure virtual |
transforms constraint data into data belonging to the transformed problem
Implemented in tsp::ConshdlrSubtour.
Referenced by SCIP_DECL_CONSDELETE().
|
inlinevirtual |
LP initialization method of constraint handler (called before the initial LP relaxation at a node is solved)
Definition at line 228 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
separation method of constraint handler for LP solution
Reimplemented in tsp::ConshdlrSubtour.
Definition at line 237 of file objconshdlr.h.
References SCIP_DIDNOTRUN, and SCIP_OKAY.
|
inlinevirtual |
separation method of constraint handler for arbitrary primal solution
Reimplemented in tsp::ConshdlrSubtour.
Definition at line 248 of file objconshdlr.h.
References SCIP_DECL_CONSENFOLP(), SCIP_DIDNOTRUN, and SCIP_OKAY.
|
pure virtual |
constraint enforcing method of constraint handler for LP solutions
Implemented in tsp::ConshdlrSubtour.
Referenced by SCIP_DECL_CONSSEPASOL().
|
inlinevirtual |
constraint enforcing method of constraint handler for relaxation solutions
Definition at line 265 of file objconshdlr.h.
References SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFOPS(), SCIP_DIDNOTRUN, and SCIP_OKAY.
|
pure virtual |
constraint enforcing method of constraint handler for pseudo solutions
Implemented in tsp::ConshdlrSubtour.
Referenced by SCIP_DECL_CONSENFORELAX().
|
pure virtual |
feasibility check method of constraint handler for primal solutions
Implemented in tsp::ConshdlrSubtour.
Referenced by SCIP_DECL_CONSENFORELAX().
|
inlinevirtual |
domain propagation method of constraint handler
Reimplemented in tsp::ConshdlrSubtour.
Definition at line 288 of file objconshdlr.h.
References SCIP_DIDNOTRUN, and SCIP_OKAY.
|
inlinevirtual |
presolving method of constraint handler
Definition at line 299 of file objconshdlr.h.
References SCIP_DIDNOTRUN, and SCIP_OKAY.
|
inlinevirtual |
propagation conflict resolving method of constraint handler
Definition at line 310 of file objconshdlr.h.
References SCIP_DECL_CONSLOCK(), SCIP_DIDNOTFIND, and SCIP_OKAY.
|
pure virtual |
variable rounding lock method of constraint handler
Implemented in tsp::ConshdlrSubtour.
Referenced by SCIP_DECL_CONSRESPROP().
|
inlinevirtual |
constraint activation notification method of constraint handler
Definition at line 327 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
constraint deactivation notification method of constraint handler
Definition at line 336 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
constraint enabling notification method of constraint handler
Definition at line 345 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
constraint disabling notification method of constraint handler
Definition at line 354 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
variable deletion method of constraint handler
Reimplemented in tsp::ConshdlrSubtour.
Definition at line 363 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
constraint display method of constraint handler
Reimplemented in tsp::ConshdlrSubtour.
Definition at line 372 of file objconshdlr.h.
References SCIP_OKAY, and SCIPconshdlrGetName().
|
inlinevirtual |
constraint copying method of constraint handler
Reimplemented in tsp::ConshdlrSubtour.
Definition at line 385 of file objconshdlr.h.
|
inlinevirtual |
constraint parsing method of constraint handler
Definition at line 395 of file objconshdlr.h.
References SCIP_OKAY.
|
inlinevirtual |
constraint method of constraint handler which returns the variables (if possible)
Definition at line 404 of file objconshdlr.h.
|
inlinevirtual |
constraint method of constraint handler which returns the number of variables (if possible)
Definition at line 416 of file objconshdlr.h.
|
inlinevirtual |
constraint handler method to suggest dive bound changes during the generic diving algorithm
Definition at line 429 of file objconshdlr.h.
References FALSE, SCIP_Bool, SCIP_OKAY, SCIPfindObjConshdlr(), SCIPgetObjConshdlr(), and SCIPincludeObjConshdlr().
SCIP* scip::ObjConshdlr::scip_ |
SCIP data structure
Definition at line 53 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
char* scip::ObjConshdlr::scip_name_ |
name of the constraint handler
Definition at line 56 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
char* scip::ObjConshdlr::scip_desc_ |
description of the constraint handler
Definition at line 59 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const int scip::ObjConshdlr::scip_sepapriority_ |
default separation priority of the constraint handler
Definition at line 62 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const int scip::ObjConshdlr::scip_enfopriority_ |
default enforcing priority of the constraint handler
Definition at line 65 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const int scip::ObjConshdlr::scip_checkpriority_ |
default checking priority of the constraint handler
Definition at line 68 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const int scip::ObjConshdlr::scip_sepafreq_ |
default separation frequency of the constraint handler
Definition at line 71 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const int scip::ObjConshdlr::scip_propfreq_ |
default propagation frequency of the constraint handler
Definition at line 74 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const int scip::ObjConshdlr::scip_eagerfreq_ |
default frequency of the constraint handler for eager evaluations in separation, propagation and enforcement
Definition at line 77 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const int scip::ObjConshdlr::scip_maxprerounds_ |
maximal number of presolving rounds the constraint handler participates in (-1: no limit)
Definition at line 80 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const SCIP_Bool scip::ObjConshdlr::scip_delaysepa_ |
should separation method be delayed, if other separators found cuts?
Definition at line 83 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const SCIP_Bool scip::ObjConshdlr::scip_delayprop_ |
should propagation method be delayed, if other propagators found reductions?
Definition at line 86 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const SCIP_Bool scip::ObjConshdlr::scip_needscons_ |
should the constraint handler be skipped, if no constraints are available?
Definition at line 89 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const SCIP_PROPTIMING scip::ObjConshdlr::scip_proptiming_ |
positions in the node solving loop where propagation method of constraint handler should be executed timing mask of the constraint handler's presolving method
Definition at line 92 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().
const SCIP_PRESOLTIMING scip::ObjConshdlr::scip_presoltiming_ |
Definition at line 95 of file objconshdlr.h.
Referenced by SCIPincludeObjConshdlr().