24 #ifndef BlisSolution_h_
25 #define BlisSolution_h_
59 virtual void print(std::ostream& os)
const {
61 for (
int j = 0; j <
size_; ++j) {
63 nearInt = floor(
values_[j] + 0.5);
65 os <<
"x[" << j <<
"] = " << nearInt << std::endl;
68 os <<
"x[" << j <<
"] = " <<
values_[j] << std::endl;
virtual AlpsKnowledge * decode(AlpsEncoded &encoded) const
The method that decodes the solution from a encoded object.
AlpsReturnStatus decodeBcps(AlpsEncoded &encoded)
Unpack Bcps part of solution from an encoded objects.
This class holds the solution objects.
This data structure is to contain the packed form of an encodable knowledge.
virtual ~BlisSolution()
Destructor.
virtual AlpsEncoded * encode() const
The method that encodes the solution into a encoded object.
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.
The abstract base class of any user-defined class that Alps has to know about in order to encode/deco...
double * values_
Solution values.
BlisSolution(int s, const double *values, double objValue)
Useful constructor.
virtual void print(std::ostream &os) const
Print out the solution.
BlisSolution()
Default constructor.
virtual AlpsEncoded * encode() const
This method should encode the content of the object and return a pointer to the encoded form...
int size_
Size of values_.