6.47 ABA_HISTORY Class Reference

class implements the storage of the solution history.

#include <history.h>

Inheritance diagram for ABA_HISTORY::


PIC


Public Member Functions

Private Member Functions

Private Attributes

Friends

6.47.1 Detailed Description

class implements the storage of the solution history.

Definition at line 43 of file history.h.

6.47.2 Constructor & Destructor Documentation

6.47.2.1 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.

Parameters:

master
A pointer to the corresponding master of the optimization.

6.47.2.2 virtual ABA_HISTORY::~ABA_HISTORY () [virtual]

The destructor.

6.47.3 Member Function Documentation

6.47.3.1 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.

6.47.3.2 int ABA_HISTORY::size () const [inline, private]

Returns the length of the history table.

Definition at line 107 of file history.h.

6.47.3.3 void ABA_HISTORY::realloc () [private]

The function realloc() enlarges the history table by 100 components.

6.47.4 Friends And Related Function Documentation

6.47.4.1 ostream& operator<< (ostream & out, const ABA_HISTORY & rhs) [friend]

The output operator.

Returns:

A reference to the output stream.

Parameters:

out
The output stream.
rhs
The solution history being output.

6.47.5 Member Data Documentation

6.47.5.1 ABA_MASTER*ABA_HISTORY::master_ [private]

A pointer to corresponding master of the optimization.

Definition at line 87 of file history.h.

6.47.5.2 ABA_ARRAY<double> ABA_HISTORY::primalBound_ [private]

The array storing the value of the best primal solution.

Definition at line 91 of file history.h.

6.47.5.3 ABA_ARRAY<double> ABA_HISTORY::dualBound_ [private]

The array storing the value of the best dual solution.

Definition at line 95 of file history.h.

6.47.5.4 ABA_ARRAY<long> ABA_HISTORY::time_ [private]

The CPU time in seconds, when the entry in the table was made.

Definition at line 99 of file history.h.

6.47.5.5 int ABA_HISTORY::n_ [private]

The number of entries in the history table.

Definition at line 103 of file history.h.

The documentation for this class was generated from the following file: