GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
pub_gcg.h File Reference

Detailed Description

public methods for working with gcg structure

Author
Erik Muehmer

Definition in file pub_gcg.h.

#include "scip/def.h"
#include "scip/type_scip.h"
#include "scip/type_retcode.h"
#include "gcg/def.h"
#include "gcg/type_gcg.h"

Go to the source code of this file.

Functions

GCG_EXPORT SCIP_RETCODE GCGcreate (GCG **gcg)
GCG_EXPORT SCIP_RETCODE GCGfree (GCG **gcgcol)
GCG_EXPORT SCIP_Bool GCGisOriginal (SCIP *scip)
GCG_EXPORT SCIP_Bool GCGisMaster (SCIP *scip)
GCG_EXPORT SCIP_RETCODE GCGprintStatistics (GCG *gcg, FILE *file)
GCG_EXPORT SCIP_RETCODE GCGprintCompleteDetectionStatistics (GCG *gcg, FILE *file)
GCG_EXPORT SCIP_RETCODE GCGprintInstanceName (GCG *gcg, FILE *file)
GCG_EXPORT SCIP_RETCODE GCGprintBlockcandidateInformation (GCG *gcg, FILE *file)
GCG_EXPORT SCIP_RETCODE GCGprintCompleteDetectionTime (GCG *gcg, FILE *file)
GCG_EXPORT SCIP_RETCODE GCGprintPartitionInformation (GCG *gcg, FILE *file)
GCG_EXPORT SCIP_RETCODE GCGprintDecompInformation (GCG *gcg, FILE *file)
GCG_EXPORT SCIP_Real GCGgetPricingprobsMemUsed (GCG *gcg)
GCG_EXPORT SCIP_Real GCGgetDegeneracy (GCG *gcg)
GCG_EXPORT SCIP_Real GCGtransformOrigvalsToMastervals (GCG *gcg, SCIP_VAR **origvars, SCIP_Real *origvals, int norigvars, SCIP_VAR **mastervars, SCIP_Real *mastervals, int nmastervars)
GCG_EXPORT SCIP_RETCODE GCGtransformMastersolToOrigsol (GCG *gcg, SCIP_SOL *mastersol, SCIP_SOL **origsol, SCIP_Bool ignorelocalvarbnds, SCIP_Bool *violatesvarbnds)
GCG_EXPORT SCIP_Bool GCGisConsGCGCons (SCIP_CONS *cons)
GCG_EXPORT SCIP * GCGgetPricingprob (GCG *gcg, int pricingprobnr)
GCG_EXPORT int GCGgetNPricingprobs (GCG *gcg)
GCG_EXPORT SCIP_Bool GCGisPricingprobRelevant (GCG *gcg, int pricingprobnr)
GCG_EXPORT int GCGgetBlockRepresentative (GCG *gcg, int pricingprobnr)
GCG_EXPORT int GCGgetNRelPricingprobs (GCG *gcg)
GCG_EXPORT int GCGgetNIdenticalBlocks (GCG *gcg, int pricingprobnr)
GCG_EXPORT int GCGgetNMasterConss (GCG *gcg)
GCG_EXPORT SCIP_CONS ** GCGgetMasterConss (GCG *gcg)
GCG_EXPORT SCIP_CONS ** GCGgetOrigMasterConss (GCG *gcg)
GCG_EXPORT SCIP_CONS * GCGgetConvCons (GCG *gcg, int blocknr)
GCG_EXPORT SCIP_Bool GCGisMasterSetCovering (GCG *gcg)
GCG_EXPORT SCIP_Bool GCGisMasterSetPartitioning (GCG *gcg)
GCG_EXPORT SCIP_Bool GCGrelaxIsInitialized (GCG *gcg)
GCG_EXPORT SCIP_CONS ** GCGgetVarLinkingconss (GCG *gcg)
GCG_EXPORT int * GCGgetVarLinkingconssBlock (GCG *gcg)
GCG_EXPORT int GCGgetNVarLinkingconss (GCG *gcg)
GCG_EXPORT int GCGgetNLinkingvars (GCG *gcg)
GCG_EXPORT int GCGgetNTransvars (GCG *gcg)
GCG_EXPORT SCIP_SOL * GCGgetBendersRelaxationSol (GCG *gcg)
GCG_EXPORT SCIP * GCGgetOrigprob (GCG *gcg)
GCG_EXPORT SCIP * GCGgetMasterprob (GCG *gcg)
GCG_EXPORT SCIP * GCGgetBendersMasterprob (GCG *gcg)
GCG_EXPORT SCIP * GCGgetDwMasterprob (GCG *gcg)
GCG_EXPORT GCG * GCGmasterGetGcg (SCIP *masterprob)
GCG_EXPORT GCG * GCGorigGetGcg (SCIP *origprob)
GCG_EXPORT GCG_DECMODE GCGgetDecompositionMode (GCG *gcg)
GCG_EXPORT GCG_DECOMP * GCGgetStructDecomp (GCG *gcg)
GCG_EXPORT GCG_PARAMDATA * GCGgetParamsVisu (GCG *gcg)
GCG_EXPORT SCIP_CLOCK * GCGgetRootNodeTime (GCG *gcg)
GCG_EXPORT SCIP_RETCODE GCGtransformProb (GCG *gcg)
GCG_EXPORT SCIP_RETCODE GCGpresolve (GCG *gcg)
GCG_EXPORT SCIP_RETCODE GCGdetect (GCG *gcg)
GCG_EXPORT SCIP_RETCODE GCGsolve (GCG *gcg)
GCG_EXPORT SCIP_Real GCGgetDualbound (GCG *gcg)
GCG_EXPORT SCIP_Real GCGgetPrimalbound (GCG *gcg)
GCG_EXPORT SCIP_Real GCGgetGap (GCG *gcg)
GCG_EXPORT SCIP_RELAX * GCGgetRelax (GCG *gcg)
GCG_EXPORT SCIP_SEPA * GCGgetSepaorig (GCG *gcg)
GCG_EXPORT SCIP_EVENTHDLR * GCGgetMastersepacutEventhdlr (GCG *gcg)

Function Documentation

◆ GCGgetDualbound()

GCG_EXPORT SCIP_Real GCGgetDualbound ( GCG * gcg)

gets GCG's global dual bound

Computes the global dual bound while considering the original problem SCIP instance and the master problem SCIP instance.

Returns
the global dual bound
Parameters
gcgGCG data structure

Definition at line 5589 of file relax_gcg.c.

References assert(), GCGgetDualbound(), GCGgetMasterprob(), GCGgetOrigprob(), masterprob, and origprob.

Referenced by GCGgetDualbound(), GCGgetGap(), and SCIP_DECL_DISPOUTPUT().

◆ GCGgetPrimalbound()

GCG_EXPORT SCIP_Real GCGgetPrimalbound ( GCG * gcg)

gets GCG's global primal bound

Computes the global primal bound while considering the original problem SCIP instance and the master problem SCIP instance.

Returns
the global dual bound
Parameters
gcgGCG data structure

Definition at line 5620 of file relax_gcg.c.

References assert(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetPrimalbound(), GCGmasterIsBestsolValid(), masterprob, and origprob.

Referenced by GCGgetGap(), GCGgetPrimalbound(), and SCIP_DECL_DISPOUTPUT().

◆ GCGgetGap()

GCG_EXPORT SCIP_Real GCGgetGap ( GCG * gcg)

gets GCG's global gap

Computes the global gap based on the gloal dual bound and the global primal bound.

Returns
the global dual bound
See also
GCGgetDualbound()
GCGgetPrimalbound()
Parameters
gcgGCG data structure

Definition at line 5651 of file relax_gcg.c.

References assert(), GCGgetDualbound(), GCGgetGap(), GCGgetOrigprob(), GCGgetPrimalbound(), and origprob.

Referenced by GCGgetGap(), and SCIP_DECL_DISPOUTPUT().

◆ GCGgetRelax()

◆ GCGgetSepaorig()

GCG_EXPORT SCIP_SEPA * GCGgetSepaorig ( GCG * gcg)

◆ GCGgetMastersepacutEventhdlr()