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 assert(), GCGisVarRelevant(), and var.
Referenced by gcg::BipartiteGraph< T >::createFromMatrix(), gcg::ColumnGraph< T >::createFromMatrix(), gcg::HypercolGraph< T >::createFromMatrix(), gcg::HyperrowcolGraph< T >::createFromMatrix(), gcg::HyperrowGraph< T >::createFromMatrix(), gcg::RowGraph< T >::createFromMatrix(), gcg::RowGraphWeighted< T >::createFromMatrix(), GCGdecompEvaluateDecomposition(), GCGisVarRelevant(), 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 assert(), GCGconsGetType(), indicator, knapsack, linear, logicor, setcovering, setpacking, setpartitioning, sos1, sos2, unknown, and varbound.
Referenced by GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGconsGetType(), 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 assert(), GCGconsGetRhs(), i, and SCIPdebugMessage().
Referenced by ObjPricerGcg::addArtificialVars(), buildProblem(), buildProblem(), comp(), createMasterprobConss(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGconsGetRhs(), GCGconsIsRanged(), GCGextendedmasterconsGetRhs(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), GCGgetVarLockData(), GCGrelaxTransOrigToMasterCons(), ObjPricerGcg::getStabilizedDualObjectiveValue(), ObjPricerGcg::pricingLoop(), shuffleDualvalsRandom(), updateBranchingConss(), 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 assert(), GCGconsGetLhs(), i, and SCIPdebugMessage().
Referenced by ObjPricerGcg::addArtificialVars(), buildProblem(), buildProblem(), comp(), createMasterprobConss(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGconsGetLhs(), GCGconsIsRanged(), GCGextendedmasterconsGetLhs(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), GCGgetVarLockData(), GCGrelaxTransOrigToMasterCons(), ObjPricerGcg::getStabilizedDualObjectiveValue(), shuffleDualvalsRandom(), updateBranchingConss(), 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 assert(), GCGconsGetDualfarkas(), and SCIPdebugMessage().
Referenced by GCGconsGetDualfarkas().
◆ 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 assert(), GCGconsGetDualsol(), and SCIPdebugMessage().
Referenced by calculateDualvalsOptimalOrigLP(), and GCGconsGetDualsol().
◆ 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 assert(), and GCGconsGetNVars().
Referenced by adjustDynamicPenalties(), assignConstraintsToRepresentatives(), buildProblem(), buildProblem(), comp(), computeConssNzeros(), computeDynamicPenalties(), computePricingConssCoefficients(), convertStructToGCG(), createMasterprobConss(), createPricingprobConss(), createTestPricingprobConss(), gcg::DETPROBDATA::DETPROBDATA(), fillDecompStruct(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGconsGetNVars(), GCGdecompCheckConsistency(), GCGdecompEvaluateDecomposition(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), ObjPricerGcg::getStabilizedDualObjectiveValue(), saveOriginalVarMastercoeffs(), SCIP_DECL_SEPAEXECLP(), ObjPricerGcg::setPricingObjs(), shuffleDualvalsRandom(), updateBranchingConss(), 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 assert(), GCGconsGetVars(), i, nvars, and vars.
Referenced by adjustDynamicPenalties(), assignConstraintsToRepresentatives(), buildProblem(), buildProblem(), computeConssNzeros(), computeDynamicPenalties(), computePricingConssCoefficients(), convertStructToGCG(), createMasterprobConss(), createPricingprobConss(), createTestPricingprobConss(), gcg::DETPROBDATA::DETPROBDATA(), fillDecompStruct(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGconsGetVars(), GCGdecompCheckConsistency(), GCGdecompEvaluateDecomposition(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), ObjPricerGcg::getStabilizedDualObjectiveValue(), saveOriginalVarMastercoeffs(), SCIP_DECL_SEPAEXECLP(), ObjPricerGcg::setPricingObjs(), updateBranchingConss(), 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 assert(), GCGconsGetVals(), i, nvars, SCIPdebugMessage(), and vars.
Referenced by buildProblem(), buildProblem(), computeConssNzeros(), computePricingConssCoefficients(), createMasterprobConss(), gcg::DETPROBDATA::DETPROBDATA(), GCG_DECL_CONSCLASSIFY(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCG_DECL_PROPAGATEPARTIALDEC(), GCGconsGetVals(), GCGgetConsIsCardinalityCons(), GCGgetConsIsSetppc(), GCGgetVarLockData(), ObjPricerGcg::getStabilizedDualObjectiveValue(), saveOriginalVarMastercoeffs(), ObjPricerGcg::setPricingObjs(), shuffleDualvalsRandom(), updateBranchingConss(), 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 assert(), GCGconsGetLhs(), GCGconsGetRhs(), and GCGconsIsRanged().
Referenced by GCGconsIsRanged().
◆ 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 assert(), GCGconsGetLhs(), GCGconsGetNVars(), GCGconsGetRhs(), GCGconsGetType(), GCGconsGetVals(), GCGconsGetVars(), GCGgetConsIsSetppc(), i, logicor, nvars, SCIPdebugMessage(), setcovering, setpartitioning, and vars.
Referenced by checkSetppcStructure(), GCGgetConsIsSetppc(), 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 assert(), GCGconsGetLhs(), GCGconsGetNVars(), GCGconsGetRhs(), GCGconsGetType(), GCGconsGetVals(), GCGconsGetVars(), GCGgetConsIsCardinalityCons(), i, nvars, SCIPdebugMessage(), setpartitioning, and vars.
Referenced by GCGgetConsIsCardinalityCons(), and 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 assert(), GCGgetMasterprob(), and GCGisRootNode().
Referenced by GCGisRootNode(), 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 assert(), GCGgetOrigprob(), GCGincludeDialogsGraph(), GCGincludeGraphEntries(), GCGincludeObjDialog(), origprob, and SCIP_CALL().
Referenced by GCGincludeDialogsGraph(), and GCGincludeGcgPlugins().