#include <AbcSolution.h>
Inheritance diagram for AbcSolution:
Public Member Functions | |
AbcSolution () | |
AbcSolution (const int s, const double *val, const double obj) | |
~AbcSolution () | |
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. | |
virtual AlpsEncoded * | encode () const |
The method that encodes the solution into a encoded object. | |
virtual AlpsKnowledge * | decode (AlpsEncoded &) const |
The method that decodes the solution from a encoded object. | |
Private Attributes | |
int | size_ |
double * | value_ |
double | objective_ |
Definition at line 31 of file AbcSolution.h.
AbcSolution::AbcSolution | ( | ) | [inline] |
Definition at line 38 of file AbcSolution.h.
AbcSolution::AbcSolution | ( | const int | s, | |
const double * | val, | |||
const double | obj | |||
) | [inline] |
AbcSolution::~AbcSolution | ( | ) | [inline] |
double AbcSolution::getObjValue | ( | ) | const [inline] |
Get the objective value value.
Definition at line 62 of file AbcSolution.h.
References objective_.
Referenced by getQuality().
virtual double AbcSolution::getQuality | ( | ) | const [inline, virtual] |
int AbcSolution::getSize | ( | ) | const [inline] |
const double* AbcSolution::getColSolution | ( | ) | const [inline] |
double AbcSolution::getColSolution | ( | int | i | ) | const [inline] |
virtual void AbcSolution::print | ( | std::ostream & | os | ) | const [virtual] |
virtual AlpsEncoded* AbcSolution::encode | ( | ) | const [virtual] |
virtual AlpsKnowledge* AbcSolution::decode | ( | AlpsEncoded & | ) | const [virtual] |
int AbcSolution::size_ [private] |
double* AbcSolution::value_ [private] |
Definition at line 34 of file AbcSolution.h.
Referenced by AbcSolution(), getColSolution(), and ~AbcSolution().
double AbcSolution::objective_ [private] |