124 int diff(
int nLps,
double &d)
const;
Base class of all other classes of ABACUS.
The master of the optimization.
friend std::ostream & operator<<(std::ostream &out, const TailOff &rhs)
The output operator.
Master * master_
A pointer to the corresponding master of the optimization.
TailOff(Master *master, int NLp)
An alternative constructor takes the length of the tailing off history from the parameter NLp...
int diff(int nLps, double &d) const
Can be used to retrieve the difference between the last and a previous LP-solution in percent...
~TailOff()
The destructor.
int tailOffNLp() const
Returns the number of linear programs considered in the tailing off analysis.
the master of the optimization.
void clear()
Empties the ring.
virtual bool tailOff() const
Checks whether there is a tailing-off effect.
void reset()
Clears the solution history.
void insert(Type elem)
Inserts a new element into the ring.
AbaRing< double > * lpHistory_
The LP-values considered in the tailing off analysis.
void update(double value)
A new LP-solution value can be stored by calling the function update().
TailOff(Master *master)
The constructor takes the length of the tailing off history from Master::tailOffNLp().