GCG 4.1.1 (dev)

Generic Column Generation

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

Detailed Description

methods for storing priced cols (based on SCIP's separation storage)

Author
Jonas Witt

Definition in file pricestore_gcg.h.

#include "scip/def.h"
#include "blockmemshell/memory.h"
#include "scip/type_implics.h"
#include "scip/type_retcode.h"
#include "scip/type_set.h"
#include "scip/type_stat.h"
#include "scip/type_event.h"
#include "scip/type_lp.h"
#include "scip/type_prob.h"
#include "scip/type_tree.h"
#include "scip/type_reopt.h"
#include "scip/type_branch.h"
#include "gcg/pub_colpool.h"
#include "gcg/pub_gcgcol.h"
#include "gcg/type_pricestore_gcg.h"

Go to the source code of this file.

Functions

GCG_EXPORT SCIP_RETCODE GCGpricestoreCreate (GCG *gcg, GCG_PRICESTORE **pricestore, SCIP_Real redcostfac, SCIP_Real objparalfac, SCIP_Real orthofac, SCIP_Real mincolorth, GCG_EFFICIACYCHOICE efficiacychoice, int hashtablesize)
GCG_EXPORT SCIP_RETCODE GCGpricestoreFree (GCG_PRICESTORE **pricestore)
GCG_EXPORT void GCGpricestoreStartFarkas (GCG_PRICESTORE *pricestore)
GCG_EXPORT void GCGpricestoreEndFarkas (GCG_PRICESTORE *pricestore)
GCG_EXPORT void GCGpricestoreStartForceCols (GCG_PRICESTORE *pricestore)
GCG_EXPORT void GCGpricestoreEndForceCols (GCG_PRICESTORE *pricestore)
GCG_EXPORT SCIP_RETCODE GCGpricestoreAddCol (GCG_PRICESTORE *pricestore, GCG_COL *col, SCIP_Bool forcecol, SCIP_Bool fromcolpool, SCIP_Bool *added)
GCG_EXPORT SCIP_RETCODE GCGpricestoreApplyCols (GCG_PRICESTORE *pricestore, GCG_COLPOOL *colpool, SCIP_Bool usecolpool, int *nfoundvars)
GCG_EXPORT SCIP_RETCODE GCGpricestoreClearCols (GCG_PRICESTORE *pricestore)
GCG_EXPORT GCG_COL ** GCGpricestoreGetCols (GCG_PRICESTORE *pricestore, int arrayindex)
GCG_EXPORT int GCGpricestoreGetNCols (GCG_PRICESTORE *pricestore, int arrayindex)
GCG_EXPORT int GCGpricestoreGetNColsTotal (GCG_PRICESTORE *pricestore)
GCG_EXPORT int GCGpricestoreGetNColsFound (GCG_PRICESTORE *pricestore)
GCG_EXPORT int GCGpricestoreGetNColsFoundRound (GCG_PRICESTORE *pricestore)
GCG_EXPORT int GCGpricestoreGetNColsApplied (GCG_PRICESTORE *pricestore)

Function Documentation

◆ GCGpricestoreCreate()

GCG_EXPORT SCIP_RETCODE GCGpricestoreCreate ( GCG * gcg,
GCG_PRICESTORE ** pricestore,
SCIP_Real efficiacyfac,
SCIP_Real objparalfac,
SCIP_Real orthofac,
SCIP_Real mincolorth,
GCG_EFFICIACYCHOICE efficiacychoice,
int hashtablesize )

creates price storage

Parameters
gcgGCG data structure
pricestorepointer to store price storage
efficiacyfacfactor of -redcost/norm in score function
objparalfacfactor of objective parallelism in score function
orthofacfactor of orthogonalities in score function
mincolorthminimal orthogonality of columns to add (with respect to columns added in the current round)
efficiacychoicechoice to base efficiacy on
hashtablesizesize of hashtable

Definition at line 117 of file pricestore_gcg.c.

References assert(), GCGgetMasterprob(), GCGgetNPricingprobs(), GCGpricestoreCreate(), i, masterprob, and SCIP_CALL().

Referenced by ObjPricerGcg::createPricestore(), and GCGpricestoreCreate().

◆ GCGpricestoreFree()

GCG_EXPORT SCIP_RETCODE GCGpricestoreFree ( GCG_PRICESTORE ** pricestore)

frees price storage

Parameters
pricestorepointer to store price storage

Definition at line 184 of file pricestore_gcg.c.

References assert(), GCGpricestoreFree(), and i.

Referenced by GCGpricestoreFree(), and SCIP_DECL_PRICEREXITSOL().

◆ GCGpricestoreStartFarkas()

GCG_EXPORT void GCGpricestoreStartFarkas ( GCG_PRICESTORE * pricestore)

informs price storage, that Farkas pricing starts now

Parameters
pricestoreprice storage

Definition at line 218 of file pricestore_gcg.c.

References assert(), GCGpricestoreStartFarkas(), GCG_PriceStore::infarkas, and GCG_PriceStore::ncolstotal.

Referenced by GCGpricestoreStartFarkas(), and SCIP_DECL_PRICERFARKAS().

◆ GCGpricestoreEndFarkas()

GCG_EXPORT void GCGpricestoreEndFarkas ( GCG_PRICESTORE * pricestore)

informs price storage, that Farkas pricing is now finished

Parameters
pricestoreprice storage

Definition at line 229 of file pricestore_gcg.c.

References assert(), GCGpricestoreEndFarkas(), GCG_PriceStore::infarkas, and GCG_PriceStore::ncolstotal.

Referenced by GCGpricestoreEndFarkas(), and SCIP_DECL_PRICERREDCOST().

◆ GCGpricestoreStartForceCols()

GCG_EXPORT void GCGpricestoreStartForceCols ( GCG_PRICESTORE * pricestore)

informs price storage, that the following cols should be used in any case

Parameters
pricestoreprice storage

Definition at line 240 of file pricestore_gcg.c.

References assert(), GCG_PriceStore::forcecols, and GCGpricestoreStartForceCols().

Referenced by GCGpricestoreStartForceCols().

◆ GCGpricestoreEndForceCols()

GCG_EXPORT void GCGpricestoreEndForceCols ( GCG_PRICESTORE * pricestore)

informs price storage, that the following cols should no longer be used in any case

Parameters
pricestoreprice storage

Definition at line 251 of file pricestore_gcg.c.

References assert(), GCG_PriceStore::forcecols, and GCGpricestoreEndForceCols().

Referenced by GCGpricestoreEndForceCols().

◆ GCGpricestoreAddCol()

GCG_EXPORT SCIP_RETCODE GCGpricestoreAddCol ( GCG_PRICESTORE * pricestore,
GCG_COL * col,
SCIP_Bool forcecol,
SCIP_Bool fromcolpool,
SCIP_Bool * added )

◆ GCGpricestoreApplyCols()

◆ GCGpricestoreClearCols()

◆ GCGpricestoreGetCols()

GCG_EXPORT GCG_COL ** GCGpricestoreGetCols ( GCG_PRICESTORE * pricestore,
int arrayindex )

get cols in the price storage

Parameters
pricestoreprice storage
arrayindexindex of the arrays

Definition at line 866 of file pricestore_gcg.c.

References assert(), GCG_PriceStore::cols, and GCGpricestoreGetCols().

Referenced by GCGpricestoreGetCols(), and ObjPricerGcg::getBestCols().

◆ GCGpricestoreGetNCols()

GCG_EXPORT int GCGpricestoreGetNCols ( GCG_PRICESTORE * pricestore,
int arrayindex )

get number of cols in the price storage

Parameters
pricestoreprice storage
arrayindexindex of the arrays

Definition at line 877 of file pricestore_gcg.c.

References assert(), GCGpricestoreGetNCols(), and GCG_PriceStore::ncols.

Referenced by GCGpricestoreGetNCols(), and ObjPricerGcg::getBestCols().

◆ GCGpricestoreGetNColsTotal()

GCG_EXPORT int GCGpricestoreGetNColsTotal ( GCG_PRICESTORE * pricestore)

get number of cols in the price storage

Parameters
pricestoreprice storage

Definition at line 888 of file pricestore_gcg.c.

References assert(), GCGpricestoreGetNColsTotal(), and GCG_PriceStore::ncolstotal.

Referenced by GCGpricestoreGetNColsTotal(), and ObjPricerGcg::pricingLoop().

◆ GCGpricestoreGetNColsFound()

GCG_EXPORT int GCGpricestoreGetNColsFound ( GCG_PRICESTORE * pricestore)

get total number of cols found so far

Parameters
pricestoreprice storage

Definition at line 898 of file pricestore_gcg.c.

References assert(), GCGpricestoreGetNColsFound(), and GCG_PriceStore::ncolsfound.

Referenced by GCGpricestoreGetNColsFound().

◆ GCGpricestoreGetNColsFoundRound()

GCG_EXPORT int GCGpricestoreGetNColsFoundRound ( GCG_PRICESTORE * pricestore)

get number of cols found so far in current price round

Parameters
pricestoreprice storage

Definition at line 908 of file pricestore_gcg.c.

References assert(), GCGpricestoreGetNColsFoundRound(), and GCG_PriceStore::ncolsfoundround.

Referenced by GCGpricestoreGetNColsFoundRound().

◆ GCGpricestoreGetNColsApplied()

GCG_EXPORT int GCGpricestoreGetNColsApplied ( GCG_PRICESTORE * pricestore)

get total number of cols applied to the LPs

Parameters
pricestoreprice storage

Definition at line 918 of file pricestore_gcg.c.

References assert(), GCGpricestoreGetNColsApplied(), and GCG_PriceStore::ncolsapplied.

Referenced by GCGpricestoreGetNColsApplied().