Dip
0.92.4
|
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. More... | |
virtual double | getQuality () const |
int | getSize () const |
Get the size of the solution. More... | |
const double * | getColSolution () const |
Get the column solution. More... | |
double | getColSolution (int i) const |
Get item i in the solution vector. More... | |
virtual void | print (std::ostream &os) const |
Print out the solution. More... | |
![]() | |
AlpsSolution () | |
Default constructor. More... | |
AlpsSolution (const AlpsNodeIndex_t i, const int d) | |
Constructor to set index and depth. More... | |
virtual | ~AlpsSolution () |
Destructor. More... | |
AlpsNodeIndex_t | getIndex () |
Get index where solution was found. More... | |
void | setIndex (const AlpsNodeIndex_t i) |
Set index where solution was found. More... | |
int | getDepth () |
Get depth where solution was found. More... | |
void | setDepth (const int d) |
Set depth where solution was found. More... | |
![]() | |
AlpsKnowledge () | |
virtual | ~AlpsKnowledge () |
KnowledgeType | getType () |
void | setType (KnowledgeType t) |
virtual AlpsEncoded * | encode () const |
This method should encode the content of the object and return a pointer to the encoded form. More... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) |
Pack into a encode object. More... | |
virtual AlpsKnowledge * | decode (AlpsEncoded &encoded) const |
This method should decode and return a pointer to a brand new object, i.e., the method must create a new object on the heap from the decoded data instead of filling up the object for which the method was invoked. More... | |
AlpsEncoded * | getEncoded () const |
Get/set encoded. More... | |
void | setEncoded (AlpsEncoded *e) |
Private Attributes | |
int | size_ |
double * | value_ |
double | objective_ |
Additional Inherited Members | |
![]() | |
KnowledgeType | type_ |
This class holds a MIP feasible primal solution.
Definition at line 35 of file BcpsDecompSolution.h.
|
inline |
Definition at line 42 of file BcpsDecompSolution.h.
|
inline |
Definition at line 48 of file BcpsDecompSolution.h.
|
inline |
Definition at line 58 of file BcpsDecompSolution.h.
References value_.
|
inline |
Get the objective value value.
Definition at line 66 of file BcpsDecompSolution.h.
References objective_.
Referenced by getQuality().
|
inlinevirtual |
Definition at line 68 of file BcpsDecompSolution.h.
References getObjValue().
|
inline |
|
inline |
|
inline |
Get item i in the solution vector.
Definition at line 78 of file BcpsDecompSolution.h.
References value_.
|
virtual |
Print out the solution.
Reimplemented from AlpsSolution.
|
private |
Definition at line 37 of file BcpsDecompSolution.h.
Referenced by BcpsDecompSolution(), and getSize().
|
private |
Definition at line 38 of file BcpsDecompSolution.h.
Referenced by BcpsDecompSolution(), getColSolution(), and ~BcpsDecompSolution().
|
private |
Definition at line 39 of file BcpsDecompSolution.h.
Referenced by getObjValue().