Alps
2.0.2
|
This class holds a MIP feasible primal solution. More...
#include <AbcSolution.h>
Public Member Functions | |
AbcSolution () | |
AbcSolution (const int s, const double *val, const double obj) | |
~AbcSolution () | |
double | getObjValue () const |
Get the objective value value. More... | |
void | setObj (double obj) |
void | setValue (int size, double const *value) |
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... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
The method that encodes the solution into a encoded object. More... | |
virtual AlpsReturnStatus | decodeToSelf (AlpsEncoded &encoded) |
Decode the given AlpsEncoded object into this. More... | |
virtual AlpsKnowledge * | decode (AlpsEncoded &) const |
The method that decodes the solution from a encoded object. More... | |
AbcSolution () | |
AbcSolution (const int s, const double *val, const double obj) | |
~AbcSolution () | |
double | getObjValue () const |
Get the objective value value. More... | |
void | setObj (double obj) |
void | setValue (int size, double const *value) |
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... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
The method that encodes the solution into a encoded object. More... | |
virtual AlpsReturnStatus | decodeToSelf (AlpsEncoded &encoded) |
Decode the given AlpsEncoded object into this. More... | |
virtual AlpsKnowledge * | decode (AlpsEncoded &) const |
The method that decodes the solution from a encoded object. More... | |
AbcSolution () | |
AbcSolution (const int s, const double *val, const double obj) | |
~AbcSolution () | |
double | getObjValue () const |
Get the objective value value. More... | |
void | setObj (double obj) |
void | setValue (int size, double const *value) |
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... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
The method that encodes the solution into a encoded object. More... | |
virtual AlpsReturnStatus | decodeToSelf (AlpsEncoded &encoded) |
Decode the given AlpsEncoded object into this. More... | |
virtual AlpsKnowledge * | decode (AlpsEncoded &) const |
The method that decodes the solution from a encoded object. More... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
Encode this into the given AlpsEncoded object. More... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
Encode this into the given AlpsEncoded object. More... | |
AlpsEncoded * | encode () const |
Get encode defined in AlpsKnowledge. More... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
Get encode defined in AlpsKnowledge. More... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
Encode this into the given AlpsEncoded object. More... | |
AlpsEncoded * | encode () const |
Get encode defined in AlpsKnowledge. More... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
Get encode defined in AlpsKnowledge. More... | |
Public Member Functions inherited from AlpsSolution | |
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... | |
AlpsEncoded * | encode () const |
Get encode defined in AlpsKnowledge. More... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
Get encode defined in AlpsKnowledge. More... | |
Public Member Functions inherited from AlpsKnowledge | |
AlpsKnowledge () | |
Default constructor. More... | |
AlpsKnowledge (AlpsKnowledgeType type) | |
AlpsKnowledge (AlpsKnowledgeType type, AlpsKnowledgeBroker *broker) | |
virtual | ~AlpsKnowledge () |
Destructor. More... | |
AlpsKnowledgeType | getType () const |
Get knowledge type. More... | |
void | setType (AlpsKnowledgeType t) |
Set knowledge type. More... | |
AlpsKnowledgeBroker * | broker () |
Get pointer to the knowledge broker. More... | |
const AlpsKnowledgeBroker * | broker () const |
Get pointer to the knowledge broker. More... | |
void | setBroker (AlpsKnowledgeBroker *broker) |
Set knowledge broker. More... | |
AlpsEncoded * | encode () const |
Encode the content of this into an AlpsEncoded object and return a pointer to it. More... | |
Private Attributes | |
int | size_ |
double * | value_ |
double | objective_ |
Additional Inherited Members | |
Public Attributes inherited from AlpsKnowledge | |
AlpsKnowledgeBroker * | broker_ |
This class holds a MIP feasible primal solution.
Definition at line 37 of file AbcSolution.h.
|
inline |
Definition at line 44 of file AbcSolution.h.
|
inline |
Definition at line 50 of file AbcSolution.h.
|
inline |
Definition at line 60 of file AbcSolution.h.
|
inline |
Definition at line 44 of file AbcSolution.h.
|
inline |
Definition at line 50 of file AbcSolution.h.
|
inline |
Definition at line 60 of file AbcSolution.h.
|
inline |
Definition at line 44 of file AbcSolution.h.
|
inline |
Definition at line 50 of file AbcSolution.h.
|
inline |
Definition at line 60 of file AbcSolution.h.
|
inline |
Get the objective value value.
Definition at line 68 of file AbcSolution.h.
|
inline |
Definition at line 70 of file AbcSolution.h.
|
inline |
Definition at line 72 of file AbcSolution.h.
|
inlinevirtual |
Definition at line 81 of file AbcSolution.h.
|
inline |
Get the size of the solution.
Definition at line 84 of file AbcSolution.h.
|
inline |
Get the column solution.
Definition at line 87 of file AbcSolution.h.
|
inline |
Get item i in the solution vector.
Definition at line 91 of file AbcSolution.h.
|
virtual |
Print out the solution.
Reimplemented from AlpsSolution.
|
virtual |
The method that encodes the solution into a encoded object.
Reimplemented from AlpsSolution.
|
inlinevirtual |
Decode the given AlpsEncoded object into this.
Reimplemented from AlpsSolution.
Definition at line 100 of file AbcSolution.h.
|
virtual |
The method that decodes the solution from a encoded object.
Implements AlpsKnowledge.
|
inline |
Get the objective value value.
Definition at line 68 of file AbcSolution.h.
|
inline |
Definition at line 70 of file AbcSolution.h.
|
inline |
Definition at line 72 of file AbcSolution.h.
|
inlinevirtual |
Definition at line 81 of file AbcSolution.h.
|
inline |
Get the size of the solution.
Definition at line 84 of file AbcSolution.h.
|
inline |
Get the column solution.
Definition at line 87 of file AbcSolution.h.
|
inline |
Get item i in the solution vector.
Definition at line 91 of file AbcSolution.h.
|
virtual |
Print out the solution.
Reimplemented from AlpsSolution.
|
virtual |
The method that encodes the solution into a encoded object.
Reimplemented from AlpsSolution.
|
inlinevirtual |
Decode the given AlpsEncoded object into this.
Reimplemented from AlpsSolution.
Definition at line 100 of file AbcSolution.h.
|
virtual |
The method that decodes the solution from a encoded object.
Implements AlpsKnowledge.
|
inline |
Get the objective value value.
Definition at line 68 of file AbcSolution.h.
|
inline |
Definition at line 70 of file AbcSolution.h.
|
inline |
Definition at line 72 of file AbcSolution.h.
|
inlinevirtual |
Definition at line 81 of file AbcSolution.h.
|
inline |
Get the size of the solution.
Definition at line 84 of file AbcSolution.h.
|
inline |
Get the column solution.
Definition at line 87 of file AbcSolution.h.
|
inline |
Get item i in the solution vector.
Definition at line 91 of file AbcSolution.h.
|
virtual |
Print out the solution.
Reimplemented from AlpsSolution.
|
virtual |
The method that encodes the solution into a encoded object.
Reimplemented from AlpsSolution.
|
inlinevirtual |
Decode the given AlpsEncoded object into this.
Reimplemented from AlpsSolution.
Definition at line 100 of file AbcSolution.h.
|
virtual |
The method that decodes the solution from a encoded object.
Implements AlpsKnowledge.
|
inline |
Encode this into the given AlpsEncoded object.
Definition at line 88 of file AlpsSolution.h.
|
inline |
Encode this into the given AlpsEncoded object.
Definition at line 88 of file AlpsSolution.h.
AlpsEncoded* AlpsKnowledge::encode |
Get encode defined in AlpsKnowledge.
virtual AlpsReturnStatus AlpsKnowledge::encode |
Get encode defined in AlpsKnowledge.
|
inline |
Encode this into the given AlpsEncoded object.
Definition at line 88 of file AlpsSolution.h.
AlpsEncoded* AlpsKnowledge::encode |
Get encode defined in AlpsKnowledge.
virtual AlpsReturnStatus AlpsKnowledge::encode |
Get encode defined in AlpsKnowledge.
|
private |
Definition at line 39 of file AbcSolution.h.
|
private |
Definition at line 40 of file AbcSolution.h.
|
private |
Definition at line 41 of file AbcSolution.h.