Detailed Description
Public methods from the scip_misc.c file.
Functions | |
| GCG_EXPORT SCIP_Bool | GCGisVarRelevant (SCIP_VAR *var) |
| GCG_EXPORT consType | GCGconsGetType (SCIP *scip, SCIP_CONS *cons) |
| GCG_EXPORT SCIP_Real | GCGconsGetRhs (SCIP *scip, SCIP_CONS *cons) |
| GCG_EXPORT SCIP_Real | GCGconsGetLhs (SCIP *scip, SCIP_CONS *cons) |
| GCG_EXPORT SCIP_Real | GCGconsGetDualfarkas (SCIP *scip, SCIP_CONS *cons) |
| GCG_EXPORT SCIP_Real | GCGconsGetDualsol (SCIP *scip, SCIP_CONS *cons) |
| GCG_EXPORT int | GCGconsGetNVars (SCIP *scip, SCIP_CONS *cons) |
| GCG_EXPORT SCIP_RETCODE | GCGconsGetVars (SCIP *scip, SCIP_CONS *cons, SCIP_VAR **vars, int nvars) |
| GCG_EXPORT SCIP_RETCODE | GCGconsGetVals (SCIP *scip, SCIP_CONS *cons, SCIP_Real *vals, int nvals) |
| SCIP_Bool | GCGconsIsRanged (SCIP *scip, SCIP_CONS *cons) |
| SCIP_Bool | GCGgetConsIsSetppc (SCIP *scip, SCIP_CONS *cons, SCIP_SETPPCTYPE *setppctype) |
| SCIP_Bool | GCGgetConsIsCardinalityCons (SCIP *scip, SCIP_CONS *cons) |
| GCG_EXPORT SCIP_Bool | GCGisRootNode (GCG *gcg) |
| GCG_EXPORT SCIP_RETCODE | GCGincludeDialogsGraph (GCG *gcg) |
Function Documentation
◆ GCGisVarRelevant()
| GCG_EXPORT SCIP_Bool GCGisVarRelevant | ( | SCIP_VAR * | var | ) |
returns TRUE if variable is relevant, FALSE otherwise
- Parameters
-
var variable to test
Definition at line 42 of file scip_misc.c.
References NULL, SCIP_Bool, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIPvarGetStatus(), and SCIPvarIsActive().
Referenced by gcg::HyperrowcolGraph< T >::createFromMatrix(), gcg::BipartiteGraph< T >::createFromMatrix(), gcg::ColumnGraph< T >::createFromMatrix(), gcg::HypercolGraph< T >::createFromMatrix(), gcg::HyperrowGraph< T >::createFromMatrix(), gcg::RowGraph< T >::createFromMatrix(), gcg::RowGraphWeighted< T >::createFromMatrix(), GCGdecompEvaluateDecomposition(), and readBlockconss().
◆ GCGconsGetType()
| GCG_EXPORT consType GCGconsGetType | ( | SCIP * | scip, |
| SCIP_CONS * | cons | ||
| ) |
returns the type of an arbitrary SCIP constraint
- Parameters
-
scip SCIP data structure cons constraint to get type for
Definition at line 52 of file scip_misc.c.
References indicator, knapsack, linear, logicor, NULL, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPgetTypeSetppc(), setcovering, setpacking, setpartitioning, sos1, sos2, unknown, and varbound.
Referenced by GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), getConstraintType(), and gcg::PARTIALDECOMP::getScore().
◆ GCGconsGetRhs()
| GCG_EXPORT SCIP_Real GCGconsGetRhs | ( | SCIP * | scip, |
| SCIP_CONS * | cons | ||
| ) |
returns the rhs of an arbitrary SCIP constraint
- Parameters
-
scip SCIP data structure cons constraint to get left hand side for
Definition at line 109 of file scip_misc.c.
References NULL, SCIP_Longint, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPgetCapacityKnapsack(), SCIPgetNVarsKnapsack(), SCIPgetNVarsSetppc(), SCIPgetRhsLinear(), SCIPgetRhsVarbound(), SCIPgetTypeSetppc(), SCIPgetVarsKnapsack(), SCIPgetVarsSetppc(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPgetWeightsKnapsack(), SCIPinfinity(), SCIPisInfinity(), SCIPvarIsNegated(), and w.
Referenced by ObjPricerGcg::addArtificialVars(), buildProblem(), comp(), createMasterprobConss(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGconsIsRanged(), GCGextendedmasterconsGetRhs(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), GCGgetVarLockData(), GCGrelaxTransOrigToMasterCons(), ObjPricerGcg::getStabilizedDualObjectiveValue(), ObjPricerGcg::pricingLoop(), shuffleDualvalsRandom(), and updateBranchingConss().
◆ GCGconsGetLhs()
| GCG_EXPORT SCIP_Real GCGconsGetLhs | ( | SCIP * | scip, |
| SCIP_CONS * | cons | ||
| ) |
returns the lhs of an arbitrary SCIP constraint
- Parameters
-
scip SCIP data structure cons constraint to get left hand side for
Definition at line 207 of file scip_misc.c.
References NULL, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPgetLhsLinear(), SCIPgetLhsVarbound(), SCIPgetNVarsLogicor(), SCIPgetNVarsSetppc(), SCIPgetTypeSetppc(), SCIPgetVarsLogicor(), SCIPgetVarsSetppc(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPinfinity(), SCIPisInfinity(), and SCIPvarIsNegated().
Referenced by ObjPricerGcg::addArtificialVars(), buildProblem(), comp(), createMasterprobConss(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGconsIsRanged(), GCGextendedmasterconsGetLhs(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), GCGgetVarLockData(), GCGrelaxTransOrigToMasterCons(), ObjPricerGcg::getStabilizedDualObjectiveValue(), shuffleDualvalsRandom(), and updateBranchingConss().
◆ GCGconsGetDualfarkas()
| GCG_EXPORT SCIP_Real GCGconsGetDualfarkas | ( | SCIP * | scip, |
| SCIP_CONS * | cons | ||
| ) |
returns the dual farkas sol of an arbitrary SCIP constraint
- Parameters
-
scip SCIP data structure cons constraint to get left hand side for
Definition at line 303 of file scip_misc.c.
References NULL, SCIP_Real, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPgetDualfarkasKnapsack(), SCIPgetDualfarkasLinear(), SCIPgetDualfarkasLogicor(), SCIPgetDualfarkasSetppc(), SCIPgetDualfarkasVarbound(), and SCIPinfinity().
◆ GCGconsGetDualsol()
| GCG_EXPORT SCIP_Real GCGconsGetDualsol | ( | SCIP * | scip, |
| SCIP_CONS * | cons | ||
| ) |
returns the dual sol of an arbitrary SCIP constraint
- Parameters
-
scip SCIP data structure cons constraint to get left hand side for
Definition at line 367 of file scip_misc.c.
References NULL, SCIP_Real, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPgetDualsolKnapsack(), SCIPgetDualsolLinear(), SCIPgetDualsolLogicor(), SCIPgetDualsolSetppc(), SCIPgetDualsolVarbound(), and SCIPinfinity().
Referenced by calculateDualvalsOptimalOrigLP().
◆ GCGconsGetNVars()
| GCG_EXPORT int GCGconsGetNVars | ( | SCIP * | scip, |
| SCIP_CONS * | cons | ||
| ) |
returns the number of variables in an arbitrary SCIP constraint
- Parameters
-
scip SCIP data structure cons constraint to get number of variables
Definition at line 433 of file scip_misc.c.
References NULL, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetNVarsLogicor(), SCIPgetNVarsSetppc(), SCIPgetNVarsSOS1(), SCIPgetNVarsSOS2(), and SCIPwarningMessage().
Referenced by adjustDynamicPenalties(), assignConstraintsToRepresentatives(), buildProblem(), comp(), computeConssNzeros(), computeDynamicPenalties(), computePricingConssCoefficients(), convertStructToGCG(), createMasterprobConss(), createPricingprobConss(), createTestPricingprobConss(), gcg::DETPROBDATA::DETPROBDATA(), fillDecompStruct(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGdecompCheckConsistency(), GCGdecompEvaluateDecomposition(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), ObjPricerGcg::getStabilizedDualObjectiveValue(), saveOriginalVarMastercoeffs(), SCIP_DECL_SEPAEXECLP(), ObjPricerGcg::setPricingObjs(), shuffleDualvalsRandom(), and updateBranchingConss().
◆ GCGconsGetVars()
| GCG_EXPORT SCIP_RETCODE GCGconsGetVars | ( | SCIP * | scip, |
| SCIP_CONS * | cons, | ||
| SCIP_VAR ** | vars, | ||
| int | nvars | ||
| ) |
returns the variable array of an arbitrary SCIP constraint
- Parameters
-
scip SCIP data structure cons constraint to get variables from vars array where variables are stored nvars size of storage array
Definition at line 487 of file scip_misc.c.
References BMScopyMemoryArray, NULL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPgetBinaryVarIndicator(), SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetNVarsLogicor(), SCIPgetNVarsSetppc(), SCIPgetNVarsSOS1(), SCIPgetNVarsSOS2(), SCIPgetSlackVarIndicator(), SCIPgetVarsKnapsack(), SCIPgetVarsLinear(), SCIPgetVarsLogicor(), SCIPgetVarsSetppc(), SCIPgetVarsSOS1(), SCIPgetVarsSOS2(), SCIPgetVarVarbound(), SCIPgetVbdvarVarbound(), SCIPvarGetNegatedVar(), SCIPvarIsNegated(), and SCIPwarningMessage().
Referenced by adjustDynamicPenalties(), assignConstraintsToRepresentatives(), buildProblem(), computeConssNzeros(), computeDynamicPenalties(), computePricingConssCoefficients(), convertStructToGCG(), createMasterprobConss(), createPricingprobConss(), createTestPricingprobConss(), gcg::DETPROBDATA::DETPROBDATA(), fillDecompStruct(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGdecompCheckConsistency(), GCGdecompEvaluateDecomposition(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), ObjPricerGcg::getStabilizedDualObjectiveValue(), saveOriginalVarMastercoeffs(), SCIP_DECL_SEPAEXECLP(), ObjPricerGcg::setPricingObjs(), and updateBranchingConss().
◆ GCGconsGetVals()
| GCG_EXPORT SCIP_RETCODE GCGconsGetVals | ( | SCIP * | scip, |
| SCIP_CONS * | cons, | ||
| SCIP_Real * | vals, | ||
| int | nvals | ||
| ) |
returns the value array of an arbitrary SCIP constraint
Returns the value array of an arbitrary SCIP constraint
- Parameters
-
scip SCIP data structure cons constraint to get values from vals array where values are stored nvals size of storage array
Definition at line 618 of file scip_misc.c.
References BMScopyMemoryArray, NULL, SCIP_INVALIDDATA, SCIP_Longint, SCIP_OKAY, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPerrorMessage, SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetNVarsLogicor(), SCIPgetNVarsSetppc(), SCIPgetSlackVarIndicator(), SCIPgetValsLinear(), SCIPgetVarsKnapsack(), SCIPgetVarsLogicor(), SCIPgetVarsSetppc(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPgetWeightsKnapsack(), SCIPvarGetUbGlobal(), SCIPvarIsNegated(), SCIPwarningMessage(), and w.
Referenced by buildProblem(), computeConssNzeros(), computePricingConssCoefficients(), createMasterprobConss(), gcg::DETPROBDATA::DETPROBDATA(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), GCGgetVarLockData(), ObjPricerGcg::getStabilizedDualObjectiveValue(), saveOriginalVarMastercoeffs(), ObjPricerGcg::setPricingObjs(), shuffleDualvalsRandom(), and updateBranchingConss().
◆ GCGconsIsRanged()
returns true if the constraint should be a master constraint and false otherwise
- Parameters
-
scip SCIP data structure cons constraint to check
Definition at line 741 of file scip_misc.c.
References GCGconsGetLhs(), GCGconsGetRhs(), NULL, SCIP_Bool, SCIP_Real, SCIPisEQ(), and SCIPisInfinity().
◆ GCGgetConsIsSetppc()
| SCIP_Bool GCGgetConsIsSetppc | ( | SCIP * | scip, |
| SCIP_CONS * | cons, | ||
| SCIP_SETPPCTYPE * | setppctype | ||
| ) |
returns true if the constraint should be a master constraint and false otherwise
- Parameters
-
scip SCIP data structure cons constraint to check setppctype returns the type of the constraints
Definition at line 760 of file scip_misc.c.
References FALSE, GCGconsGetLhs(), GCGconsGetNVars(), GCGconsGetRhs(), GCGconsGetType(), GCGconsGetVals(), GCGconsGetVars(), logicor, NULL, SCIP_Bool, SCIP_CALL_ABORT, SCIP_Real, SCIP_SETPPCTYPE_COVERING, SCIP_SETPPCTYPE_PACKING, SCIP_SETPPCTYPE_PARTITIONING, SCIPallocBufferArray, SCIPconsGetName(), SCIPdebugMessage, SCIPdebugPrintf, SCIPfreeBufferArrayNull, SCIPisEQ(), SCIPisGE(), SCIPisLE(), SCIPvarGetName(), SCIPvarIsBinary(), setcovering, setpartitioning, and TRUE.
Referenced by checkSetppcStructure(), gcg::DETPROBDATA::isConsSetpp(), and gcg::DETPROBDATA::isConsSetppc().
◆ GCGgetConsIsCardinalityCons()
returns true if the constraint should be a master constraint and false otherwise
- Parameters
-
scip SCIP data structure cons constraint to check
Definition at line 846 of file scip_misc.c.
References FALSE, GCGconsGetLhs(), GCGconsGetNVars(), GCGconsGetRhs(), GCGconsGetType(), GCGconsGetVals(), GCGconsGetVars(), NULL, SCIP_Bool, SCIP_CALL_ABORT, SCIP_Real, SCIPallocBufferArray, SCIPconsGetName(), SCIPdebugMessage, SCIPdebugPrintf, SCIPfreeBufferArrayNull, SCIPisEQ(), SCIPisFeasEQ(), SCIPvarGetName(), setpartitioning, and TRUE.
Referenced by gcg::DETPROBDATA::isConsCardinalityCons().
◆ GCGisRootNode()
| GCG_EXPORT SCIP_Bool GCGisRootNode | ( | GCG * | gcg | ) |
returns TRUE or FALSE, depending whether we are in the root node or not
- Parameters
-
gcg GCG data structure
Definition at line 918 of file scip_misc.c.
References GCGgetMasterprob(), NULL, SCIP_Bool, SCIP_STAGE_SOLVING, SCIPgetCurrentNode(), SCIPgetRootNode(), SCIPgetStage(), and TRUE.
Referenced by GCGmasterGetDegeneracy(), ReducedCostPricing::getMaxcolsprob(), ReducedCostPricing::getMaxcolsround(), ReducedCostPricing::getRelmaxprobs(), ObjPricerGcg::priceNewVariables(), and setProblemNotApplicable().
◆ GCGincludeDialogsGraph()
| GCG_EXPORT SCIP_RETCODE GCGincludeDialogsGraph | ( | GCG * | gcg | ) |
inludes all graph submenu entries
- Parameters
-
gcg GCG data structure
Definition at line 220 of file dialog_graph.cpp.
References GCGgetOrigprob(), GCGincludeObjDialog(), NULL, SCIP_CALL, SCIP_OKAY, SCIPdialogFindEntry(), SCIPgetRootDialog(), and TRUE.
Referenced by GCGincludeGcgPlugins().