Alps 1.5.11
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
KnapNodeDesc Class Reference

#include <KnapTreeNode.h>

+ Inheritance diagram for KnapNodeDesc:
+ Collaboration diagram for KnapNodeDesc:

Public Member Functions

 KnapNodeDesc (KnapModel *m)
 
 KnapNodeDesc (KnapModel *m, KnapVarStatus *&st, int cap, int val)
 
virtual ~KnapNodeDesc ()
 
void setVarStatus (const int i, const KnapVarStatus status)
 
KnapVarStatus getVarStatus (const int i)
 
const KnapVarStatusgetVarStati () const
 
int getUsedCapacity () const
 
int getUsedValue () const
 
- Public Member Functions inherited from AlpsNodeDesc
 AlpsNodeDesc ()
 
 AlpsNodeDesc (AlpsModel *m)
 
virtual ~AlpsNodeDesc ()
 
AlpsModelgetModel () const
 
void setModel (AlpsModel *m)
 
virtual AlpsReturnStatus encode (AlpsEncoded *encoded) const
 Pack node description into an encoded.
 
virtual AlpsReturnStatus decode (AlpsEncoded &encoded)
 Unpack a node description from an encoded.
 

Private Attributes

KnapVarStatusvarStatus_
 This array keeps track of which variables have been fixed by branching and which are still free.
 
int usedCapacity_
 The total size of the items fixed to be put into the knapsack.
 
int usedValue_
 

Additional Inherited Members

- Protected Attributes inherited from AlpsNodeDesc
AlpsModelmodel_
 A pointer to model.
 

Detailed Description

Definition at line 36 of file KnapTreeNode.h.

Constructor & Destructor Documentation

◆ KnapNodeDesc() [1/2]

KnapNodeDesc::KnapNodeDesc ( KnapModel * m)
inline

Definition at line 70 of file KnapTreeNode.h.

◆ KnapNodeDesc() [2/2]

KnapNodeDesc::KnapNodeDesc ( KnapModel * m,
KnapVarStatus *& st,
int cap,
int val )
inline

Definition at line 82 of file KnapTreeNode.h.

◆ ~KnapNodeDesc()

virtual KnapNodeDesc::~KnapNodeDesc ( )
inlinevirtual

Definition at line 94 of file KnapTreeNode.h.

Member Function Documentation

◆ setVarStatus()

void KnapNodeDesc::setVarStatus ( const int i,
const KnapVarStatus status )
inline

Definition at line 99 of file KnapTreeNode.h.

◆ getVarStatus()

KnapVarStatus KnapNodeDesc::getVarStatus ( const int i)
inline

Definition at line 102 of file KnapTreeNode.h.

◆ getVarStati()

const KnapVarStatus * KnapNodeDesc::getVarStati ( ) const
inline

Definition at line 105 of file KnapTreeNode.h.

◆ getUsedCapacity()

int KnapNodeDesc::getUsedCapacity ( ) const
inline

Definition at line 108 of file KnapTreeNode.h.

◆ getUsedValue()

int KnapNodeDesc::getUsedValue ( ) const
inline

Definition at line 109 of file KnapTreeNode.h.

Member Data Documentation

◆ varStatus_

KnapVarStatus* KnapNodeDesc::varStatus_
private

This array keeps track of which variables have been fixed by branching and which are still free.

Definition at line 50 of file KnapTreeNode.h.

◆ usedCapacity_

int KnapNodeDesc::usedCapacity_
private

The total size of the items fixed to be put into the knapsack.

Definition at line 53 of file KnapTreeNode.h.

◆ usedValue_

int KnapNodeDesc::usedValue_
private

Definition at line 54 of file KnapTreeNode.h.


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