Added the lastCall construct: if the stopping condition becomes true in eoCheckPoint,
a method called lastCall is called for everything contained in that checkpoint
(stats, updaters and monitors). This can be extremely useful
- for stateSavers (see below)
- for monitoring things like rates of success of operators, where what you
are interested in is the final result only.
Added of course a virtual method lastCall that does nothing by default in classes
eoBaseStat, eoBaseSortedStat, eoUpdater and eoMonitor
Added a boolean to control the save of the state in method eoCountedStateSaver::lastCall
so you can ask that the state is saved at final population, whatever happens.
I also added the corresponding constructor to take this into account.
This commit is contained in:
parent
5c5142e59c
commit
0e62de2d14
5 changed files with 63 additions and 14 deletions
|
|
@ -45,6 +45,7 @@ class eoMonitor : public eoF<eoMonitor&>
|
|||
{
|
||||
public :
|
||||
|
||||
virtual void lastCall() {}
|
||||
void add(const eoParam& _param) { vec.push_back(&_param); }
|
||||
|
||||
|
||||
|
|
|
|||
Reference in a new issue