Scippy

GCG

Branch-and-Price & Column Generation for Everyone

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()

◆ GCGconsGetType()

◆ GCGconsGetRhs()

◆ GCGconsGetLhs()

◆ GCGconsGetDualfarkas()

GCG_EXPORT SCIP_Real GCGconsGetDualfarkas ( SCIP *  scip,
SCIP_CONS *  cons 
)

returns the dual farkas sol of an arbitrary SCIP constraint

Parameters
scipSCIP data structure
consconstraint 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
scipSCIP data structure
consconstraint 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()

◆ GCGconsGetVars()

GCG_EXPORT SCIP_RETCODE GCGconsGetVars ( SCIP *  scip,
SCIP_CONS *  cons,
SCIP_VAR **  vars,
int  nvars 
)

◆ GCGconsGetVals()

◆ GCGconsIsRanged()

SCIP_Bool GCGconsIsRanged ( SCIP *  scip,
SCIP_CONS *  cons 
)

returns true if the constraint should be a master constraint and false otherwise

Parameters
scipSCIP data structure
consconstraint 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 
)

◆ GCGgetConsIsCardinalityCons()

SCIP_Bool GCGgetConsIsCardinalityCons ( SCIP *  scip,
SCIP_CONS *  cons 
)

returns true if the constraint should be a master constraint and false otherwise

Parameters
scipSCIP data structure
consconstraint 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)

◆ GCGincludeDialogsGraph()

GCG_EXPORT SCIP_RETCODE GCGincludeDialogsGraph ( GCG *  gcg)

inludes all graph submenu entries

Parameters
gcgGCG 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().