15 #ifndef VrpSolution_h_
16 #define VrpSolution_h_
18 #include "BlisSolution.h"
53 virtual void print(std::ostream& os)
const;
61 int cur_vert =
opt_[0].
next, count = 1;
62 while (cur_vert != 0){
67 for (
int j = 0; j < count; ++j) {
84 for (
int j = 0; j < count; ++j) {
AlpsEncoded & readRep(T &value)
Read a single object of type T from repsentation_ .
void setOpt(_node *opt)
Set opt.
AlpsEncoded & writeRep(const T &value)
Write a single object of type T in repsentation_ .
virtual AlpsKnowledge * decode(AlpsEncoded &encoded) const
The method that decodes the solution from a encoded object.
virtual ~VrpSolution()
Destructor.
AlpsReturnStatus decodeBcps(AlpsEncoded &encoded)
Unpack Bcps part of solution from an encoded objects.
This data structure is to contain the packed form of an encodable knowledge.
virtual AlpsEncoded * encode() const
The method that encodes the solution into a encoded object.
virtual void print(std::ostream &os) const
Print the solution.
AlpsReturnStatus encodeBcps(AlpsEncoded *encoded) const
Pack Bcps part of solution into an encoded objects.
This class contains the solutions generated by the LP solver (either primal or dual.
VrpSolution()
Default constructor.
The abstract base class of any user-defined class that Alps has to know about in order to encode/deco...
This class contains a vrp solution.