Blis 0.94
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BlisSolution Class Reference

This class contains the solutions generated by the LP solver (either primal or dual. More...

#include <BlisSolution.h>

+ Inheritance diagram for BlisSolution:
+ Collaboration diagram for BlisSolution:

Public Member Functions

 BlisSolution ()
 Default constructor. More...
 
 BlisSolution (int s, const double *values, double objValue)
 Useful constructor. More...
 
virtual ~BlisSolution ()
 Destructor. More...
 
virtual void print (std::ostream &os) const
 Print out the solution. More...
 
virtual AlpsEncodedencode () const
 The method that encodes the solution into a encoded object. More...
 
virtual AlpsKnowledgedecode (AlpsEncoded &encoded) const
 The method that decodes the solution from a encoded object. More...
 
virtual AlpsEncodedencode () const
 Check if IP feasible. More...
 
virtual AlpsReturnStatus encode (AlpsEncoded *encoded)
 Check if IP feasible. More...
 
- Public Member Functions inherited from BcpsSolution
 BcpsSolution ()
 
 BcpsSolution (int size, const double *values, double q)
 
 BcpsSolution (int size, BcpsObject_p *&objects, double *&values, double q)
 
virtual ~BcpsSolution ()
 
virtual void print (std::ostream &os) const
 
AlpsReturnStatus encodeBcps (AlpsEncoded *encoded) const
 
AlpsReturnStatus decodeBcps (AlpsEncoded &encoded)
 
int getSize () const
 
const BcpsObject_pgetObjects () const
 
const double * getValues () const
 
double getQuality () const
 
void setSize (int s)
 
void assignObjects (BcpsObject_p *&obj)
 
void setValues (const double *vs, int s)
 
void setQuality (double q)
 
virtual BcpsSolutionselectNonzeros (const double etol=1e-5) const
 
virtual BcpsSolutionselectFractional (const double etol=1e-5) const
 
int getSize () const
 
const BcpsObject_pgetObjects () const
 
const double * getValues () const
 
double getQuality () const
 
void setSize (int s)
 
void assignObjects (BcpsObject_p *&obj)
 
void setValues (const double *vs, int s)
 
void setQuality (double q)
 
virtual BcpsSolutionselectNonzeros (const double etol=1e-5) const
 
virtual BcpsSolutionselectFractional (const double etol=1e-5) const
 
- Public Member Functions inherited from AlpsSolution
 AlpsSolution ()
 
 AlpsSolution (const AlpsNodeIndex_t i, const int d)
 
virtual ~AlpsSolution ()
 
AlpsNodeIndex_t getIndex ()
 
void setIndex (const AlpsNodeIndex_t i)
 
int getDepth ()
 
void setDepth (const int d)
 
virtual void print (std::ostream &os) const
 
- 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 BcpsSolution
int size_
 
BcpsObject_pobjects_
 
double * values_
 
double quality_
 
- Protected Attributes inherited from AlpsKnowledge
KnowledgeType type_
 

Detailed Description

This class contains the solutions generated by the LP solver (either primal or dual.

The class exists primarily to pass solutions to the object generator(s).

Definition at line 36 of file BlisSolution.h.

Constructor & Destructor Documentation

◆ BlisSolution() [1/2]

BlisSolution::BlisSolution ( )
inline

Default constructor.

Definition at line 43 of file BlisSolution.h.

◆ BlisSolution() [2/2]

BlisSolution::BlisSolution ( int  s,
const double *  values,
double  objValue 
)
inline

Useful constructor.

Definition at line 49 of file BlisSolution.h.

◆ ~BlisSolution()

virtual BlisSolution::~BlisSolution ( )
inlinevirtual

Destructor.

Definition at line 55 of file BlisSolution.h.

Member Function Documentation

◆ print()

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

Print out the solution.

Print the solution.

Reimplemented from BcpsSolution.

Definition at line 59 of file BlisSolution.h.

◆ encode() [1/3]

virtual AlpsEncoded * BlisSolution::encode ( ) const
inlinevirtual

The method that encodes the solution into a encoded object.

Reimplemented from AlpsKnowledge.

Definition at line 80 of file BlisSolution.h.

◆ decode()

virtual AlpsKnowledge * BlisSolution::decode ( AlpsEncoded encoded) const
inlinevirtual

The method that decodes the solution from a encoded object.

Reimplemented from AlpsKnowledge.

Definition at line 88 of file BlisSolution.h.

◆ encode() [2/3]

virtual AlpsEncoded * AlpsKnowledge::encode ( ) const
virtual

Check if IP feasible.

If yes, return a IP solution; othersize, return NULL.

Reimplemented from AlpsKnowledge.

◆ encode() [3/3]

virtual AlpsReturnStatus AlpsKnowledge::encode ( AlpsEncoded encoded)
virtual

Check if IP feasible.

If yes, return a IP solution; othersize, return NULL.

Reimplemented from AlpsKnowledge.


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