Dip  0.92.4
Public Member Functions | Private Attributes | List of all members
BcpsDecompSolution Class Reference

This class holds a MIP feasible primal solution. More...

#include <BcpsDecompSolution.h>

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

Public Member Functions

 BcpsDecompSolution ()
 
 BcpsDecompSolution (const int s, const double *val, const double obj)
 
 ~BcpsDecompSolution ()
 
double getObjValue () const
 Get the objective value value. More...
 
virtual double getQuality () const
 
int getSize () const
 Get the size of the solution. More...
 
const double * getColSolution () const
 Get the column solution. More...
 
double getColSolution (int i) const
 Get item i in the solution vector. 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)
 

Private Attributes

int size_
 
double * value_
 
double objective_
 

Additional Inherited Members

- Protected Attributes inherited from AlpsKnowledge
KnowledgeType type_
 

Detailed Description

This class holds a MIP feasible primal solution.

Definition at line 35 of file BcpsDecompSolution.h.

Constructor & Destructor Documentation

BcpsDecompSolution::BcpsDecompSolution ( )
inline

Definition at line 42 of file BcpsDecompSolution.h.

BcpsDecompSolution::BcpsDecompSolution ( const int  s,
const double *  val,
const double  obj 
)
inline

Definition at line 48 of file BcpsDecompSolution.h.

References size_, and value_.

BcpsDecompSolution::~BcpsDecompSolution ( )
inline

Definition at line 58 of file BcpsDecompSolution.h.

References value_.

Member Function Documentation

double BcpsDecompSolution::getObjValue ( ) const
inline

Get the objective value value.

Definition at line 66 of file BcpsDecompSolution.h.

References objective_.

Referenced by getQuality().

virtual double BcpsDecompSolution::getQuality ( ) const
inlinevirtual

Definition at line 68 of file BcpsDecompSolution.h.

References getObjValue().

int BcpsDecompSolution::getSize ( ) const
inline

Get the size of the solution.

Definition at line 71 of file BcpsDecompSolution.h.

References size_.

const double* BcpsDecompSolution::getColSolution ( ) const
inline

Get the column solution.

Definition at line 74 of file BcpsDecompSolution.h.

References value_.

double BcpsDecompSolution::getColSolution ( int  i) const
inline

Get item i in the solution vector.

Definition at line 78 of file BcpsDecompSolution.h.

References value_.

virtual void BcpsDecompSolution::print ( std::ostream &  os) const
virtual

Print out the solution.

Reimplemented from AlpsSolution.

Member Data Documentation

int BcpsDecompSolution::size_
private

Definition at line 37 of file BcpsDecompSolution.h.

Referenced by BcpsDecompSolution(), and getSize().

double* BcpsDecompSolution::value_
private

Definition at line 38 of file BcpsDecompSolution.h.

Referenced by BcpsDecompSolution(), getColSolution(), and ~BcpsDecompSolution().

double BcpsDecompSolution::objective_
private

Definition at line 39 of file BcpsDecompSolution.h.

Referenced by getObjValue().


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