C++ wrapper for variable pricer.
This class defines the interface for variable pricer implemented in C++. Note that there is a pure virtual function (this function has to be implemented). This function is: scip_redcost().
Definition at line 42 of file objpricer.h.
#include <objpricer.h>
Public Member Functions | |
ObjPricer (SCIP *scip, const char *name, const char *desc, int priority, SCIP_Bool delay) | |
virtual | ~ObjPricer () |
virtual | SCIP_DECL_PRICERFREE (scip_free) |
virtual | SCIP_DECL_PRICERINIT (scip_init) |
virtual | SCIP_DECL_PRICEREXIT (scip_exit) |
virtual | SCIP_DECL_PRICERINITSOL (scip_initsol) |
virtual | SCIP_DECL_PRICEREXITSOL (scip_exitsol) |
virtual | SCIP_DECL_PRICERREDCOST (scip_redcost)=0 |
virtual | SCIP_DECL_PRICERFARKAS (scip_farkas) |
Public Member Functions inherited from scip::ObjProbCloneable | |
virtual | ~ObjProbCloneable () |
virtual | SCIP_DECL_OBJPROBCLONE (ObjProbCloneable *clone) |
virtual | SCIP_DECL_OBJPROBISCLONEABLE (iscloneable) |
Data Fields | |
SCIP * | scip_ |
char * | scip_name_ |
char * | scip_desc_ |
const int | scip_priority_ |
const SCIP_Bool | scip_delay_ |
|
inline |
default constructor
scip | SCIP data structure |
name | name of variable pricer |
desc | description of variable pricer |
priority | priority of the variable pricer |
delay | should the pricer be delayed until no other pricers or already existing problem variables with negative reduced costs are found? if this is set to FALSE it may happen that the pricer produces columns that already exist in the problem (which are also priced in by the default problem variable pricing in the same round) |
Definition at line 65 of file objpricer.h.
References SCIP_CALL_ABORT, and SCIPduplicateMemoryArray.
|
inlinevirtual |
|
inlinevirtual |
destructor of variable pricer to free user data (called when SCIP is exiting)
Definition at line 101 of file objpricer.h.
References SCIP_OKAY.
|
inlinevirtual |
initialization method of variable pricer (called after problem was transformed)
Definition at line 110 of file objpricer.h.
References SCIP_OKAY.
|
inlinevirtual |
deinitialization method of variable pricer (called before transformed problem is freed)
Definition at line 119 of file objpricer.h.
References SCIP_OKAY.
|
inlinevirtual |
solving process initialization method of variable pricer (called when branch and bound process is about to begin)
Definition at line 128 of file objpricer.h.
References SCIP_OKAY.
|
inlinevirtual |
solving process deinitialization method of variable pricer (called before branch and bound process data is freed)
Definition at line 137 of file objpricer.h.
References SCIP_DECL_PRICERREDCOST(), and SCIP_OKAY.
|
pure virtual |
reduced cost pricing method of variable pricer for feasible LPs
Referenced by SCIP_DECL_PRICEREXITSOL().
|
inlinevirtual |
farkas pricing method of variable pricer for infeasible LPs
Definition at line 152 of file objpricer.h.
References SCIP_Bool, SCIP_OKAY, SCIPfindObjPricer(), SCIPgetObjPricer(), and SCIPincludeObjPricer().
SCIP* scip::ObjPricer::scip_ |
SCIP data structure
Definition at line 48 of file objpricer.h.
char* scip::ObjPricer::scip_name_ |
name of the variable pricer
Definition at line 51 of file objpricer.h.
Referenced by SCIPincludeObjPricer().
char* scip::ObjPricer::scip_desc_ |
description of the variable pricer
Definition at line 54 of file objpricer.h.
Referenced by SCIPincludeObjPricer().
const int scip::ObjPricer::scip_priority_ |
default priority of the variable pricer
Definition at line 57 of file objpricer.h.
Referenced by SCIPincludeObjPricer().
const SCIP_Bool scip::ObjPricer::scip_delay_ |
should the pricer be delayed until no other pricers or already existing problem variables with negative reduced costs are found?
Definition at line 62 of file objpricer.h.
Referenced by SCIPincludeObjPricer().