All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Detailed Descriptionconstraint handler for (partitioning/packing) orbitope constraints w.r.t. the full symmetric group The type of constraints of this constraint handler is described in cons_orbitope.h. The details of the method implemented here are described in the following papers. Packing and Partitioning Orbitopes Among other things, this paper describes so-called shifted column inequalities of the following form , where is a so-called shifted column and is a so-called bar. These inequalities can be used to handle symmetry and they are separated in this constraint handler. We use the linear time separation algorithm of the paper. Orbitopal Fixing In this paper a linear time propagation algorithm is described, a variant of which is implemented here. The implemented variant does not run in linear time, but is very fast in practice.
Definition in file cons_orbitope.c. Go to the source code of this file.
Macro Definition Documentation
Definition at line 69 of file cons_orbitope.c. Referenced by SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSHDLRCOPY(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPRINT(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_CONSSEPASOL(), SCIP_DECL_CONSTRANS(), SCIPcreateConsOrbitope(), and SCIPincludeConshdlrOrbitope().
Definition at line 70 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
priority of the constraint handler for separation Definition at line 71 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
priority of the constraint handler for constraint enforcing Definition at line 72 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
priority of the constraint handler for checking feasibility Definition at line 73 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
frequency for separating cuts; zero means to separate only in the root node Definition at line 74 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
frequency for propagating domains; zero means only preprocessing propagation Definition at line 75 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
frequency for using all instead of only the useful constraints in separation, propagation and enforcement, -1 for no eager evaluations, 0 for first only Definition at line 76 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
maximal number of presolving rounds the constraint handler participates in (-1: no limit) Definition at line 78 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
should separation method be delayed, if other separators found cuts? Definition at line 79 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
should propagation method be delayed, if other propagators found reductions? Definition at line 80 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
should presolving method be delayed, if other presolvers found reductions? Definition at line 81 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
should the constraint handler be skipped, if no constraints are available? Definition at line 82 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope().
Definition at line 84 of file cons_orbitope.c. Referenced by SCIPincludeConshdlrOrbitope(). Function Documentation
frees an orbitope constraint data
Definition at line 114 of file cons_orbitope.c. References NULL, SCIP_OKAY, SCIPfreeBlockMemory, and SCIPfreeBlockMemoryArrayNull. Referenced by SCIP_DECL_CONSDELETE().
creates orbitope constraint data
Definition at line 152 of file cons_orbitope.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemory, SCIPallocBlockMemoryArray, SCIPduplicateBlockMemoryArray, SCIPgetTransformedVars(), and SCIPisTransformed(). Referenced by SCIP_DECL_CONSTRANS(), and SCIPcreateConsOrbitope().
copies the variables values from the solution to the constraint data structure
Definition at line 350 of file cons_orbitope.c. References NULL, and SCIPgetSolVal(). Referenced by SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSSEPALP(), and SCIP_DECL_CONSSEPASOL().
compute the dynamic programming table for SC Build up dynamic programming table in order to find SCs with minimum weight. The values of the minimal SCIs are stored in weights. The array cases[i][j] stores which of the cases were applied to get weights[i][j]. Here, 3 means that we have reached the upper limit. We assume that the upper right triangle is fixed to 0. Hence we can perform the computation a bit more efficient.
Definition at line 386 of file cons_orbitope.c. References NULL, SCIP_Real, and SCIPisLT(). Referenced by resolvePropagation(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFOPS(), and separateSCIs().
fix upper right triangle if necessary
Definition at line 481 of file cons_orbitope.c. References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPfixVar(), SCIPvarGetUbGlobal(), and TRUE. Referenced by propagateCons(), SCIP_DECL_CONSENFOPS(), and separateSCIs().
separates shifted column inequalities according to the solution stored in consdata->vals
Definition at line 564 of file cons_orbitope.c. References computeSCTable(), FALSE, fixTriangle(), NULL, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIPaddCut(), SCIPaddVarsToRow(), SCIPcreateEmptyRowCons(), SCIPinfinity(), SCIPisEfficacious(), SCIPisSumEQ(), SCIPreleaseRow(), SCIPsnprintf(), and TRUE. Referenced by SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSSEPALP(), and SCIP_DECL_CONSSEPASOL().
propagation method for a single orbitope constraint
Definition at line 723 of file cons_orbitope.c. References FALSE, fixTriangle(), NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPaddConflictBinvar(), SCIPallocBufferArray, SCIPanalyzeConflictCons(), SCIPconsGetData(), SCIPdebugMessage, SCIPfreeBufferArray, SCIPgetStage(), SCIPinferBinvarCons(), SCIPinitConflictAnalysis(), SCIPinProbing(), SCIPisConflictAnalysisApplicable(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL(), and SCIP_DECL_CONSPROP().
Propagation conflict resolving method of propagator In this function we use that the propagation method above implicitly propagates SCIs, i.e., every fixing can also be gotten via an SCI-fixing. Since the storage of an integer is not enough to store the complete information about the fixing nor a complete shifted column, we have to use the linear time algorithm for SCIs. The inferinfo integer is set as follows:
Definition at line 1092 of file cons_orbitope.c. References computeSCTable(), FALSE, MIN, NULL, SCIP_Bool, SCIP_CALL, SCIP_DIDNOTFIND, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIP_SUCCESS, SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPconsGetData(), SCIPdebugMessage, SCIPsnprintf(), SCIPvarGetLbAtIndex(), and SCIPvarGetUbAtIndex(). Referenced by SCIP_DECL_CONSRESPROP().
copy method for constraint handler plugins (called when SCIP copies plugins) Definition at line 1373 of file cons_orbitope.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetName(), SCIPincludeConshdlrOrbitope(), and TRUE.
frees specific constraint data Definition at line 1389 of file cons_orbitope.c. References consdataFree(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, and SCIPconshdlrGetName().
transforms constraint data into data belonging to the transformed problem Definition at line 1401 of file cons_orbitope.c. References consdataCreate(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_TRANSFORMING, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateCons(), and SCIPgetStage().
separation method of constraint handler for LP solutions Definition at line 1431 of file cons_orbitope.c. References CONSHDLR_NAME, copyValues(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPgetNLPBranchCands(), and separateSCIs().
separation method of constraint handler for arbitrary primal solutions Definition at line 1495 of file cons_orbitope.c. References CONSHDLR_NAME, copyValues(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPdebugMessage, and separateSCIs().
constraint enforcing method of constraint handler for LP solutions Definition at line 1553 of file cons_orbitope.c. References CONSHDLR_NAME, copyValues(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_FEASIBLE, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPgetNLPBranchCands(), and separateSCIs().
constraint enforcing method of constraint handler for pseudo solutions Definition at line 1615 of file cons_orbitope.c. References computeSCTable(), CONSHDLR_NAME, copyValues(), FALSE, fixTriangle(), NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIP_Real, SCIP_REDUCEDDOM, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPisGT(), and SCIPisIntegral().
feasibility check method of constraint handler for integral solutions Definition at line 1721 of file cons_orbitope.c. References computeSCTable(), CONSHDLR_NAME, copyValues(), NULL, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPinfoMessage(), SCIPisFeasIntegral(), SCIPisFeasZero(), SCIPisGT(), and SCIPvarGetName().
domain propagation method of constraint handler Definition at line 1878 of file cons_orbitope.c. References CONSHDLR_NAME, FALSE, NULL, propagateCons(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_REDUCEDDOM, SCIPconsGetName(), SCIPconshdlrGetName(), and SCIPdebugMessage.
presolving method of constraint handler Definition at line 1924 of file cons_orbitope.c. References CONSHDLR_NAME, FALSE, NULL, propagateCons(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_SUCCESS, SCIPconsGetName(), SCIPconshdlrGetName(), and SCIPdebugMessage.
propagation conflict resolving method of constraint handler Definition at line 1972 of file cons_orbitope.c. References NULL, resolvePropagation(), SCIP_CALL, and SCIP_OKAY.
variable rounding lock method of constraint handler Definition at line 1988 of file cons_orbitope.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddVarLocks(), SCIPconsGetData(), SCIPconshdlrGetName(), and SCIPdebugMessage.
constraint display method of constraint handler Definition at line 2027 of file cons_orbitope.c. References CONSHDLR_NAME, NULL, SCIP_OKAY, SCIPconsGetData(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPinfoMessage(), and SCIPvarGetName().
constraint copying method of constraint handler Definition at line 2077 of file cons_orbitope.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBufferArray, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPcreateConsOrbitope(), SCIPdebugMessage, SCIPfreeBufferArray, SCIPgetVarCopy(), and TRUE.
constraint parsing method of constraint handler Definition at line 2143 of file cons_orbitope.c. References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_VERBLEVEL_MINIMAL, SCIPallocBufferArray, SCIPcalcMemGrowSize(), SCIPcreateConsOrbitope(), SCIPfindVar(), SCIPfreeBufferArray, SCIPreallocBufferArray, SCIPverbMessage(), and TRUE.
constraint method of constraint handler which returns the variables (if possible) Definition at line 2266 of file cons_orbitope.c. References FALSE, NULL, SCIP_OKAY, SCIPconsGetData(), and TRUE.
constraint method of constraint handler which returns the number of variables (if possible) Definition at line 2299 of file cons_orbitope.c. References NULL, SCIP_OKAY, SCIPconsGetData(), and TRUE.
creates the handler for orbitope constraints and includes it in SCIP
Definition at line 2320 of file cons_orbitope.c. References CONSHDLR_CHECKPRIORITY, CONSHDLR_DELAYPRESOL, CONSHDLR_DELAYPROP, CONSHDLR_DELAYSEPA, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_MAXPREROUNDS, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, CONSHDLR_PROP_TIMING, CONSHDLR_PROPFREQ, CONSHDLR_SEPAFREQ, CONSHDLR_SEPAPRIORITY, NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeConshdlrBasic(), SCIPsetConshdlrCopy(), SCIPsetConshdlrDelete(), SCIPsetConshdlrGetNVars(), SCIPsetConshdlrGetVars(), SCIPsetConshdlrParse(), SCIPsetConshdlrPresol(), SCIPsetConshdlrPrint(), SCIPsetConshdlrProp(), SCIPsetConshdlrResprop(), SCIPsetConshdlrSepa(), and SCIPsetConshdlrTrans(). Referenced by SCIP_DECL_CONSHDLRCOPY(), and SCIPincludeDefaultPlugins().
creates and captures a orbitope constraint
Definition at line 2361 of file cons_orbitope.c. References consdataCreate(), CONSHDLR_NAME, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIP_VARTYPE_BINARY, SCIPcreateCons(), SCIPerrorMessage, SCIPfindConshdlr(), SCIPinfinity(), SCIPisEQ(), SCIPisInfinity(), SCIPisZero(), SCIPvarGetLbGlobal(), SCIPvarGetObj(), SCIPvarGetType(), and SCIPvarGetUbGlobal(). Referenced by SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSPARSE(), and SCIPcreateConsBasicOrbitope().
creates and captures an orbitope constraint in its most basic variant, i. e., with all constraint flags set to their default values
Definition at line 2462 of file cons_orbitope.c. References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcreateConsOrbitope(), and TRUE. |