15 #ifndef AlpsDecompSolution_h
16 #define AlpsDecompSolution_h
85 virtual void print(std::ostream& os)
const {
const int getSize() const
Get length of solution.
virtual void print(std::ostream &os) const
Print out the solution.
virtual ~AlpsDecompSolution()
Get length of solution.
DecompConstraintSet * getModel() const
const DecompApp * m_app
Pointer to DecompApp for the print function.
AlpsDecompSolution(const int size, const double *values, const double quality, const DecompApp *app=NULL, const int depth=-1, const AlpsNodeIndex_t index=-1)
Get length of solution.
#define CoinAssertHint(expression, hint)
double * m_values
Solution values.
double m_quality
Quality of solution (bound wrt to objective).
const DecompSubModel & getModelCore() const
Get a ptr to the current solution (in x-space).
DecompAlgo * getDecompAlgo() const
Get a pointer to the base algorithm class.
int m_size
Length of solution (number of columns).
const std::vector< std::string > & getColNames() const
const double * getValues() const
Get solution values.
virtual void printOriginalSolution(const int n_cols, const std::vector< std::string > &colNames, const double *solution, std::ostream *os=&std::cout) const
Initialize the dual vector for PhaseII of PC.
#define CoinAssert(expression)
Base class for DECOMP algorithms.
The main application class.
AlpsDecompSolution()
Get length of solution.
const double getQuality() const
Get quality of solution.