Scippy

SCIP

Solving Constraint Integer Programs

objpricer.cpp File Reference

Detailed Description

C++ wrapper for variable pricers.

Author
Tobias Achterberg

Definition in file objpricer.cpp.

#include <cassert>
#include "objpricer.h"

Go to the source code of this file.

Functions

static SCIP_DECL_PRICERCOPY (pricerCopyObj)
 
static SCIP_DECL_PRICERFREE (pricerFreeObj)
 
static SCIP_DECL_PRICERINIT (pricerInitObj)
 
static SCIP_DECL_PRICEREXIT (pricerExitObj)
 
static SCIP_DECL_PRICERINITSOL (pricerInitsolObj)
 
static SCIP_DECL_PRICEREXITSOL (pricerExitsolObj)
 
static SCIP_DECL_PRICERREDCOST (pricerRedcostObj)
 
static SCIP_DECL_PRICERFARKAS (pricerFarkasObj)
 
SCIP_RETCODE SCIPincludeObjPricer (SCIP *scip, scip::ObjPricer *objpricer, SCIP_Bool deleteobject)
 
scip::ObjPricerSCIPfindObjPricer (SCIP *scip, const char *name)
 
scip::ObjPricerSCIPgetObjPricer (SCIP *scip, SCIP_PRICER *pricer)
 

Function Documentation

static SCIP_DECL_PRICERCOPY ( pricerCopyObj  )
static

copy method for pricer plugins (called when SCIP copies plugins)

Definition at line 53 of file objpricer.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPincludeObjPricer(), SCIPpricerGetData(), and TRUE.

static SCIP_DECL_PRICERFREE ( pricerFreeObj  )
static

destructor of variable pricer to free user data (called when SCIP is exiting)

Definition at line 78 of file objpricer.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, SCIPpricerGetData(), and SCIPpricerSetData().

static SCIP_DECL_PRICERINIT ( pricerInitObj  )
static

initialization method of variable pricer (called after problem was transformed)

Definition at line 104 of file objpricer.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPpricerGetData().

static SCIP_DECL_PRICEREXIT ( pricerExitObj  )
static

deinitialization method of variable pricer (called before transformed problem is freed)

Definition at line 122 of file objpricer.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPpricerGetData().

static SCIP_DECL_PRICERINITSOL ( pricerInitsolObj  )
static

solving process initialization method of variable pricer (called when branch and bound process is about to begin)

Definition at line 139 of file objpricer.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPpricerGetData().

static SCIP_DECL_PRICEREXITSOL ( pricerExitsolObj  )
static

solving process deinitialization method of variable pricer (called before branch and bound process data is freed)

Definition at line 156 of file objpricer.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPpricerGetData().

static SCIP_DECL_PRICERREDCOST ( pricerRedcostObj  )
static

reduced cost pricing method of variable pricer for feasible LPs

Definition at line 173 of file objpricer.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPpricerGetData().

static SCIP_DECL_PRICERFARKAS ( pricerFarkasObj  )
static

farkas pricing method of variable pricer for infeasible LPs

Definition at line 190 of file objpricer.cpp.

References NULL, SCIP_CALL, SCIP_OKAY, and SCIPpricerGetData().

SCIP_RETCODE SCIPincludeObjPricer ( SCIP scip,
scip::ObjPricer objpricer,
SCIP_Bool  deleteobject 
)

creates the variable pricer for the given variable pricer object and includes it in SCIP

Parameters
scipSCIP data structure
objpricervariable pricer object
deleteobjectshould the pricer object be deleted when pricer is freed?

Definition at line 212 of file objpricer.cpp.

References NULL, SCIP_CALL, scip::ObjPricer::scip_delay_, scip::ObjPricer::scip_desc_, scip::ObjPricer::scip_name_, SCIP_OKAY, scip::ObjPricer::scip_priority_, and SCIPincludePricer().

Referenced by SCIP_DECL_PRICERCOPY(), and scip::ObjPricer::SCIP_DECL_PRICERFARKAS().

scip::ObjPricer* SCIPfindObjPricer ( SCIP scip,
const char *  name 
)

returns the variable pricer object of the given name, or 0 if not existing

Parameters
scipSCIP data structure
namename of variable pricer

Definition at line 240 of file objpricer.cpp.

References NULL, SCIPfindPricer(), and SCIPpricerGetData().

Referenced by scip::ObjPricer::SCIP_DECL_PRICERFARKAS().

scip::ObjPricer* SCIPgetObjPricer ( SCIP scip,
SCIP_PRICER pricer 
)

returns the variable pricer object for the given pricer

Parameters
scipSCIP data structure
pricerpricer

Definition at line 259 of file objpricer.cpp.

References NULL, and SCIPpricerGetData().

Referenced by scip::ObjPricer::SCIP_DECL_PRICERFARKAS().