Dip  0.92.4
Protected Attributes | List of all members
AlpsDecompSolution Class Reference

#include <AlpsDecompSolution.h>

Inheritance diagram for AlpsDecompSolution:
Inheritance graph
[legend]
Collaboration diagram for AlpsDecompSolution:
Collaboration graph
[legend]

Public Member Functions

Helper functions (public).
const int getSize () const
 Get length of solution. More...
 
const double * getValues () const
 Get solution values. More...
 
const double getQuality () const
 Get quality of solution. More...
 
 AlpsDecompSolution ()
 Get length of solution. More...
 
 AlpsDecompSolution (const int size, const double *values, const double quality, const DecompApp *app=NULL, const int depth=-1, const AlpsNodeIndex_t index=-1)
 Get length of solution. More...
 
virtual ~AlpsDecompSolution ()
 Get length of solution. More...
 
virtual void print (std::ostream &os) const
 Print out the solution. More...
 
- Public Member Functions inherited from AlpsSolution
 AlpsSolution ()
 Default constructor. More...
 
 AlpsSolution (const AlpsNodeIndex_t i, const int d)
 Constructor to set index and depth. More...
 
virtual ~AlpsSolution ()
 Destructor. More...
 
AlpsNodeIndex_t getIndex ()
 Get index where solution was found. More...
 
void setIndex (const AlpsNodeIndex_t i)
 Set index where solution was found. More...
 
int getDepth ()
 Get depth where solution was found. More...
 
void setDepth (const int d)
 Set depth where solution was found. More...
 
- Public Member Functions inherited from AlpsKnowledge
 AlpsKnowledge ()
 
virtual ~AlpsKnowledge ()
 
KnowledgeType getType ()
 
void setType (KnowledgeType t)
 
virtual AlpsEncodedencode () const
 This method should encode the content of the object and return a pointer to the encoded form. More...
 
virtual AlpsReturnStatus encode (AlpsEncoded *encoded)
 Pack into a encode object. More...
 
virtual AlpsKnowledgedecode (AlpsEncoded &encoded) const
 This method should decode and return a pointer to a brand new object, i.e., the method must create a new object on the heap from the decoded data instead of filling up the object for which the method was invoked. More...
 
AlpsEncodedgetEncoded () const
 Get/set encoded. More...
 
void setEncoded (AlpsEncoded *e)
 

Protected Attributes

int m_size
 Length of solution (number of columns). More...
 
double * m_values
 Solution values. More...
 
double m_quality
 Quality of solution (bound wrt to objective). More...
 
const DecompAppm_app
 Pointer to DecompApp for the print function. More...
 
- Protected Attributes inherited from AlpsKnowledge
KnowledgeType type_
 

Detailed Description

Definition at line 23 of file AlpsDecompSolution.h.

Constructor & Destructor Documentation

AlpsDecompSolution::AlpsDecompSolution ( )
inline

Get length of solution.

Definition at line 56 of file AlpsDecompSolution.h.

AlpsDecompSolution::AlpsDecompSolution ( const int  size,
const double *  values,
const double  quality,
const DecompApp app = NULL,
const int  depth = -1,
const AlpsNodeIndex_t  index = -1 
)
inline

Get length of solution.

Definition at line 63 of file AlpsDecompSolution.h.

References CoinAssert, CoinAssertHint, m_size, and m_values.

virtual AlpsDecompSolution::~AlpsDecompSolution ( )
inlinevirtual

Get length of solution.

Definition at line 80 of file AlpsDecompSolution.h.

References m_values, and UTIL_DELARR.

Member Function Documentation

const int AlpsDecompSolution::getSize ( ) const
inline

Get length of solution.

Definition at line 41 of file AlpsDecompSolution.h.

References m_size.

const double* AlpsDecompSolution::getValues ( ) const
inline

Get solution values.

Definition at line 46 of file AlpsDecompSolution.h.

References m_values.

const double AlpsDecompSolution::getQuality ( ) const
inline

Get quality of solution.

Definition at line 51 of file AlpsDecompSolution.h.

References m_quality.

virtual void AlpsDecompSolution::print ( std::ostream &  os) const
inlinevirtual

Member Data Documentation

int AlpsDecompSolution::m_size
protected

Length of solution (number of columns).

Definition at line 26 of file AlpsDecompSolution.h.

Referenced by AlpsDecompSolution(), getSize(), and print().

double* AlpsDecompSolution::m_values
protected

Solution values.

Definition at line 29 of file AlpsDecompSolution.h.

Referenced by AlpsDecompSolution(), getValues(), print(), and ~AlpsDecompSolution().

double AlpsDecompSolution::m_quality
protected

Quality of solution (bound wrt to objective).

Definition at line 32 of file AlpsDecompSolution.h.

Referenced by getQuality().

const DecompApp* AlpsDecompSolution::m_app
protected

Pointer to DecompApp for the print function.

Definition at line 35 of file AlpsDecompSolution.h.

Referenced by print().


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