Dip
0.92.4
|
#include <AlpsDecompSolution.h>
Public Member Functions | |
Helper functions (public). | |
const int | getSize () const |
Get length of solution. More... | |
const double * | getValues () const |
Get solution values. More... | |
const double | getQuality () const |
Get quality of solution. More... | |
AlpsDecompSolution () | |
Get length of solution. More... | |
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. More... | |
virtual | ~AlpsDecompSolution () |
Get length of solution. 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) |
Protected Attributes | |
int | m_size |
Length of solution (number of columns). More... | |
double * | m_values |
Solution values. More... | |
double | m_quality |
Quality of solution (bound wrt to objective). More... | |
const DecompApp * | m_app |
Pointer to DecompApp for the print function. More... | |
![]() | |
KnowledgeType | type_ |
Definition at line 23 of file AlpsDecompSolution.h.
|
inline |
Get length of solution.
Definition at line 56 of file AlpsDecompSolution.h.
|
inline |
Get length of solution.
Definition at line 63 of file AlpsDecompSolution.h.
References CoinAssert, CoinAssertHint, m_size, and m_values.
|
inlinevirtual |
Get length of solution.
Definition at line 80 of file AlpsDecompSolution.h.
References m_values, and UTIL_DELARR.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Print out the solution.
Reimplemented from AlpsSolution.
Definition at line 85 of file AlpsDecompSolution.h.
References DecompConstraintSet::getColNames(), DecompApp::getDecompAlgo(), DecompModel::getModel(), DecompAlgo::getModelCore(), m_app, m_size, m_values, and DecompApp::printOriginalSolution().
|
protected |
Length of solution (number of columns).
Definition at line 26 of file AlpsDecompSolution.h.
Referenced by AlpsDecompSolution(), getSize(), and print().
|
protected |
Solution values.
Definition at line 29 of file AlpsDecompSolution.h.
Referenced by AlpsDecompSolution(), getValues(), print(), and ~AlpsDecompSolution().
|
protected |
Quality of solution (bound wrt to objective).
Definition at line 32 of file AlpsDecompSolution.h.
Referenced by getQuality().
|
protected |
Pointer to DecompApp for the print function.
Definition at line 35 of file AlpsDecompSolution.h.
Referenced by print().