#include <history.h>
Inheritance diagram for ABA_HISTORY:
Public Member Functions | |
ABA_HISTORY (ABA_MASTER *master) | |
virtual | ~ABA_HISTORY () |
The destructor. | |
void | update () |
Adds an additional line to the history table, primal bound, dual bound, and the time are taken from the corresponding master object. The history table is automatically reallocated if necessary. | |
Private Member Functions | |
int | size () const |
void | realloc () |
The function realloc() enlarges the history table by 100 components. | |
Private Attributes | |
ABA_MASTER * | master_ |
ABA_ARRAY< double > | primalBound_ |
ABA_ARRAY< double > | dualBound_ |
ABA_ARRAY< long > | time_ |
int | n_ |
Friends | |
ostream & | operator<< (ostream &out, const ABA_HISTORY &rhs) |
Definition at line 43 of file history.h.
ABA_HISTORY::ABA_HISTORY | ( | ABA_MASTER * | master | ) |
The constructor initializes a history table with 100 possible entries.
If this number is exceeded an automatic reallocation is performed.
master | A pointer to the corresponding master of the optimization. |
virtual ABA_HISTORY::~ABA_HISTORY | ( | ) | [virtual] |
The destructor.
void ABA_HISTORY::update | ( | ) |
Adds an additional line to the history table, primal bound, dual bound, and the time are taken from the corresponding master object. The history table is automatically reallocated if necessary.
Usually an explicit call to this function from an application class is not required since update() is automatically called if a new global primal or dual bound is found.
int ABA_HISTORY::size | ( | ) | const [inline, private] |
void ABA_HISTORY::realloc | ( | ) | [private] |
The function realloc() enlarges the history table by 100 components.
ostream& operator<< | ( | ostream & | out, | |
const ABA_HISTORY & | rhs | |||
) | [friend] |
The output operator.
out | The output stream. | |
rhs | The solution history being output. |
ABA_MASTER* ABA_HISTORY::master_ [private] |
ABA_ARRAY<double> ABA_HISTORY::primalBound_ [private] |
ABA_ARRAY<double> ABA_HISTORY::dualBound_ [private] |
ABA_ARRAY<long> ABA_HISTORY::time_ [private] |
int ABA_HISTORY::n_ [private] |