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 |
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 | ||
) |
|
inline |
Definition at line 50 of file DippyDecompAlgo.h.
|
inline |
Definition at line 53 of file DippyDecompAlgo.h.
|
inline |
Definition at line 56 of file DippyDecompAlgo.h.
|
inline |
Definition at line 59 of file DippyDecompAlgo.h.
void DippyAlgoMixin::postProcessBranch | ( | DecompAlgo * | algo, |
DecompStatus | decompStatus | ||
) |
void DippyAlgoMixin::postProcessNode | ( | DecompAlgo * | algo, |
DecompStatus | decompStatus | ||
) |
|
protected |
Definition at line 30 of file DippyDecompAlgo.h.
|
protected |
Definition at line 31 of file DippyDecompAlgo.h.