Blis 0.94
|
This class contains the solutions generated by the LP solver (either primal or dual. More...
#include <BlisSolution.h>
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 AlpsEncoded * | encode () const |
The method that encodes the solution into a encoded object. More... | |
virtual AlpsKnowledge * | decode (AlpsEncoded &encoded) const |
The method that decodes the solution from a encoded object. More... | |
virtual AlpsEncoded * | encode () const |
Check if IP feasible. More... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) |
Check if IP feasible. More... | |
![]() | |
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_p * | getObjects () 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 BcpsSolution * | selectNonzeros (const double etol=1e-5) const |
virtual BcpsSolution * | selectFractional (const double etol=1e-5) const |
int | getSize () const |
const BcpsObject_p * | getObjects () 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 BcpsSolution * | selectNonzeros (const double etol=1e-5) const |
virtual BcpsSolution * | selectFractional (const double etol=1e-5) const |
![]() | |
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 |
![]() | |
AlpsKnowledge () | |
virtual | ~AlpsKnowledge () |
KnowledgeType | getType () |
void | setType (KnowledgeType t) |
virtual AlpsEncoded * | encode () const |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) |
virtual AlpsKnowledge * | decode (AlpsEncoded &encoded) const |
AlpsEncoded * | getEncoded () const |
void | setEncoded (AlpsEncoded *e) |
Additional Inherited Members | |
![]() | |
int | size_ |
BcpsObject_p * | objects_ |
double * | values_ |
double | quality_ |
![]() | |
KnowledgeType | type_ |
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.
|
inline |
Default constructor.
Definition at line 43 of file BlisSolution.h.
|
inline |
Useful constructor.
Definition at line 49 of file BlisSolution.h.
|
inlinevirtual |
Destructor.
Definition at line 55 of file BlisSolution.h.
|
inlinevirtual |
Print out the solution.
Print the solution.
Reimplemented from BcpsSolution.
Definition at line 59 of file BlisSolution.h.
|
inlinevirtual |
The method that encodes the solution into a encoded object.
Reimplemented from AlpsKnowledge.
Definition at line 80 of file BlisSolution.h.
|
inlinevirtual |
The method that decodes the solution from a encoded object.
Reimplemented from AlpsKnowledge.
Definition at line 88 of file BlisSolution.h.
|
virtual |
Check if IP feasible.
If yes, return a IP solution; othersize, return NULL.
Reimplemented from AlpsKnowledge.
|
virtual |
Check if IP feasible.
If yes, return a IP solution; othersize, return NULL.
Reimplemented from AlpsKnowledge.