cons_cardinality.h
Go to the documentation of this file.
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
60 * with integer right-hand side \f$b\f$. Here, \f$|\mbox{supp}(x)|\f$ denotes the number of nonzero entries of the
63 * Cardinality constraints generalize special ordered set of type one (SOS1) constraints in which \f$b = 1\f$.
72 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
82 SCIP_VAR** indvars, /**< indicator variables to indicate which variables may be treated as nonzero
104 SCIP_Bool stickingatnode /**< should the constraint always be kept at the node where it was added, even
110 * in its most basic variant, i. e., with all constraint flags set to their default values, which can be set
118 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
128 SCIP_VAR** indvars, /**< indicator variables to indicate which variables may be treated as nonzero
135 /** changes cardinality value of cardinality constraint (i.e., right hand side of cardinality constraint) */
149 SCIP_VAR* indvar, /**< indicator variable to indicate whether variable may be treated as nonzero
180 /** gets cardinality value of cardinality constraint (i.e., right hand side of cardinality constraint) */
SCIP_EXPORT SCIP_RETCODE SCIPchgCardvalCardinality(SCIP *scip, SCIP_CONS *cons, int cardval)
Definition: cons_cardinality.c:3531
SCIP_EXPORT SCIP_RETCODE SCIPaddVarCardinality(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var, SCIP_VAR *indvar, SCIP_Real weight)
Definition: cons_cardinality.c:3560
SCIP_EXPORT SCIP_VAR ** SCIPgetVarsCardinality(SCIP *scip, SCIP_CONS *cons)
Definition: cons_cardinality.c:3656
Definition: struct_scip.h:59
SCIP_EXPORT SCIP_RETCODE SCIPappendVarCardinality(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var, SCIP_VAR *indvar)
Definition: cons_cardinality.c:3597
SCIP_EXPORT SCIP_Real * SCIPgetWeightsCardinality(SCIP *scip, SCIP_CONS *cons)
Definition: cons_cardinality.c:3703
Definition: struct_var.h:198
type definitions for return codes for SCIP methods
Definition: struct_cons.h:37
type definitions for SCIP's main datastructure
SCIP_EXPORT SCIP_RETCODE SCIPincludeConshdlrCardinality(SCIP *scip)
Definition: cons_cardinality.c:3239
type definitions for problem variables
SCIP_EXPORT SCIP_RETCODE SCIPcreateConsBasicCardinality(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, int cardval, SCIP_VAR **indvars, SCIP_Real *weights)
Definition: cons_cardinality.c:3510
SCIP_EXPORT SCIP_RETCODE SCIPcreateConsCardinality(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, int cardval, SCIP_VAR **indvars, SCIP_Real *weights, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
Definition: cons_cardinality.c:3310
SCIP_EXPORT int SCIPgetCardvalCardinality(SCIP *scip, SCIP_CONS *cons)
Definition: cons_cardinality.c:3680
SCIP_EXPORT int SCIPgetNVarsCardinality(SCIP *scip, SCIP_CONS *cons)
Definition: cons_cardinality.c:3632
common defines and data types used in all packages of SCIP
Definition: objbenders.h:33
type definitions for constraints and constraint handlers