Dip 0.95.0
Loading...
Searching...
No Matches
AlpsDecompTreeNode Class Reference

#include <AlpsDecompTreeNode.h>

+ Inheritance diagram for AlpsDecompTreeNode:
+ Collaboration diagram for AlpsDecompTreeNode:

Public Member Functions

 AlpsDecompTreeNode ()
 Default constructor.
 
virtual ~AlpsDecompTreeNode ()
 Destructor.
 
bool checkIncumbent (AlpsDecompModel *model, const DecompSolution *decompSol)
 
AlpsTreeNodecreateNewTreeNode (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.
 
- Public Member Functions inherited from AlpsTreeNode
 AlpsTreeNode ()
 
virtual ~AlpsTreeNode ()
 
bool operator< (const AlpsTreeNode &compNode)
 
AlpsNodeDescmodifyDesc ()
 
AlpsNodeDescgetDesc () const
 
void setDesc (AlpsNodeDesc *desc)
 
AlpsKnowledgeBrokergetKnowledgeBroker () 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)
 
AlpsTreeNodegetChild (const int i) const
 
void setChild (const int i, AlpsTreeNode *node)
 
AlpsTreeNodegetParent () 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)
 
AlpsTreeNodegetChild (const int i) const
 
void setChild (const int i, AlpsTreeNode *node)
 
AlpsTreeNodegetParent () 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)
 
- Public Member Functions inherited from AlpsKnowledge
 AlpsKnowledge ()
 
virtual ~AlpsKnowledge ()
 
KnowledgeType getType ()
 
void setType (KnowledgeType t)
 
virtual AlpsEncodedencode () const
 
virtual AlpsReturnStatus encode (AlpsEncoded *encoded)
 
virtual AlpsKnowledgedecode (AlpsEncoded &encoded) const
 
AlpsEncodedgetEncoded () const
 
void setEncoded (AlpsEncoded *e)
 

Additional Inherited Members

- Protected Attributes inherited from AlpsTreeNode
bool active_
 
AlpsNodeIndex_t index_
 
int depth_
 
double solEstimate_
 
double quality_
 
AlpsTreeNodeparent_
 
AlpsNodeIndex_t parentIndex_
 
int numChildren_
 
AlpsTreeNode ** children_
 
int explicit_
 
AlpsNodeDescdesc_
 
AlpsNodeStatus status_
 
AlpsKnowledgeBrokerknowledgeBroker_
 
int sentMark_
 
- Protected Attributes inherited from AlpsKnowledge
KnowledgeType type_
 

Detailed Description

Definition at line 27 of file AlpsDecompTreeNode.h.

Constructor & Destructor Documentation

◆ AlpsDecompTreeNode()

AlpsDecompTreeNode::AlpsDecompTreeNode ( )
inline

Default constructor.

Definition at line 39 of file AlpsDecompTreeNode.h.

◆ ~AlpsDecompTreeNode()

virtual AlpsDecompTreeNode::~AlpsDecompTreeNode ( )
inlinevirtual

Destructor.

Definition at line 48 of file AlpsDecompTreeNode.h.

Member Function Documentation

◆ checkIncumbent()

bool AlpsDecompTreeNode::checkIncumbent ( AlpsDecompModel * model,
const DecompSolution * decompSol )

◆ createNewTreeNode()

AlpsTreeNode * AlpsDecompTreeNode::createNewTreeNode ( AlpsNodeDesc *& desc) const
virtual

Create a new node based on given desc.

Implements AlpsTreeNode.

◆ chooseBranchingObject()

int AlpsDecompTreeNode::chooseBranchingObject ( AlpsModel * model)

To be defined.?

?

◆ process()

int AlpsDecompTreeNode::process ( bool isRoot = false,
bool rampUp = false )

Performing the bounding operation.

◆ branch()

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.


The documentation for this class was generated from the following file: