cons_orbitope.c
Go to the documentation of this file.
27 * @brief interface for constraint handlers of type partitioning, packing, and full to ensure backwards compatibility
30 * This interface ensures backwards compatibility to be able to add packing, partitioning, and full
34/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
69 SCIP_CALL( SCIPisPackingPartitioningOrbitope(scip, vars, *nrows, ncols, &pprows, &npprows, type) );
71 /* If only some rows are contained in set packing/partitioning constraints, it may still be worth it
72 * to exploit the packing/partitioning structure on these rows, because packing/partitioning orbitopes
73 * are more restrictive than full orbitopes. If at least three rows have this property, we discard
74 * all rows not contained in set packing/partitioning constraints and add the smaller packing sub-orbitope.
129 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
141 SCIP_Bool checkpporbitope, /**< Check if full orbitope constraints can be upgraded to pp-orbitope? */
162 SCIP_Bool stickingatnode /**< should the constraint always be kept at the node where it was added, even
178 SCIP_CALL( SCIPcreateConsOrbitopeFull(scip, cons, name, vars, nrows, ncols, resolveprop, ismodelcons,
179 initial, separate, enforce, check, propagate, local, modifiable, dynamic, removable, stickingatnode) );
191/** creates and captures an orbitope constraint in its most basic variant, i. e., with all constraint flags set to their
196 * @note the constraint gets captured, hence at one point you have to release it using the method SCIPreleaseCons()
208 SCIP_Bool checkpporbitope /**< Check if full orbitope constraints can be upgraded to pp-orbitope? */
SCIP_RETCODE SCIPcreateConsBasicOrbitope(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_VAR ***vars, SCIP_ORBITOPETYPE orbitopetype, int nrows, int ncols, SCIP_Bool resolveprop, SCIP_Bool ismodelcons, SCIP_Bool checkpporbitope)
Definition: cons_orbitope.c:198
SCIP_RETCODE SCIPincludeConshdlrOrbitope(SCIP *scip)
Definition: cons_orbitope.c:116
SCIP_RETCODE SCIPcreateConsOrbitope(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_VAR ***vars, SCIP_ORBITOPETYPE orbitopetype, int nrows, int ncols, SCIP_Bool resolveprop, SCIP_Bool ismodelcons, SCIP_Bool checkpporbitope, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
Definition: cons_orbitope.c:131
static SCIP_RETCODE strengthenOrbitopeConstraint(SCIP *scip, SCIP_VAR ***vars, int *nrows, int ncols, SCIP_ORBITOPETYPE *type)
Definition: cons_orbitope.c:49
interface for constraint handlers of type partitioning, packing, and full
constraint handler for full orbitope constraints w.r.t. the full symmetric group
constraint handler for partitioning/packing orbitope constraints w.r.t. the full symmetric group
SCIP_RETCODE SCIPcreateConsOrbitopePP(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_VAR ***vars, SCIP_ORBITOPETYPE orbitopetype, int nrows, int ncols, SCIP_Bool resolveprop, SCIP_Bool ismodelcons, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
Definition: cons_orbitope_pp.c:2700
SCIP_RETCODE SCIPcreateConsOrbitopeFull(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_VAR ***vars, int nrows, int ncols, SCIP_Bool resolveprop, SCIP_Bool ismodelcons, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
Definition: cons_orbitope_full.c:1860
SCIP_RETCODE SCIPincludeConshdlrOrbitopeFull(SCIP *scip)
Definition: cons_orbitope_full.c:1811
SCIP_RETCODE SCIPincludeConshdlrOrbitopePP(SCIP *scip)
Definition: cons_orbitope_pp.c:2648
SCIP_RETCODE SCIPisPackingPartitioningOrbitope(SCIP *scip, SCIP_VAR ***vars, int nrows, int ncols, SCIP_Bool **pprows, int *npprows, SCIP_ORBITOPETYPE *type)
Definition: symmetry.c:1193
memory allocation routines
Definition: multiprecision.hpp:66
static SCIP_RETCODE separate(SCIP *scip, SCIP_SEPA *sepa, SCIP_SOL *sol, SCIP_RESULT *result)
Main separation function.
Definition: sepa_flower.c:1221
Definition: struct_cons.h:47
Definition: struct_var.h:262
Definition: struct_scip.h:72
methods for handling symmetries
type definitions for symmetry computations