#include <BlisSolution.h>
Inheritance diagram for BlisSolution:
Public Member Functions | |
BlisSolution () | |
Default constructor. | |
BlisSolution (int s, const double *values, double objValue) | |
Useful constructor. | |
virtual | ~BlisSolution () |
Destructor. | |
virtual AlpsEncoded * | encode () const |
The method that encodes the solution into a encoded object. | |
virtual AlpsKnowledge * | decode (AlpsEncoded &encoded) const |
The method that decodes the solution from a encoded object. | |
BlisSolution () | |
Default constructor. | |
BlisSolution (int s, const double *values, double objValue) | |
Useful constructor. | |
virtual | ~BlisSolution () |
Destructor. | |
virtual void | print (std::ostream &os) const |
Print the solution. | |
virtual AlpsEncoded * | encode () const |
The method that encodes the solution into a encoded object. | |
virtual AlpsKnowledge * | decode (AlpsEncoded &encoded) const |
The method that decodes the solution from a encoded object. |
The class exists primarily to pass solutions to the object generator(s).
Definition at line 37 of file BlisSolution.h.
BlisSolution::BlisSolution | ( | ) | [inline] |
BlisSolution::BlisSolution | ( | int | s, | |
const double * | values, | |||
double | objValue | |||
) | [inline] |
virtual BlisSolution::~BlisSolution | ( | ) | [inline, virtual] |
BlisSolution::BlisSolution | ( | ) | [inline] |
BlisSolution::BlisSolution | ( | int | s, | |
const double * | values, | |||
double | objValue | |||
) | [inline] |
virtual BlisSolution::~BlisSolution | ( | ) | [inline, virtual] |
virtual AlpsEncoded* BlisSolution::encode | ( | ) | const [inline, virtual] |
The method that encodes the solution into a encoded object.
Reimplemented from AlpsKnowledge.
Reimplemented in VrpSolution.
Definition at line 63 of file BlisSolution.h.
References AlpsKnowledgeTypeSolution, and BcpsSolution::encodeBcps().
virtual AlpsKnowledge* BlisSolution::decode | ( | AlpsEncoded & | encoded | ) | const [inline, virtual] |
The method that decodes the solution from a encoded object.
Reimplemented from AlpsKnowledge.
Reimplemented in VrpSolution.
Definition at line 71 of file BlisSolution.h.
References BlisSolution(), and BcpsSolution::decodeBcps().
virtual void BlisSolution::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print the solution.
Reimplemented from BcpsSolution.
Reimplemented in VrpSolution.
Definition at line 59 of file BlisSolution.h.
References ALPS_FABS, flopc::floor(), BcpsSolution::size_, and BcpsSolution::values_.
virtual AlpsEncoded* BlisSolution::encode | ( | ) | const [inline, virtual] |
The method that encodes the solution into a encoded object.
Reimplemented from AlpsKnowledge.
Reimplemented in VrpSolution.
Definition at line 80 of file BlisSolution.h.
References AlpsKnowledgeTypeSolution, and BcpsSolution::encodeBcps().
virtual AlpsKnowledge* BlisSolution::decode | ( | AlpsEncoded & | encoded | ) | const [inline, virtual] |
The method that decodes the solution from a encoded object.
Reimplemented from AlpsKnowledge.
Reimplemented in VrpSolution.
Definition at line 88 of file BlisSolution.h.
References BlisSolution(), and BcpsSolution::decodeBcps().