28 #ifndef BcpsDecompSolution_h 29 #define BcpsDecompSolution_h 31 #include "AlpsSolution.h" 53 value_ =
new double [size_];
54 memcpy(value_, val,
sizeof(
double) * size_);
81 virtual void print(std::ostream& os)
const;
85 virtual AlpsEncoded* encode()
const;
88 virtual AlpsKnowledge* decode(AlpsEncoded&)
const;
virtual void print(std::ostream &os) const
Print out the solution.
const double * getColSolution() const
Get the column solution.
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.