28 #ifndef BcpsDecompSolution_h 29 #define BcpsDecompSolution_h 53 value_ =
new double [size_];
54 memcpy(value_, val,
sizeof(
double) * size_);
81 virtual void print(std::ostream& os)
const;
virtual void print(std::ostream &os) const
Print out the solution.
virtual AlpsEncoded * encode() const
const double * getColSolution() const
Get the column solution.
virtual AlpsKnowledge * decode(AlpsEncoded &encoded) const
This class holds a MIP feasible primal solution.
int getSize() const
Get the size of the solution.
virtual double getQuality() const
BcpsDecompSolution(const int s, const double *val, const double obj)
double getObjValue() const
Get the objective value value.
double getColSolution(int i) const
Get item i in the solution vector.