All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Detailed DescriptionConstraint handler for the set partitioning / packing / covering constraints . Definition in file cons_setppc.c. #include <assert.h> #include <string.h> #include <limits.h> #include <stdio.h> #include <ctype.h> #include "scip/cons_setppc.h" #include "scip/cons_linear.h" #include "scip/cons_quadratic.h" #include "scip/pub_misc.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 36 of file cons_setppc.c. Referenced by createConsSetppc(), enforcePseudo(), performVarDeletions(), processFixings(), SCIP_DECL_CONSACTIVE(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSFREE(), SCIP_DECL_CONSHDLRCOPY(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_CONSSEPASOL(), SCIP_DECL_CONSTRANS(), SCIPaddCoefSetppc(), SCIPgetDualfarkasSetppc(), SCIPgetDualsolSetppc(), SCIPgetNFixedonesSetppc(), SCIPgetNFixedzerosSetppc(), SCIPgetNVarsSetppc(), SCIPgetRowSetppc(), SCIPgetTypeSetppc(), SCIPgetVarsSetppc(), SCIPincludeConshdlrSetppc(), and separateCons().
Definition at line 37 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
priority of the constraint handler for separation Definition at line 38 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
priority of the constraint handler for constraint enforcing Definition at line 39 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
priority of the constraint handler for checking feasibility Definition at line 40 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
frequency for separating cuts; zero means to separate only in the root node Definition at line 41 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
frequency for propagating domains; zero means only preprocessing propagation Definition at line 42 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
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 43 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
maximal number of presolving rounds the constraint handler participates in (-1: no limit) Definition at line 45 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
should separation method be delayed, if other separators found cuts? Definition at line 46 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
should propagation method be delayed, if other propagators found reductions? Definition at line 47 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
should presolving method be delayed, if other presolvers found reductions? Definition at line 48 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
should the constraint handler be skipped, if no constraints are available? Definition at line 49 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
Definition at line 51 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
priority of the constraint handler for upgrading of linear constraints Definition at line 53 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
priority of the constraint handler for upgrading of linear constraints Definition at line 54 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
Definition at line 56 of file cons_setppc.c. Referenced by SCIP_DECL_EVENTEXEC(), and SCIPincludeConshdlrSetppc().
Definition at line 57 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
Definition at line 59 of file cons_setppc.c. Referenced by SCIP_DECL_CONFLICTEXEC(), and SCIPincludeConshdlrSetppc().
Definition at line 60 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
Definition at line 61 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
should pairwise constraint comparison be performed in presolving? Definition at line 63 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
minimal size of hash table in setppc constraint tables Definition at line 65 of file cons_setppc.c. Referenced by detectRedundantConstraints().
should hash table be used for detecting redundant constraints in advance Definition at line 66 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
number for minimal pairwise presolving comparisons Definition at line 67 of file cons_setppc.c. Referenced by SCIP_DECL_CONSPRESOL().
minimal gain per minimal pairwise presolving comparisons to repeat pairwise comparison round Definition at line 68 of file cons_setppc.c. Referenced by SCIP_DECL_CONSPRESOL().
number of children created in pseudo branching (0: disable branching) Definition at line 76 of file cons_setppc.c. Referenced by conshdlrdataCreate(), and SCIPincludeConshdlrSetppc().
should dual presolving steps be performed? Definition at line 77 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
should we try to lift variables into other clique constraints, fix variables, aggregate them, and also shrink the amount of variables in clique constraints Definition at line 79 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
should we try to generate extra clique constraint out of all binary variables to hopefully fasten the detection of redundant clique constraints Definition at line 83 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc().
should we try to shrink the number of variables in a clique constraints, by replacing more than one variable by only one Definition at line 86 of file cons_setppc.c. Referenced by SCIPincludeConshdlrSetppc(). Function Documentationcompares two active constraints of type set partitioning or set packing such that a "-1" is return if
Definition at line 164 of file cons_setppc.c. References NULL, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetData(), and SCIPconsIsActive(). Referenced by SCIP_DECL_SORTPTRCOMP().
sort constraints first after type (partitioning before packing before covering) and second after number of variables such that the partitioning constraints have increasing number of variables and the packing constraints have decreasing number of variables Definition at line 204 of file cons_setppc.c. References setppcCompare(). compares two setppc constraints such that a "-1" is return if the first constraint is active and
Definition at line 220 of file cons_setppc.c. References NULL, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetData(), and SCIPconsIsDeleted(). Referenced by SCIP_DECL_SORTPTRCOMP().
sort constraints first after type (partitioning before packing before covering) and second after number of variables such that the partitioning constraints have increasing number of variables and the packing constraints have decreasing number of variables Definition at line 267 of file cons_setppc.c. References setppcCompare2().
installs rounding locks for the given variable in the given setppc constraint
Definition at line 275 of file cons_setppc.c. References FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetData(), SCIPerrorMessage, SCIPlockVarCons(), and TRUE. Referenced by addCoef(), and setSetppcType().
removes rounding locks for the given variable in the given setppc constraint
Definition at line 310 of file cons_setppc.c. References FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetData(), SCIPerrorMessage, SCIPunlockVarCons(), and TRUE. Referenced by delCoefPos(), and setSetppcType().
creates constraint handler data for set partitioning / packing / covering constraint handler
Definition at line 345 of file cons_setppc.c. References DEFAULT_NPSEUDOBRANCHES, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, and SCIPcreateIntarray(). Referenced by SCIPincludeConshdlrSetppc().
frees constraint handler data for set partitioning / packing / covering constraint handler
Definition at line 370 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeIntarray(), and SCIPfreeMemory. Referenced by SCIP_DECL_CONSFREE().
ensures, that the vars array can store at least num entries
Definition at line 506 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), and SCIPreallocBlockMemoryArray. Referenced by addCoef().
creates a set partitioning / packing / covering constraint data object
Definition at line 530 of file cons_setppc.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_VARSTATUS_MULTAGGR, SCIPallocBlockMemory, SCIPcaptureVar(), SCIPduplicateBlockMemoryArray, SCIPgetTransformedVars(), SCIPisTransformed(), SCIPvarGetProbvar(), SCIPvarGetStatus(), and TRUE. Referenced by consdataCreateTransformed(), and createConsSetppc().
creates a transformed set partitioning / packing / covering constraint data object
Definition at line 602 of file cons_setppc.c. References consdataCreate(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPgetTransformedVars(). Referenced by createConsSetppc(), and SCIP_DECL_CONSTRANS().
frees a set partitioning / packing / covering constraint data
Definition at line 624 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemory, SCIPfreeBlockMemoryArrayNull, SCIPreleaseRow(), and SCIPreleaseVar(). Referenced by SCIP_DECL_CONSDELETE().
prints set partitioning / packing / covering constraint to file stream
Definition at line 655 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_ERROR, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPerrorMessage, SCIPinfoMessage(), SCIPwriteVarsLinearsum(), and TRUE. Referenced by SCIP_DECL_CONSPRINT().
returns the signature bitmask for the given variable
Definition at line 692 of file cons_setppc.c. References SCIP_Longint, and SCIPvarGetIndex(). Referenced by addCoef(), and consdataGetSignature().
returns the bit signature of the given constraint data
Definition at line 704 of file cons_setppc.c. References getVarSignature(), NULL, and TRUE. Referenced by removeRedundantConstraints().
sorts setppc constraint's variables by non-decreasing variable index
Definition at line 725 of file cons_setppc.c. References NULL, SCIPsortPtr(), SCIPvarCompare(), and TRUE. Referenced by removeRedundantConstraints(), and SCIP_DECL_HASHKEYVAL().
changes the type of a setppc constraint
Definition at line 757 of file cons_setppc.c. References lockRounding(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconsIsLocked(), SCIPdebugMessage, SCIPisTransformed(), TRUE, and unlockRounding(). Referenced by detectRedundantConstraints(), processContainedCons(), removeDoubleAndSingletonsAndPerformDualpresolve(), and removeRedundantConstraints().
catches events for variable at given position
Definition at line 828 of file cons_setppc.c. References FALSE, NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDCHANGED, SCIP_EVENTTYPE_VARDELETED, SCIP_EVENTTYPE_VARFIXED, SCIP_OKAY, SCIPcatchVarEvent(), SCIPconsGetData(), SCIPconsIsActive(), SCIPisEQ(), SCIPmarkConsPropagate(), SCIPvarGetLbLocal(), and SCIPvarGetUbLocal(). Referenced by addCoef(), and catchAllEvents().
drops events for variable at given position
Definition at line 892 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDCHANGED, SCIP_EVENTTYPE_VARDELETED, SCIP_EVENTTYPE_VARFIXED, SCIP_OKAY, SCIPconsGetData(), SCIPdropVarEvent(), SCIPisEQ(), SCIPvarGetLbLocal(), and SCIPvarGetUbLocal(). Referenced by delCoefPos(), and dropAllEvents().
catches bound change events for all variables in transformed setppc constraint
Definition at line 928 of file cons_setppc.c. References catchEvent(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPconsGetData(). Referenced by createConsSetppc(), and SCIP_DECL_CONSTRANS().
drops bound change events for all variables in transformed setppc constraint
Definition at line 951 of file cons_setppc.c. References dropEvent(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPconsGetData(). Referenced by SCIP_DECL_CONSDELETE().
adds coefficient in setppc constraint
Definition at line 974 of file cons_setppc.c. References catchEvent(), consdataEnsureVarsSize(), FALSE, getVarSignature(), lockRounding(), NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_VARSTATUS_MULTAGGR, SCIPaddVarToRow(), SCIPcaptureVar(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetData(), SCIPconsIsActive(), SCIPconsIsTransformed(), SCIPgetTransformedVar(), SCIPvarGetProbvar(), SCIPvarGetStatus(), SCIPvarIsTransformed(), and TRUE. Referenced by addExtraCliques(), applyFixings(), checkForOverlapping(), liftCliqueVariables(), and SCIPaddCoefSetppc().
deletes coefficient at given position from setppc constraint data
Definition at line 1055 of file cons_setppc.c. References dropEvent(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddVarToRow(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetData(), SCIPconsIsTransformed(), SCIPreleaseVar(), SCIPvarIsTransformed(), TRUE, and unlockRounding(). Referenced by applyFixings(), checkForOverlapping(), mergeMultiples(), performVarDeletions(), and removeDoubleAndSingletonsAndPerformDualpresolve().
in case a part (more than one variable) in the setppc constraint is independent of every else (is locked only by this constraint), we can perform dual reductions; (1) set covering - fix all independant variables with negative object coefficient to one - fix all remaining independant variables to zero (i) all variables are independent and the constraint is not modifiable - fix the variable with the smallest object coefficient to one (ii) a variable x has exactly 0 uplocks and arbitrary downlocks and a variable y has exactly 1 downlock and arbitrary uplocks and obj(x) <= obj(y) and obj(y) >= 0
(2) set partitioning (i) all variables are independent and the constraint is not modifiable - fix the variable with the smallest object coefficient to one - fix all remaining independant variables to zero (ii) a variable x has exactly 1 uplock and arbitrary downlocks and a variable y has exactly 1 downlock and arbitrary uplocks and obj(x) <= obj(y)
(3) set packing (i) all variables are independent and the constraint is not modifiable - fix the variable with the smallest object coefficient to one if the object coefficient is negative or zero - fix all remaining independant variables to zero (ii) a variable x has exactly 1 uplock and arbitrary downlocks and a variable y has exactly 0 downlocks and arbitrary uplocks and obj(x) <= obj(y)
Note: the following dual reduction for set covering and set packing constraints is already performed by the presolver "dualfix" (1) in case of a set covering constraint the following dual reduction can be performed:
Note: all dual reduction (ii) could also be performed by the "domcol" presolver, but cause the pairwise comparison of columns is only done heuristically (and here it should be even cheaper) we perform them here (too)
Definition at line 1172 of file cons_setppc.c. References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_INVALID, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIP_SUCCESS, SCIPABORT, SCIPconsGetData(), SCIPconsIsActive(), SCIPconsIsChecked(), SCIPconsIsModifiable(), SCIPdebug, SCIPdebugMessage, SCIPdelCons(), SCIPerrorMessage, SCIPfixVar(), SCIPinfinity(), SCIPinfoMessage(), SCIPprintCons(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), SCIPvarGetObj(), SCIPvarGetProbvarBinary(), SCIPvarGetUbGlobal(), and SCIPvarIsActive(). Referenced by SCIP_DECL_CONSPRESOL().
find pairs of negated variables in constraint: partitioning/packing: all other variables must be zero, constraint is redundant covering: constraint is redundant find sets of equal variables in constraint: partitioning/packing: variable must be zero covering: multiple entries of variable can be replaced by single entry
Definition at line 1457 of file cons_setppc.c. References delCoefPos(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_NEGATED, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsDeleted(), SCIPdebugMessage, SCIPdelCons(), SCIPfixVar(), SCIPsortPtr(), SCIPvarGetName(), SCIPvarGetNegatedVar(), SCIPvarGetStatus(), SCIPvarIsActive(), SCIPvarIsBinary(), and TRUE. Referenced by addExtraCliques(), collectCliqueConss(), removeDoubleAndSingletonsAndPerformDualpresolve(), and SCIP_DECL_CONSPRESOL().
deletes all zero-fixed variables and replace aggregated variables
Definition at line 1601 of file cons_setppc.c. References addCoef(), delCoefPos(), FALSE, MAX, NULL, SCIP_Bool, SCIP_CALL, SCIP_ERROR, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIPaddCons(), SCIPallocBufferArray, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsAdded(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsLinear(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPerrorMessage, SCIPfixVar(), SCIPfreeBufferArray, SCIPgetBinvarRepresentative(), SCIPgetProbvarLinearSum(), SCIPinfinity(), SCIPisEQ(), SCIPisFeasEQ(), SCIPisZero(), SCIPreallocBufferArray, SCIPreleaseCons(), SCIPsnprintf(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetNegatedVar(), SCIPvarGetNegationVar(), SCIPvarGetProbvar(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), SCIPvarIsActive(), SCIPvarIsBinary(), SCIPwarningMessage(), and TRUE. Referenced by addCliques(), collectCliqueConss(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONSEXITPRE(), and SCIP_DECL_CONSPRESOL().
analyzes conflicting assignment on given constraint where all of the variables where assigned to zero, and adds conflict constraint to problem
Definition at line 1930 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PARTITIONING, SCIP_STAGE_SOLVING, SCIPaddConflictBinvar(), SCIPanalyzeConflictCons(), SCIPconsGetData(), SCIPgetStage(), SCIPinitConflictAnalysis(), SCIPinProbing(), and SCIPisConflictAnalysisApplicable(). Referenced by processFixings().
analyzes conflicting assignment on given constraint where two of the variables where assigned to one, and adds conflict constraint to problem
Definition at line 1964 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIP_STAGE_SOLVING, SCIPaddConflictBinvar(), SCIPanalyzeConflictCons(), SCIPconsGetData(), SCIPgetStage(), SCIPinitConflictAnalysis(), SCIPinProbing(), SCIPisConflictAnalysisApplicable(), and SCIPvarGetLbLocal(). Referenced by processFixings().
checks constraint for violation only looking at the fixed variables, applies further fixings if possible
Definition at line 2003 of file cons_setppc.c. References analyzeConflictOne(), analyzeConflictZero(), CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdelConsLocal(), SCIPinferBinvarCons(), SCIPisFeasEQ(), SCIPisFeasZero(), SCIPresetConsAge(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), and TRUE. Referenced by collectCliqueConss(), enforcePseudo(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONSPROP(), and separateCons().
checks constraint for violation, returns TRUE iff constraint is feasible
Definition at line 2235 of file cons_setppc.c. References FALSE, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPABORT, SCIPerrorMessage, SCIPfeastol(), SCIPgetSolVal(), SCIPisFeasEQ(), SCIPisFeasGE(), SCIPisFeasLE(), and SCIPvarIsBinary(). Referenced by enforcePseudo(), SCIP_DECL_CONSCHECK(), and separateCons().
creates an LP row in a set partitioning / packing / covering constraint data object
Definition at line 2280 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPaddVarsToRowSameCoef(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsRemovable(), SCIPcreateEmptyRowCons(), SCIPerrorMessage, and SCIPinfinity(). Referenced by addCut().
adds setppc constraint as cut to the LP
Definition at line 2322 of file cons_setppc.c. References createRow(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddCut(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, and SCIProwIsInLP(). Referenced by SCIP_DECL_CONSINITLP(), and separateCons().
checks constraint for violation, and adds it as a cut if possible
Definition at line 2356 of file cons_setppc.c. References addCut(), checkCons(), CONSHDLR_NAME, FALSE, NULL, processFixings(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPgetRowLPFeasibility(), SCIPincConsAge(), SCIPisFeasNegative(), SCIPresetConsAge(), SCIProwIsInLP(), and TRUE. Referenced by SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSSEPALP(), and SCIP_DECL_CONSSEPASOL().
enforces the pseudo solution on the given constraint
Definition at line 2441 of file cons_setppc.c. References checkCons(), CONSHDLR_NAME, NULL, processFixings(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPhasCurrentNodeLP(), SCIPincConsAge(), SCIPresetConsAge(), and TRUE. Referenced by SCIP_DECL_CONSENFOPS().
gets the key of the given element Definition at line 2502 of file cons_setppc.c.
returns TRUE iff both keys are equal; two constraints are equal if they have the same variables Definition at line 2510 of file cons_setppc.c. References FALSE, NULL, SCIP_Bool, SCIPconsGetData(), SCIPvarCompare(), and TRUE.
returns the hash value of the key Definition at line 2553 of file cons_setppc.c. References consdataSort(), NULL, SCIPconsGetData(), and SCIPvarGetIndex().
add extra clique-constraints resulting from a given cliquepartition to SCIP
Definition at line 2586 of file cons_setppc.c. References addCoef(), FALSE, mergeMultiples(), NULL, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPaddCons(), SCIPconsGetData(), SCIPconsIsDeleted(), SCIPcreateConsSetpack(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPreleaseCons(), SCIPsnprintf(), and TRUE. Referenced by preprocessCliques().
start to collect setpartitioning and setpacking constraints, and try to remove fixed variables and merged these constraints
Definition at line 2706 of file cons_setppc.c. References applyFixings(), mergeMultiples(), NULL, processFixings(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetData(), SCIPconsIsActive(), SCIPconsIsDeleted(), and SCIPconsIsModifiable(). Referenced by preprocessCliques().
creating all necessary data in array structure, collect all clique constraint variables and occurances,
Definition at line 2794 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPallocBufferArray, SCIPcalcMemGrowSize(), SCIPconsGetData(), SCIPconsIsActive(), SCIPhashmapExists(), SCIPhashmapGetImage(), SCIPhashmapInsert(), SCIPreallocBufferArray, SCIPvarGetLbLocal(), SCIPvarGetNegatedVar(), SCIPvarGetNegationVar(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), SCIPvarGetUbLocal(), SCIPvarIsActive(), and SCIPvarIsNegated(). Referenced by preprocessCliques().
correct clique data due to an aggregation
Definition at line 2901 of file cons_setppc.c. References FALSE, NULL, SCIP_Bool, SCIPhashmapGetImage(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and TRUE. Referenced by checkForOverlapping().
Definition at line 2943 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBufferArray, SCIPcalcMemGrowSize(), SCIPhashmapExists(), SCIPhashmapGetImage(), SCIPhashmapInsert(), SCIPreallocBufferArray, SCIPsortedvecInsertDownPtr(), SCIPvarGetLbLocal(), SCIPvarGetNegatedVar(), SCIPvarGetUbLocal(), SCIPvarIsActive(), and SCIPvarIsNegated(). Referenced by checkForOverlapping(), and liftCliqueVariables().
check if constraint is already redundant or infeasible due to fixings, fix or aggregate left over variables if possible
Definition at line 3012 of file cons_setppc.c. References BMSclearMemoryArray, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPaggregateVars(), SCIPcalcMemGrowSize(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconsIsActive(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdelCons(), SCIPdoNotAggr(), SCIPfixVar(), SCIPreallocBufferArray, SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), and TRUE. Referenced by checkForOverlapping(), preprocessCliques(), and SCIP_DECL_CONSPRESOL().
check for overlapping constraint
Definition at line 3355 of file cons_setppc.c. References addCliqueDataEntry(), addCoef(), BMSclearMemoryArray, delCoefPos(), deleteCliqueDataEntry(), FALSE, NULL, presolvePropagateCons(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIP_VARSTATUS_NEGATED, SCIPcalcMemGrowSize(), SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsActive(), SCIPdebugMessage, SCIPdelCons(), SCIPdoNotAggr(), SCIPfixVar(), SCIPgetNegatedVar(), SCIPreallocBufferArray, SCIPsortDownPtr(), SCIPupdateConsFlags(), SCIPvarGetIndex(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), SCIPvarIsActive(), and TRUE. Referenced by preprocessCliques().
try to lift variables to given constraint
Definition at line 4221 of file cons_setppc.c. References addCliqueDataEntry(), addCoef(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_PARTITIONING, SCIP_VARSTATUS_NEGATED, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsActive(), SCIPdebugMessage, SCIPdelCons(), SCIPfixVar(), SCIPhashmapExists(), SCIPhaveVarsCommonClique(), SCIPreallocBufferArray, SCIPvarCompareActiveAndNegated(), SCIPvarGetIndex(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), SCIPvarIsActive(), SCIPvarsHaveCommonClique(), and TRUE. Referenced by preprocessCliques().
perform all collected aggregations
Definition at line 4695 of file cons_setppc.c. References NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPaggregateVars(), SCIPdebugMessage, and SCIPvarGetName(). Referenced by preprocessCliques().
check whether we can combine or grow cliques so some constraints become redundant or we can fix variables
Definition at line 4776 of file cons_setppc.c. References addExtraCliques(), BMSclearMemoryArray, checkForOverlapping(), collectCliqueConss(), collectCliqueData(), FALSE, liftCliqueVariables(), MAX, MIN, NULL, performAggregations(), presolvePropagateCons(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_PARTITIONING, SCIP_VARSTATUS_NEGATED, SCIPallocBufferArray, SCIPblkmem(), SCIPcalcCliquePartition(), SCIPcalcHashtableSize(), SCIPconsGetData(), SCIPconsIsActive(), SCIPdoNotAggr(), SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPfreeBufferArrayNull, SCIPgetNBinVars(), SCIPgetNVars(), SCIPgetVars(), SCIPhashmapCreate(), SCIPhashmapExists(), SCIPhashmapFree(), SCIPhashmapGetImage(), SCIPisStopped(), SCIPpermuteArray(), SCIPreallocBufferArray, SCIPsortDownPtr(), SCIPsortedvecFindDownPtr(), SCIPvarGetLbLocal(), SCIPvarGetNegatedVar(), SCIPvarGetNegationVar(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), SCIPvarIsActive(), SCIPvarIsNegated(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
add cliques to SCIP
Definition at line 5227 of file cons_setppc.c. References applyFixings(), FALSE, NULL, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPaddClique(), SCIPaddVarImplication(), SCIPconsGetData(), SCIPconsIsActive(), SCIPconsIsDeleted(), SCIPconsIsModifiable(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
perform multi-aggregation on variables resulting from a set-partitioning/-packing constraint
Definition at line 5309 of file cons_setppc.c. References NULL, scalars, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaggregateVars(), SCIPallocBufferArray, SCIPdebugMessage, SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPmultiaggregateVar(), SCIPvarGetName(), SCIPvarGetNLocksDown(), and SCIPvarGetNLocksUp(). Referenced by removeDoubleAndSingletonsAndPerformDualpresolve().
determine singleton variables in set-partitioning/-packing constraints, or doubleton variables (active and negated) in any combination of set-partitioning and set-packing constraints we can multi-aggregate the variable and either change the set-partitioning constraint to a set-packing constraint or even delete it
we can also aggregate a variable in a set-packing constraint with only two variables when the uplocks are equal to one and then delete this constraint
x + y + z = 1 ~x + u + v <=/= 1 ~x + w <= 1
Definition at line 5412 of file cons_setppc.c. References applyFixings(), BMSclearMemoryArray, delCoefPos(), FALSE, mergeMultiples(), multiAggregateBinvar(), NULL, processFixings(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_NEGATED, SCIP_VARTYPE_CONTINUOUS, SCIPaggregateVars(), SCIPallocBufferArray, SCIPblkmem(), SCIPcalcHashtableSize(), SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsChecked(), SCIPconsIsDeleted(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPdoNotAggr(), SCIPdoNotMultaggr(), SCIPduplicateBufferArray, SCIPfixVar(), SCIPfreeBufferArray, SCIPgetNBinVars(), SCIPgetNContVars(), SCIPgetNImplVars(), SCIPgetNIntVars(), SCIPgetNVars(), SCIPgetVars(), SCIPhashmapCreate(), SCIPhashmapExists(), SCIPhashmapFree(), SCIPhashmapGetImage(), SCIPhashmapInsert(), SCIPhashmapRemove(), SCIPisNegative(), SCIPsortPtr(), SCIPvarGetAggregatedObj(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetNegatedVar(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), SCIPvarGetObj(), SCIPvarGetStatus(), SCIPvarGetType(), SCIPvarIsBinary(), setSetppcType(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
compares each constraint with all other constraints for possible redundancy and removes or changes constraint accordingly; in contrast to removeRedundantConstraints(), it uses a hash table
Definition at line 6152 of file cons_setppc.c. References HASHSIZE_SETPPCCONS, MAX, NULL, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_PARTITIONING, SCIPcalcHashtableSize(), SCIPconsGetData(), SCIPconsGetName(), SCIPconsGetPos(), SCIPconsIsActive(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPhashtableCreate(), SCIPhashtableFree(), SCIPhashtableInsert(), SCIPhashtableRetrieve(), SCIPupdateConsFlags(), and setSetppcType(). Referenced by SCIP_DECL_CONSPRESOL().
removes the redundant second constraint and updates the flags of the first one
Definition at line 6260 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetName(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), and SCIPupdateConsFlags(). Referenced by processContainedCons(), and removeRedundantConstraints().
for cons0 contained in cons1, fixes variables of cons1 that are not in cons0 to zero
Definition at line 6286 of file cons_setppc.c. References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPdebugMessage, SCIPfixVar(), SCIPvarGetIndex(), and SCIPvarGetName(). Referenced by processContainedCons().
applies reductions for cons0 being contained in cons1
Definition at line 6358 of file cons_setppc.c. References FALSE, fixAdditionalVars(), NULL, removeRedundantCons(), SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetData(), SCIPconsGetName(), SCIPerrorMessage, and setSetppcType(). Referenced by removeRedundantConstraints().
deletes redundant constraints
Definition at line 6474 of file cons_setppc.c. References consdataGetSignature(), consdataSort(), FALSE, NULL, processContainedCons(), removeRedundantCons(), SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsActive(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPvarGetIndex(), and setSetppcType(). Referenced by SCIP_DECL_CONSPRESOL().
Definition at line 6646 of file cons_setppc.c. References CONSHDLR_NAME, delCoefPos(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconshdlrGetName(), and SCIPvarIsDeleted(). Referenced by SCIP_DECL_CONSDELVARS().
creates and captures a set partitioning / packing / covering constraint
Definition at line 6695 of file cons_setppc.c. References catchAllEvents(), consdataCreate(), consdataCreateTransformed(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_SETPPCTYPE_PARTITIONING, SCIP_STAGE_PROBLEM, SCIPconshdlrGetData(), SCIPcreateCons(), SCIPerrorMessage, SCIPfindConshdlr(), SCIPgetStage(), and SCIPisTransformed(). Referenced by createNormalizedSetppc(), SCIPcreateConsSetcover(), SCIPcreateConsSetpack(), and SCIPcreateConsSetpart().
creates and captures a normalized (with all coefficients +1) setppc constraint
Definition at line 6780 of file cons_setppc.c. References createConsSetppc(), NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBufferArray, SCIPfreeBufferArray, and SCIPgetNegatedVar(). Referenced by SCIP_DECL_LINCONSUPGD().
Definition at line 6847 of file cons_setppc.c. References createNormalizedSetppc(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPdebugMessage, SCIPisEQ(), and SCIPisInfinity().
tries to upgrade a quadratic constraint to a setpacking constraint Definition at line 6928 of file cons_setppc.c. References SCIP_BilinTerm::coef, SCIP_QuadVarTerm::lincoef, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsSetpack(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPgetBilinTermsQuadratic(), SCIPgetLhsQuadratic(), SCIPgetNBilinTermsQuadratic(), SCIPgetNegatedVar(), SCIPgetNLinearVarsQuadratic(), SCIPgetNQuadVarTermsQuadratic(), SCIPgetQuadVarTermsQuadratic(), SCIPgetRhsQuadratic(), SCIPisEQ(), SCIPisInfinity(), SCIPisZero(), SCIPvarGetType(), SCIP_QuadVarTerm::sqrcoef, SCIP_QuadVarTerm::var, SCIP_BilinTerm::var1, and SCIP_BilinTerm::var2.
copy method for constraint handler plugins (called when SCIP copies plugins) Definition at line 7043 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetName(), SCIPincludeConshdlrSetppc(), and TRUE.
destructor of constraint handler to free constraint handler data (called when SCIP is exiting) Definition at line 7059 of file cons_setppc.c. References CONSHDLR_NAME, conshdlrdataFree(), NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), and SCIPconshdlrSetData().
initialization method of constraint handler (called after problem was transformed) Definition at line 7081 of file cons_setppc.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), and TRUE.
presolving deinitialization method of constraint handler (called after presolving has been finished) Definition at line 7108 of file cons_setppc.c. References applyFixings(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPconsIsDeleted().
solving process deinitialization method of constraint handler (called before branch and bound process data is freed) Definition at line 7129 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), and SCIPreleaseRow().
frees specific constraint data Definition at line 7152 of file cons_setppc.c. References consdataFree(), CONSHDLR_NAME, dropAllEvents(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_PARTITIONING, SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPisTransformed(), and SCIPvarIsTransformed().
transforms constraint data into data belonging to the transformed problem Definition at line 7188 of file cons_setppc.c. References catchAllEvents(), consdataCreateTransformed(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_PARTITIONING, SCIP_STAGE_TRANSFORMING, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateCons(), and SCIPgetStage().
LP initialization method of constraint handler (called before the initial LP relaxation at a node is solved) Definition at line 7237 of file cons_setppc.c. References addCut(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, and SCIPconsIsInitial().
separation method of constraint handler for LP solutions Definition at line 7255 of file cons_setppc.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIPconshdlrGetName(), SCIPdebugMessage, and separateCons().
separation method of constraint handler for arbitrary primal solutions Definition at line 7298 of file cons_setppc.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIPconshdlrGetName(), SCIPdebugMessage, and separateCons().
constraint enforcing method of constraint handler for LP solutions Definition at line 7650 of file cons_setppc.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_FEASIBLE, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIPconshdlrGetName(), SCIPdebugMessage, and separateCons().
constraint enforcing method of constraint handler for pseudo solutions Definition at line 7708 of file cons_setppc.c. References CONSHDLR_NAME, enforcePseudo(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTRUN, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SOLVELP, SCIPconshdlrGetName(), and SCIPdebugMessage.
feasibility check method of constraint handler for integral solutions Definition at line 7770 of file cons_setppc.c. References checkCons(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconshdlrGetName(), SCIPgetSolVal(), SCIPinfoMessage(), SCIPprintCons(), SCIProwIsInLP(), and SCIPvarIsBinary().
domain propagation method of constraint handler Definition at line 7822 of file cons_setppc.c. References CONSHDLR_NAME, FALSE, NULL, processFixings(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_STAGE_INITSOLVE, SCIPconsGetData(), SCIPconshdlrGetName(), SCIPdebugMessage, and SCIPgetStage().
presolving method of constraint handler Definition at line 7873 of file cons_setppc.c. References addCliques(), applyFixings(), CONSHDLR_NAME, detectRedundantConstraints(), dualPresolving(), FALSE, mergeMultiples(), MIN, MINGAINPERNMINCOMPARISONS, NMINCOMPARISONS, NULL, preprocessCliques(), presolvePropagateCons(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeRedundantConstraints(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DELAYED, SCIP_DIDNOTFIND, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_SUCCESS, SCIPblkmem(), SCIPconsGetData(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconsIsActive(), SCIPconsIsDeleted(), SCIPconsIsModifiable(), SCIPdoNotAggr(), SCIPdoNotMultaggr(), SCIPgetNCliques(), SCIPgetNFixedVars(), SCIPgetNImplications(), SCIPgetNRuns(), SCIPisPresolveFinished(), SCIPisStopped(), and TRUE.
propagation conflict resolving method of constraint handler Definition at line 8161 of file cons_setppc.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PARTITIONING, SCIP_SUCCESS, SCIPaddConflictBinvar(), SCIPconsGetData(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPvarGetLbAtIndex(), SCIPvarGetUbAtIndex(), and TRUE.
variable rounding lock method of constraint handler Definition at line 8243 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPaddVarLocks(), SCIPconsGetData(), and SCIPerrorMessage.
constraint activation notification method of constraint handler Definition at line 8283 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_TRANSFORMING, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconsIsTransformed(), SCIPdebugMessage, SCIPgetStage(), and SCIPmarkConsPropagate().
constraint deactivation notification method of constraint handler variable deletion method of constraint handler Definition at line 8333 of file cons_setppc.c. References NULL, performVarDeletions(), SCIP_CALL, and SCIP_OKAY.
constraint display method of constraint handler Definition at line 8351 of file cons_setppc.c. References consdataPrint(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPconsGetData().
constraint copying method of constraint handler Definition at line 8365 of file cons_setppc.c. References NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetName(), SCIPcopyConsLinear(), SCIPerrorMessage, SCIPgetNVarsSetppc(), SCIPgetTypeSetppc(), SCIPgetVarsSetppc(), and SCIPinfinity().
constraint parsing method of constraint handler Definition at line 8416 of file cons_setppc.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VERBLEVEL_MINIMAL, SCIPallocBufferArray, SCIPcreateConsSetcover(), SCIPcreateConsSetpack(), SCIPcreateConsSetpart(), SCIPerrorMessage, SCIPfreeBufferArray, SCIPfreeBufferArrayNull, SCIPparseVarsLinearsum(), SCIPreallocBufferArray, SCIPverbMessage(), and TRUE.
constraint method of constraint handler which returns the variables (if possible) Definition at line 8510 of file cons_setppc.c. References BMScopyMemoryArray, FALSE, NULL, SCIP_OKAY, SCIPconsGetData(), and TRUE.
constraint method of constraint handler which returns the number of variables (if possible) Definition at line 8532 of file cons_setppc.c. References NULL, SCIP_OKAY, SCIPconsGetData(), and TRUE.
Definition at line 8550 of file cons_setppc.c. References EVENTHDLR_NAME, FALSE, NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDTIGHTENED, SCIP_EVENTTYPE_LBRELAXED, SCIP_EVENTTYPE_LBTIGHTENED, SCIP_EVENTTYPE_UBRELAXED, SCIP_EVENTTYPE_UBTIGHTENED, SCIP_EVENTTYPE_VARDELETED, SCIP_EVENTTYPE_VARFIXED, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_MULTAGGR, SCIPconsGetData(), SCIPerrorMessage, SCIPeventGetType(), SCIPeventGetVar(), SCIPeventhdlrGetName(), SCIPgetStage(), SCIPmarkConsPropagate(), SCIPvarGetLbGlobal(), SCIPvarGetProbvar(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), and TRUE.
Definition at line 8639 of file cons_setppc.c. References CONFLICTHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CONSADDED, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPaddClique(), SCIPaddConsNode(), SCIPallocBufferArray, SCIPbdchginfoGetNewbound(), SCIPbdchginfoGetVar(), SCIPconflicthdlrGetName(), SCIPconsIsLocal(), SCIPcreateConsSetcover(), SCIPcreateConsSetpack(), SCIPdebugMessage, SCIPfreeBufferArray, SCIPgetNConflictConssApplied(), SCIPgetNegatedVar(), SCIPgetNRuns(), SCIPreleaseCons(), SCIPsnprintf(), SCIPvarIsBinary(), and TRUE.
creates the handler for set partitioning / packing / covering constraints and includes it in SCIP
Definition at line 8767 of file cons_setppc.c. References CONFLICTHDLR_DESC, CONFLICTHDLR_NAME, CONFLICTHDLR_PRIORITY, 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, conshdlrdataCreate(), DEFAULT_ADDVARIABLESASCLIQUES, DEFAULT_CLIQUELIFTING, DEFAULT_CLIQUESHRINKING, DEFAULT_DUALPRESOLVING, DEFAULT_NPSEUDOBRANCHES, DEFAULT_PRESOLPAIRWISE, DEFAULT_PRESOLUSEHASHING, EVENTHDLR_DESC, EVENTHDLR_NAME, LINCONSUPGD_PRIORITY, NULL, QUADCONSUPGD_PRIORITY, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPfindConshdlr(), SCIPincludeConflicthdlrBasic(), SCIPincludeConshdlrBasic(), SCIPincludeEventhdlrBasic(), SCIPincludeLinconsUpgrade(), SCIPincludeQuadconsUpgrade(), SCIPsetConshdlrActive(), SCIPsetConshdlrCopy(), SCIPsetConshdlrDeactive(), SCIPsetConshdlrDelete(), SCIPsetConshdlrDelvars(), SCIPsetConshdlrExitpre(), SCIPsetConshdlrExitsol(), SCIPsetConshdlrFree(), SCIPsetConshdlrGetNVars(), SCIPsetConshdlrGetVars(), SCIPsetConshdlrInit(), SCIPsetConshdlrInitlp(), SCIPsetConshdlrParse(), SCIPsetConshdlrPresol(), SCIPsetConshdlrPrint(), SCIPsetConshdlrProp(), SCIPsetConshdlrResprop(), SCIPsetConshdlrSepa(), SCIPsetConshdlrTrans(), and TRUE. Referenced by SCIP_DECL_CONSHDLRCOPY(), and SCIPincludeDefaultPlugins().
creates and captures a set partitioning constraint
Definition at line 8869 of file cons_setppc.c. References createConsSetppc(), and SCIP_SETPPCTYPE_PARTITIONING. Referenced by cliquePresolve(), consdataLinearize(), createAndAddLinearCons(), extractGates(), processIntegerBoundChg(), SCIP_DECL_CONSPARSE(), SCIP_DECL_PRESOLEXEC(), and SCIPcreateConsBasicSetpart().
creates and captures a set partitioning constraint with all constraint flags set to their default values
Definition at line 8909 of file cons_setppc.c. References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcreateConsSetpart(), and TRUE.
creates and captures a set packing constraint
Definition at line 8927 of file cons_setppc.c. References createConsSetppc(), and SCIP_SETPPCTYPE_PACKING. Referenced by addCliques(), addExtraCliques(), cliquePresolve(), consdataLinearize(), createAndAddLinearCons(), createCoveringProblem(), deleteRedundantVars(), detectRedundantVars(), dualWeightsTightening(), fixDeleteOrUpgradeCons(), presolRoundSOS1(), removeConstraintsDueToNegCliques(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSPARSE(), SCIP_DECL_QUADCONSUPGD(), SCIPcreateConsBasicSetpack(), tightenWeights(), upgradeCons(), and upgradeConss().
creates and captures a set packing constraint with all constraint flags set to their default values
Definition at line 8967 of file cons_setppc.c. References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcreateConsSetpack(), and TRUE.
creates and captures a set covering constraint
Definition at line 8986 of file cons_setppc.c. References createConsSetppc(), and SCIP_SETPPCTYPE_COVERING. Referenced by createAndAddLinearCons(), CUTOFF_CONSTRAINT(), forbidCover(), forbidFixation(), processNlRow(), readCnf(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSPARSE(), and SCIPcreateConsBasicSetcover().
creates and captures a set covering constraint with all constraint flags set to their default values
Definition at line 9026 of file cons_setppc.c. References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcreateConsSetcover(), and TRUE.
adds coefficient in set partitioning / packing / covering constraint
Definition at line 9042 of file cons_setppc.c. References addCoef(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by addCoefTerm(), cliquePresolve(), and SCIPaddCoefPseudoboolean(). gets number of variables in set partitioning / packing / covering constraint
Definition at line 9065 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by addSetppcConstraints(), cleanupHashDatas(), correctPresoldata(), createPresoldata(), getLinearConsNVars(), getLinearConsVarsData(), initMatrix(), SCIP_DECL_CONSCOPY(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), writeFzn(), writeOpbConstraints(), and writeOpbObjective(). gets array of variables in set partitioning / packing / covering constraint
Definition at line 9086 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by addSetppcConstraints(), correctPresoldata(), createPresoldata(), getLinearConsVarsData(), initMatrix(), SCIP_DECL_CONSCOPY(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), writeFzn(), writeOpbConstraints(), and writeOpbObjective().
gets type of set partitioning / packing / covering constraint
Definition at line 9107 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by addSetppcConstraints(), cleanupHashDatas(), correctPresoldata(), createPresoldata(), findAggregation(), getLinearConsSides(), initMatrix(), SCIP_DECL_CONSCOPY(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), tryUpgradingSetppc(), writeFzn(), and writeOpbConstraints(). gets the dual solution of the set partitioning / packing / covering constraint in the current LP
Definition at line 9127 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIProwGetDualsol(). gets the dual Farkas value of the set partitioning / packing / covering constraint in the current infeasible LP
Definition at line 9151 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIProwGetDualfarkas(). returns the linear relaxation of the given set partitioning / packing / covering constraint; may return NULL if no LP row was yet created; the user must not modify the row!
Definition at line 9177 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. returns current number of variables fixed to one in the constraint
Definition at line 9198 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. returns current number of variables fixed to zero in the constraint
Definition at line 9220 of file cons_setppc.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. |