Dip 0.95.0
|
#include <AlpsDecompTreeNode.h>
Public Member Functions | |
AlpsDecompTreeNode () | |
Default constructor. | |
virtual | ~AlpsDecompTreeNode () |
Destructor. | |
bool | checkIncumbent (AlpsDecompModel *model, const DecompSolution *decompSol) |
AlpsTreeNode * | createNewTreeNode (AlpsNodeDesc *&desc) const |
Create a new node based on given desc. | |
int | chooseBranchingObject (AlpsModel *model) |
To be defined. | |
int | process (bool isRoot=false, bool rampUp=false) |
Performing the bounding operation. | |
std::vector< CoinTriple< AlpsNodeDesc *, AlpsNodeStatus, double > > | branch () |
Takes the explicit description of the current active node and creates the children's descriptions, which contain information about how the branching is to be done. | |
![]() | |
AlpsTreeNode () | |
virtual | ~AlpsTreeNode () |
bool | operator< (const AlpsTreeNode &compNode) |
AlpsNodeDesc * | modifyDesc () |
AlpsNodeDesc * | getDesc () const |
void | setDesc (AlpsNodeDesc *desc) |
AlpsKnowledgeBroker * | getKnowledgeBroker () const |
void | setKnowledgeBroker (AlpsKnowledgeBroker *kb) |
void | removeChild (AlpsTreeNode *&child) |
void | addChild (AlpsTreeNode *&child) |
void | removeDescendants () |
AlpsNodeStatus | getStatus () const |
void | setStatus (const AlpsNodeStatus stat) |
bool | isCandidate () const |
bool | isEvaluated () const |
bool | isPregnant () const |
bool | isBranched () const |
bool | isFathomed () const |
bool | isDiscarded () const |
bool | isActive () const |
void | setActive (const bool yesno) |
AlpsNodeIndex_t | getIndex () const |
void | setIndex (const AlpsNodeIndex_t index) |
int | getDepth () const |
void | setDepth (const int depth) |
double | getSolEstimate () const |
void | setSolEstimate (double est) |
double | getQuality () const |
void | setQuality (double quality) |
int | getNumChildren () const |
void | setNumChildren (const int numChildren) |
void | modifyNumChildren (const int s) |
AlpsTreeNode * | getChild (const int i) const |
void | setChild (const int i, AlpsTreeNode *node) |
AlpsTreeNode * | getParent () const |
void | setParent (AlpsTreeNode *parent) |
AlpsNodeIndex_t | getParentIndex () const |
void | setParentIndex (AlpsNodeIndex_t index) |
int | getExplicit () const |
void | setExplicit (int fp) |
virtual void | convertToExplicit () |
virtual void | convertToRelative () |
int | getSentMark () const |
void | setSentMark (const int tf) |
AlpsNodeStatus | getStatus () const |
void | setStatus (const AlpsNodeStatus stat) |
bool | isCandidate () const |
bool | isEvaluated () const |
bool | isPregnant () const |
bool | isBranched () const |
bool | isFathomed () const |
bool | isDiscarded () const |
bool | isActive () const |
void | setActive (const bool yesno) |
AlpsNodeIndex_t | getIndex () const |
void | setIndex (const AlpsNodeIndex_t index) |
int | getDepth () const |
void | setDepth (const int depth) |
double | getSolEstimate () const |
void | setSolEstimate (double est) |
double | getQuality () const |
void | setQuality (double quality) |
int | getNumChildren () const |
void | setNumChildren (const int numChildren) |
void | modifyNumChildren (const int s) |
AlpsTreeNode * | getChild (const int i) const |
void | setChild (const int i, AlpsTreeNode *node) |
AlpsTreeNode * | getParent () const |
void | setParent (AlpsTreeNode *parent) |
AlpsNodeIndex_t | getParentIndex () const |
void | setParentIndex (AlpsNodeIndex_t index) |
int | getExplicit () const |
void | setExplicit (int fp) |
virtual void | convertToExplicit () |
virtual void | convertToRelative () |
int | getSentMark () const |
void | setSentMark (const int tf) |
![]() | |
AlpsKnowledge () | |
virtual | ~AlpsKnowledge () |
KnowledgeType | getType () |
void | setType (KnowledgeType t) |
virtual AlpsEncoded * | encode () const |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) |
virtual AlpsKnowledge * | decode (AlpsEncoded &encoded) const |
AlpsEncoded * | getEncoded () const |
void | setEncoded (AlpsEncoded *e) |
Additional Inherited Members | |
![]() | |
bool | active_ |
AlpsNodeIndex_t | index_ |
int | depth_ |
double | solEstimate_ |
double | quality_ |
AlpsTreeNode * | parent_ |
AlpsNodeIndex_t | parentIndex_ |
int | numChildren_ |
AlpsTreeNode ** | children_ |
int | explicit_ |
AlpsNodeDesc * | desc_ |
AlpsNodeStatus | status_ |
AlpsKnowledgeBroker * | knowledgeBroker_ |
int | sentMark_ |
![]() | |
KnowledgeType | type_ |
Definition at line 27 of file AlpsDecompTreeNode.h.
|
inline |
Default constructor.
Definition at line 39 of file AlpsDecompTreeNode.h.
|
inlinevirtual |
Destructor.
Definition at line 48 of file AlpsDecompTreeNode.h.
bool AlpsDecompTreeNode::checkIncumbent | ( | AlpsDecompModel * | model, |
const DecompSolution * | decompSol ) |
|
virtual |
Create a new node based on given desc.
Implements AlpsTreeNode.
int AlpsDecompTreeNode::chooseBranchingObject | ( | AlpsModel * | model | ) |
To be defined.
??
int AlpsDecompTreeNode::process | ( | bool | isRoot = false, |
bool | rampUp = false ) |
Performing the bounding operation.
std::vector< CoinTriple< AlpsNodeDesc *, AlpsNodeStatus, double > > AlpsDecompTreeNode::branch | ( | ) |
Takes the explicit description of the current active node and creates the children's descriptions, which contain information about how the branching is to be done.
The stati of the children are AlpsNodeStatusCandidate.