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;
AlpsKnowledgeTypeSolution
virtual AlpsEncoded * encode() const
AlpsReturnStatus decodeBcps(AlpsEncoded &encoded)
AlpsReturnStatus encodeBcps(AlpsEncoded *encoded) const
This class contains the solutions generated by the LP solver (either primal or dual.
virtual AlpsEncoded * encode() const
The method that encodes the solution into a encoded object.
virtual void print(std::ostream &os) const
Print out the solution.
virtual ~BlisSolution()
Destructor.
BlisSolution()
Default constructor.
BlisSolution(int s, const double *values, double objValue)
Useful constructor.
virtual AlpsKnowledge * decode(AlpsEncoded &encoded) const
The method that decodes the solution from a encoded object.