GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
PublicBenderscutsMethods

Detailed Description

Functions

GCG_EXPORT SCIP_DECL_SORTPTRCOMP (GCGpricingcbComp)
GCG_EXPORT SCIP_DECL_SORTPTRCOMP (GCGpricingcbCompName)
GCG_EXPORT GCG_PRICINGCBDATA * GCGpricingcbGetData (GCG_PRICINGCB *pricingcb)
GCG_EXPORT void GCGpricingcbSetData (GCG_PRICINGCB *pricingcb, GCG_PRICINGCBDATA *pricingcbdata)
GCG_EXPORT const char * GCGpricingcbGetName (GCG_PRICINGCB *pricingcb)
GCG_EXPORT const char * GCGpricingcbGetDesc (GCG_PRICINGCB *pricingcb)
GCG_EXPORT int GCGpricingcbGetPriority (GCG_PRICINGCB *pricingcb)
GCG_EXPORT SCIP_Longint GCGpricingcbGetNPrepricingCalls (GCG_PRICINGCB *pricingcb)
GCG_EXPORT SCIP_Longint GCGpricingcbGetNPostpricingCalls (GCG_PRICINGCB *pricingcb)
GCG_EXPORT SCIP_Real GCGpricingcbGetSetupTime (GCG *gcg, GCG_PRICINGCB *pricingcb)
GCG_EXPORT SCIP_Real GCGpricingcbGetTime (GCG *gcg, GCG_PRICINGCB *pricingcb)
GCG_EXPORT void GCGpricingcbSetEnabled (GCG_PRICINGCB *pricingcb, SCIP_Bool enabled)
GCG_EXPORT void GCGpricingcbSetExclusive (GCG_PRICINGCB *pricingcb, SCIP_Bool exclusive)
GCG_EXPORT SCIP_Bool GCGpricingcbIsEnabled (GCG_PRICINGCB *pricingcb)
GCG_EXPORT SCIP_Bool GCGpricingcbIsExclusive (GCG_PRICINGCB *pricingcb)

Function Documentation

◆ SCIP_DECL_SORTPTRCOMP() [1/2]

GCG_EXPORT SCIP_DECL_SORTPTRCOMP ( GCGpricingcbComp )

compares two pricing callback plugins w. r. to their priority

compares two pricing callbacks w.r.t their priority

Definition at line 57 of file pricingcb.c.

References assert(), and GCG_Pricingcb::priority.

◆ SCIP_DECL_SORTPTRCOMP() [2/2]

GCG_EXPORT SCIP_DECL_SORTPTRCOMP ( GCGpricingcbCompName )

comparison method for sorting pricing callback plugins w.r.t. to their name

comparison method for sorting pricing callbacks w.r.t their name

Definition at line 69 of file pricingcb.c.

References GCGpricingcbGetName().

◆ GCGpricingcbGetData()

GCG_EXPORT GCG_PRICINGCBDATA * GCGpricingcbGetData ( GCG_PRICINGCB * pricingcb)

gets user data of the pricing callback plugin

gets user data of the pricing callback

Parameters
pricingcbpricing callback

Definition at line 410 of file pricingcb.c.

References assert(), GCGpricingcbGetData(), and GCG_Pricingcb::pricingcbdata.

Referenced by GCGpricingcbGetData().

◆ GCGpricingcbSetData()

GCG_EXPORT void GCGpricingcbSetData ( GCG_PRICINGCB * pricingcb,
GCG_PRICINGCBDATA * pricingcbdata )

sets user data of the pricing callback plugin; user has to free old data in advance!

sets user data of the pricing callback; user has to free old data in advance!

Parameters
pricingcbpricing callback
pricingcbdatanew pricing callback user data

Definition at line 420 of file pricingcb.c.

References assert(), GCGpricingcbSetData(), and GCG_Pricingcb::pricingcbdata.

Referenced by GCGpricingcbSetData().

◆ GCGpricingcbGetName()

GCG_EXPORT const char * GCGpricingcbGetName ( GCG_PRICINGCB * pricingcb)

gets name of the pricing callback plugin

gets name of the pricing callback

Parameters
pricingcbpricing callback

Definition at line 498 of file pricingcb.c.

References assert(), GCGpricingcbGetName(), and GCG_Pricingcb::name.

Referenced by GCGpricerFindPricingcb(), GCGpricingcbGetName(), and SCIP_DECL_SORTPTRCOMP().

◆ GCGpricingcbGetDesc()

GCG_EXPORT const char * GCGpricingcbGetDesc ( GCG_PRICINGCB * pricingcb)

gets description of the pricing callback plugin

gets description of the pricing callback

Parameters
pricingcbpricing callback

Definition at line 508 of file pricingcb.c.

References assert(), GCG_Pricingcb::desc, and GCGpricingcbGetDesc().

Referenced by GCGpricingcbGetDesc().

◆ GCGpricingcbGetPriority()

GCG_EXPORT int GCGpricingcbGetPriority ( GCG_PRICINGCB * pricingcb)

gets priority of the pricing callback plugin

gets priority of the pricing callback

Parameters
pricingcbpricing callback

Definition at line 518 of file pricingcb.c.

References assert(), GCGpricingcbGetPriority(), and GCG_Pricingcb::priority.

Referenced by GCGpricingcbGetPriority().

◆ GCGpricingcbGetNPrepricingCalls()

GCG_EXPORT SCIP_Longint GCGpricingcbGetNPrepricingCalls ( GCG_PRICINGCB * pricingcb)

gets the number of times the pre-pricing method of the pricing callback plugin was called

Parameters
pricingcbpricing callback

Definition at line 528 of file pricingcb.c.

References assert(), GCGpricingcbGetNPrepricingCalls(), and GCG_Pricingcb::nprepricingcalls.

Referenced by GCGpricingcbGetNPrepricingCalls().

◆ GCGpricingcbGetNPostpricingCalls()

GCG_EXPORT SCIP_Longint GCGpricingcbGetNPostpricingCalls ( GCG_PRICINGCB * pricingcb)

gets the number of times the post-pricing method of the pricing callback plugin was called

Parameters
pricingcbpricing callback

Definition at line 538 of file pricingcb.c.

References assert(), GCGpricingcbGetNPostpricingCalls(), and GCG_Pricingcb::npostpricingcalls.

Referenced by GCGpricingcbGetNPostpricingCalls().

◆ GCGpricingcbGetSetupTime()

GCG_EXPORT SCIP_Real GCGpricingcbGetSetupTime ( GCG * gcg,
GCG_PRICINGCB * pricingcb )

gets time in seconds used in this pricing callback plugin for setting up for next stages

gets time in seconds used by this pricing callback for setting up

Parameters
gcgGCG data structure
pricingcbpricing callback

Definition at line 548 of file pricingcb.c.

References assert(), GCGgetMasterprob(), GCGpricingcbGetSetupTime(), and GCG_Pricingcb::setuptime.

Referenced by GCGpricingcbGetSetupTime().

◆ GCGpricingcbGetTime()

GCG_EXPORT SCIP_Real GCGpricingcbGetTime ( GCG * gcg,
GCG_PRICINGCB * pricingcb )

gets time in seconds used in this pricing callback plugin

gets time in seconds used in this pricing callback

Parameters
gcgGCG data structure
pricingcbpricing callback

Definition at line 559 of file pricingcb.c.

References assert(), GCGgetMasterprob(), GCGpricingcbGetTime(), and GCG_Pricingcb::pricingcbclock.

Referenced by GCGpricingcbGetTime().

◆ GCGpricingcbSetEnabled()

GCG_EXPORT void GCGpricingcbSetEnabled ( GCG_PRICINGCB * pricingcb,
SCIP_Bool enabled )

sets the enabled flag of the pricing callback plugin method

sets the enabled flag of the pricing callback method

Parameters
pricingcbpricing callback
enabledflag to indicate whether the pricing callback is enabled

Definition at line 570 of file pricingcb.c.

References assert(), GCG_Pricingcb::enabled, and GCGpricingcbSetEnabled().

Referenced by GCGpricingcbSetEnabled(), and performWeightedPricing().

◆ GCGpricingcbSetExclusive()

GCG_EXPORT void GCGpricingcbSetExclusive ( GCG_PRICINGCB * pricingcb,
SCIP_Bool exclusive )

sets the exclusive flag of the pricing callback plugin method

Parameters
pricingcbpricing callback
exclusiveflag to indicate whether the pricing callback plugin is executed exclusively

Definition at line 581 of file pricingcb.c.

References assert(), GCG_Pricingcb::exclusive, and GCGpricingcbSetExclusive().

Referenced by GCGpricingcbSetExclusive(), and performWeightedPricing().

◆ GCGpricingcbIsEnabled()

GCG_EXPORT SCIP_Bool GCGpricingcbIsEnabled ( GCG_PRICINGCB * pricingcb)

returns whether the pricing callback is enabled

Parameters
pricingcbpricing callback

Definition at line 592 of file pricingcb.c.

References assert(), GCG_Pricingcb::enabled, and GCGpricingcbIsEnabled().

Referenced by GCGpricingcbIsEnabled().

◆ GCGpricingcbIsExclusive()

GCG_EXPORT SCIP_Bool GCGpricingcbIsExclusive ( GCG_PRICINGCB * pricingcb)

returns whether the methods of this pricing callback should be executed exclusively

Parameters
pricingcbpricing callback

Definition at line 602 of file pricingcb.c.

References assert(), GCG_Pricingcb::exclusive, and GCGpricingcbIsExclusive().

Referenced by GCGpricingcbIsExclusive().