Dip
0.92.4
|
Mixin class for Dip Algorithms. More...
#include <DippyDecompAlgo.h>
Public Member Functions | |
DippyAlgoMixin (UtilParameters &utilParam, PyObject *pProb) | |
Constructor. More... | |
bool | chooseBranchSet (DecompAlgo *algo, std::vector< std::pair< int, double > > &downBranchLB, std::vector< std::pair< int, double > > &downBranchUB, std::vector< std::pair< int, double > > &upBranchLB, std::vector< std::pair< int, double > > &upBranchUB) |
PyObject * | getPDownLB () |
PyObject * | getPDownUB () |
PyObject * | getPUpLB () |
PyObject * | getPpUpUB () |
void | postProcessBranch (DecompAlgo *algo, DecompStatus decompStatus) |
void | postProcessNode (DecompAlgo *algo, DecompStatus decompStatus) |
Protected Attributes | |
PyObject * | m_pProb |
UtilParameters * | m_utilParam |
Private Attributes | |
PyObject * | pDownLB |
PyObject * | pDownUB |
PyObject * | pUpLB |
PyObject * | pUpUB |
Mixin class for Dip Algorithms.
This is a helper class for interfacing Dip Algo classes with Python. To add Python support to a standard DecompAlgo, create a subclass which also inherits from DippyAlgoMixin and override the virtual methods to call those provided by the Mixin class. See DippyAlgoC for an example.
Definition at line 22 of file DippyDecompAlgo.h.
|
inline |
Constructor.
utilParam | parameter class |
pProb | a DipProblem python object |
Definition at line 39 of file DippyDecompAlgo.h.
bool DippyAlgoMixin::chooseBranchSet | ( | DecompAlgo * | algo, |
std::vector< std::pair< int, double > > & | downBranchLB, | ||
std::vector< std::pair< int, double > > & | downBranchUB, | ||
std::vector< std::pair< int, double > > & | upBranchLB, | ||
std::vector< std::pair< int, double > > & | upBranchUB | ||
) |
Referenced by DippyAlgoC::chooseBranchSet(), DippyAlgoPC::chooseBranchSet(), and DippyAlgoRC::chooseBranchSet().
|
inline |
Definition at line 50 of file DippyDecompAlgo.h.
References pDownLB.
|
inline |
Definition at line 53 of file DippyDecompAlgo.h.
References pDownUB.
|
inline |
Definition at line 56 of file DippyDecompAlgo.h.
References pUpLB.
|
inline |
Definition at line 59 of file DippyDecompAlgo.h.
References pUpUB.
void DippyAlgoMixin::postProcessBranch | ( | DecompAlgo * | algo, |
DecompStatus | decompStatus | ||
) |
void DippyAlgoMixin::postProcessNode | ( | DecompAlgo * | algo, |
DecompStatus | decompStatus | ||
) |
Referenced by DippyAlgoC::postProcessNode(), DippyAlgoPC::postProcessNode(), and DippyAlgoRC::postProcessNode().
|
private |
Definition at line 24 of file DippyDecompAlgo.h.
Referenced by getPDownLB().
|
private |
Definition at line 25 of file DippyDecompAlgo.h.
Referenced by getPDownUB().
|
private |
Definition at line 26 of file DippyDecompAlgo.h.
Referenced by getPUpLB().
|
private |
Definition at line 27 of file DippyDecompAlgo.h.
Referenced by getPpUpUB().
|
protected |
Definition at line 30 of file DippyDecompAlgo.h.
|
protected |
Definition at line 31 of file DippyDecompAlgo.h.