#include <VrpSolution.h>
Inheritance diagram for VrpSolution:


Public Member Functions | |
| VrpSolution () | |
| Default constructor. | |
| VrpSolution (int s, const double *values, double objValue, VrpModel *vrp=0) | |
| Useful constructor. | |
| virtual | ~VrpSolution () |
| Destructor. | |
| void | setOpt (_node *opt) |
| Set opt. | |
| 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. | |
Protected Attributes | |
| _node * | opt_ |
Definition at line 26 of file VrpSolution.h.
| VrpSolution::VrpSolution | ( | ) | [inline] |
| VrpSolution::VrpSolution | ( | int | s, | |
| const double * | values, | |||
| double | objValue, | |||
| VrpModel * | vrp = 0 | |||
| ) |
Useful constructor.
| virtual VrpSolution::~VrpSolution | ( | ) | [inline, virtual] |
| void VrpSolution::setOpt | ( | _node * | opt | ) | [inline] |
| virtual void VrpSolution::print | ( | std::ostream & | os | ) | const [virtual] |
| virtual AlpsEncoded* VrpSolution::encode | ( | ) | const [inline, virtual] |
The method that encodes the solution into a encoded object.
Reimplemented from BlisSolution.
Definition at line 56 of file VrpSolution.h.
References AlpsKnowledgeTypeSolution, BcpsSolution::encodeBcps(), _NODE::next, opt_, and AlpsEncoded::writeRep().
| virtual AlpsKnowledge* VrpSolution::decode | ( | AlpsEncoded & | encoded | ) | const [inline, virtual] |
The method that decodes the solution from a encoded object.
Reimplemented from BlisSolution.
Definition at line 76 of file VrpSolution.h.
References BcpsSolution::decodeBcps(), _NODE::next, AlpsEncoded::readRep(), setOpt(), and VrpSolution().
_node* VrpSolution::opt_ [protected] |
1.4.7