cons_sos2.h
Go to the documentation of this file.
23 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
58 * sequence. Note that it is in principle allowed that a variable appears twice, but it then can be
68 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
77 SCIP_Real* weights, /**< weights determining the variable order, or NULL if natural order should be used */
95 SCIP_Bool stickingatnode /**< should the constraint always be kept at the node where it was added, even
100 /** creates and captures a SOS2 constraint with all constraint flags set to their default values.
105 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
114 SCIP_Real* weights /**< weights determining the variable order, or NULL if natural order should be used */
Definition: struct_scip.h:58
SCIP_EXPORT int SCIPgetNVarsSOS2(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sos2.c:2477
SCIP_EXPORT SCIP_Real * SCIPgetWeightsSOS2(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sos2.c:2527
Definition: struct_var.h:198
SCIP_EXPORT SCIP_RETCODE SCIPcreateConsSOS2(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, 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_sos2.c:2327
type definitions for return codes for SCIP methods
SCIP_EXPORT SCIP_RETCODE SCIPappendVarSOS2(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var)
Definition: cons_sos2.c:2452
Definition: struct_cons.h:37
type definitions for SCIP's main datastructure
SCIP_EXPORT SCIP_RETCODE SCIPcreateConsBasicSOS2(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_Real *weights)
Definition: cons_sos2.c:2410
type definitions for problem variables
SCIP_EXPORT SCIP_RETCODE SCIPaddVarSOS2(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var, SCIP_Real weight)
Definition: cons_sos2.c:2426
SCIP_EXPORT SCIP_RETCODE SCIPincludeConshdlrSOS2(SCIP *scip)
Definition: cons_sos2.c:2272
SCIP_EXPORT SCIP_VAR ** SCIPgetVarsSOS2(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sos2.c:2502
common defines and data types used in all packages of SCIP
Definition: objbenders.h:33
type definitions for constraints and constraint handlers