cons_sos1.h
Go to the documentation of this file.
24 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
60 * variable is nonzero. The special case of two variables arises, for instance, from equilibrium or
71 * @note The constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons().
80 SCIP_Real* weights, /**< weights determining the variable order, or NULL if natural order should be used */
98 SCIP_Bool stickingatnode /**< should the constraint always be kept at the node where it was added, even
104 * in its most basic variant, i. e., with all constraint flags set to their default values, which can be set
112 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
121 SCIP_Real* weights /**< weights determining the variable order, or NULL if natural order should be used */
184 /** returns node of variable in the conflict graph or -1 if variable is not part of the SOS1 conflict graph */
198 /** based on solution values of the variables, fixes variables to zero to turn all SOS1 constraints feasible */
SCIP_EXPORT int SCIPgetNSOS1Vars(SCIP_CONSHDLR *conshdlr)
Definition: cons_sos1.c:10680
SCIP_EXPORT SCIP_RETCODE SCIPmakeSOS1sFeasible(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_SOL *sol, SCIP_Bool *changed, SCIP_Bool *success)
Definition: cons_sos1.c:10782
SCIP_EXPORT SCIP_RETCODE SCIPcreateConsBasicSOS1(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_Real *weights)
Definition: cons_sos1.c:10497
type definitions for miscellaneous datastructures
Definition: struct_scip.h:59
SCIP_EXPORT SCIP_RETCODE SCIPappendVarSOS1(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var)
Definition: cons_sos1.c:10547
SCIP_EXPORT SCIP_Real * SCIPgetWeightsSOS1(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sos1.c:10630
SCIP_EXPORT SCIP_VAR ** SCIPgetVarsSOS1(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sos1.c:10605
Definition: struct_var.h:198
SCIP_EXPORT SCIP_RETCODE SCIPcreateConsSOS1(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_sos1.c:10376
type definitions for return codes for SCIP methods
SCIP_EXPORT int SCIPgetNVarsSOS1(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sos1.c:10580
Definition: struct_sol.h:64
SCIP_EXPORT int SCIPvarGetNodeSOS1(SCIP_CONSHDLR *conshdlr, SCIP_VAR *var)
Definition: cons_sos1.c:10726
Definition: struct_cons.h:37
Definition: struct_cons.h:117
type definitions for SCIP's main datastructure
type definitions for problem variables
SCIP_EXPORT SCIP_Bool SCIPvarIsSOS1(SCIP_CONSHDLR *conshdlr, SCIP_VAR *var)
Definition: cons_sos1.c:10702
SCIP_EXPORT SCIP_RETCODE SCIPaddVarSOS1(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var, SCIP_Real weight)
Definition: cons_sos1.c:10513
SCIP_EXPORT SCIP_RETCODE SCIPincludeConshdlrSOS1(SCIP *scip)
Definition: cons_sos1.c:10161
SCIP_EXPORT SCIP_DIGRAPH * SCIPgetConflictgraphSOS1(SCIP_CONSHDLR *conshdlr)
Definition: cons_sos1.c:10658
type definitions for storing primal CIP solutions
SCIP_EXPORT SCIP_VAR * SCIPnodeGetVarSOS1(SCIP_DIGRAPH *conflictgraph, int node)
Definition: cons_sos1.c:10757
common defines and data types used in all packages of SCIP
Definition: objbenders.h:33
Definition: struct_misc.h:210
type definitions for constraints and constraint handlers