GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
gcgcol.c File Reference

Detailed Description

methods for working with gcg column structure

Author
Jonas Witt

Various methods to work with gcg column structure

Definition in file gcgcol.c.

#include "gcg/pub_gcgcol.h"
#include "gcg/gcg.h"
#include "scip/def.h"
#include "scip/scip.h"
#include "scip/cons_linear.h"
#include "gcg/pricer_gcg.h"
#include "gcg/sepa_original.h"
#include "gcg/struct_gcgcol.h"
#include "gcg/struct_mastersepacut.h"
#include <assert.h>

Go to the source code of this file.

Functions

SCIP_RETCODE GCGcreateGcgCol (GCG *gcg, SCIP *pricingprob, GCG_COL **gcgcol, int probnr, SCIP_VAR **vars, SCIP_Real *vals, int nvars, SCIP_Bool isray, SCIP_Real redcost)
SCIP_RETCODE GCGfreeGcgCol (GCG_COL **gcgcol)
SCIP_RETCODE GCGcreateGcgColFromSol (GCG *gcg, SCIP *pricingprob, SCIP *subproblem, SCIP_HASHMAP *varmap, GCG_COL **gcgcol, int prob, SCIP_SOL *sol, SCIP_Bool isray, SCIP_Real redcost)
 SCIP_DECL_SORTPTRCOMP (GCGcolCompRedcost)
 SCIP_DECL_SORTPTRCOMP (GCGcolCompAge)
SCIP_Bool GCGcolIsEq (GCG_COL *gcgcol1, GCG_COL *gcgcol2)
int GCGcolGetProbNr (GCG_COL *gcgcol)
SCIP * GCGcolGetPricingProb (GCG_COL *gcgcol)
SCIP_VAR ** GCGcolGetVars (GCG_COL *gcgcol)
SCIP_Real * GCGcolGetVals (GCG_COL *gcgcol)
int GCGcolGetNVars (GCG_COL *gcgcol)
SCIP_Bool GCGcolIsRay (GCG_COL *gcgcol)
SCIP_Real GCGcolGetRedcost (GCG_COL *gcgcol)
int GCGcolGetAge (GCG_COL *gcgcol)
void GCGcolUpdateRedcost (GCG_COL *gcgcol, SCIP_Real redcost, SCIP_Bool growold)
SCIP_Real * GCGcolGetMastercoefs (GCG_COL *gcgcol)
int GCGcolGetNMastercoefs (GCG_COL *gcgcol)
SCIP_RETCODE GCGcolSetMastercoefs (GCG_COL *gcgcol, SCIP_Real *mastercoefs, int nmastercoefs)
void GCGcolSetNorm (GCG_COL *gcgcol, SCIP_Real norm)
SCIP_RETCODE GCGcolComputeNorm (GCG *gcg, GCG_COL *gcgcol)
SCIP_RETCODE GCGcolSetInitializedCoefs (GCG_COL *gcgcol)
SCIP_Bool GCGcolGetInitializedCoefs (GCG_COL *gcgcol)
int * GCGcolGetLinkvars (GCG_COL *gcgcol)
int GCGcolGetNLinkvars (GCG_COL *gcgcol)
SCIP_RETCODE GCGcolSetLinkvars (GCG_COL *gcgcol, int *linkvars, int nlinkvars)
SCIP_Real * GCGcolGetOriginalSepaMastercuts (GCG_COL *gcgcol)
int GCGcolGetNOriginalSepaMastercuts (GCG_COL *gcgcol)
SCIP_Real GCGcolGetNorm (GCG_COL *gcgcol)
SCIP_RETCODE GCGcolUpdateOriginalSepaMastercuts (GCG_COL *gcgcol, SCIP_Real *neworiginalsepamastercuts, int nneworiginalsepamastercuts)
SCIP_RETCODE GCGcolSetMastersepacutCoeffs (GCG_COL *gcgcol, SCIP_Real *mastersepacutcoeffs, int nmastersepacutcoeffs)
int GCGcolGetNMastersepacutCoeffs (GCG_COL *gcgcol)
int GCGcolGetMastersepacutCoeffsSize (GCG_COL *gcgcol)
SCIP_Real * GCGcolGetMastersepaCutCoeffs (GCG_COL *gcgcol)
SCIP_Real GCGcolGetSolVal (GCG_COL *gcgcol, SCIP_VAR *var)
SCIP_Bool GCGcolIsAged (GCG_COL *col, int agelimit)
SCIP_RETCODE GCGcolComputeDualObjPara (GCG *gcg, GCG_COL *gcgcol, SCIP_Real *para)
SCIP_RETCODE GCGcolComputeOrth (GCG *gcg, GCG_COL *gcgcol1, GCG_COL *gcgcol2, SCIP_Real *orth)
SCIP_Real * GCGcolGetInferredPricingVals (GCG_COL *gcgcol)
SCIP_VAR ** GCGcolGetInferredPricingVars (GCG_COL *gcgcol)
int GCGcolGetNInferredPricingVars (GCG_COL *gcgcol)
SCIP_RETCODE GCGcolUpdateActiveMastersepacuts (GCG *gcg, GCG_COL *gcgcol, GCG_EXTENDEDMASTERCONSDATA **mastersepacuts, int nmastersepacuts, SCIP_Real *mastersepacutcoefs)
 SCIP_DECL_HASHGETKEY (GCGhashGetKeyCol)
 SCIP_DECL_HASHKEYEQ (GCGhashKeyEqCol)
 SCIP_DECL_HASHKEYVAL (GCGhashKeyValCol)