This class holds a MIP feasible primal solution. More...
#include <BcpsDecompSolution.h>


Public Member Functions | |
| BcpsDecompSolution () | |
| BcpsDecompSolution (const int s, const double *val, const double obj) | |
| ~BcpsDecompSolution () | |
| double | getObjValue () const |
| Get the objective value value. | |
| virtual double | getQuality () const |
| int | getSize () const |
| Get the size of the solution. | |
| const double * | getColSolution () const |
| Get the column solution. | |
| double | getColSolution (int i) const |
| Get item i in the solution vector. | |
| virtual void | print (std::ostream &os) const |
| Print out the solution. | |
Private Attributes | |
| int | size_ |
| double * | value_ |
| double | objective_ |
This class holds a MIP feasible primal solution.
Definition at line 35 of file BcpsDecompSolution.h.
| BcpsDecompSolution::BcpsDecompSolution | ( | ) | [inline] |
Definition at line 42 of file BcpsDecompSolution.h.
| BcpsDecompSolution::BcpsDecompSolution | ( | const int | s, | |
| const double * | val, | |||
| const double | obj | |||
| ) | [inline] |
Definition at line 48 of file BcpsDecompSolution.h.
| BcpsDecompSolution::~BcpsDecompSolution | ( | ) | [inline] |
Definition at line 58 of file BcpsDecompSolution.h.
References value_.
| double BcpsDecompSolution::getObjValue | ( | ) | const [inline] |
Get the objective value value.
Definition at line 66 of file BcpsDecompSolution.h.
References objective_.
Referenced by getQuality().
| virtual double BcpsDecompSolution::getQuality | ( | ) | const [inline, virtual] |
Definition at line 68 of file BcpsDecompSolution.h.
References getObjValue().
| int BcpsDecompSolution::getSize | ( | ) | const [inline] |
| const double* BcpsDecompSolution::getColSolution | ( | ) | const [inline] |
| double BcpsDecompSolution::getColSolution | ( | int | i | ) | const [inline] |
Get item i in the solution vector.
Definition at line 78 of file BcpsDecompSolution.h.
References value_.
| virtual void BcpsDecompSolution::print | ( | std::ostream & | os | ) | const [virtual] |
Print out the solution.
Reimplemented from AlpsSolution.
int BcpsDecompSolution::size_ [private] |
Definition at line 37 of file BcpsDecompSolution.h.
Referenced by BcpsDecompSolution(), and getSize().
double* BcpsDecompSolution::value_ [private] |
Definition at line 38 of file BcpsDecompSolution.h.
Referenced by BcpsDecompSolution(), getColSolution(), and ~BcpsDecompSolution().
double BcpsDecompSolution::objective_ [private] |
Definition at line 39 of file BcpsDecompSolution.h.
Referenced by getObjValue().
1.6.1