moeoBinaryMetricSavingUpdater(3)

NAME
moeoBinaryMetricSavingUpdater - This class allows to save the progression of a binary metric comparing the objective vectors of the current population (or archive) with the objective vectors of the population (or archive) of the generation (n-1) into a file.

SYNOPSIS

#include <moeoBinaryMetricSavingUpdater.h>

Inherits eoUpdater.

  Public Types
typedef MOEOT::ObjectiveVector ObjectiveVector
The objective vector type of a solution.

  Public Member Functions
moeoBinaryMetricSavingUpdater (moeoVectorVsVectorBinaryMetric< ObjectiveVector, double > &_metric, const eoPop< MOEOT > &_pop, std::string _filename)
Ctor.
void operator() ()
Saves the metric's value for the current generation.

  Private Attributes
moeoVectorVsVectorBinaryMetric< ObjectiveVector, double > & metric
binary metric comparing two Pareto sets
const eoPop< MOEOT > & pop
main population
eoPop< MOEOT > oldPop
(n-1) population
std::string filename
target filename
bool firstGen
is it the first generation ?
unsigned counter
counter

Detailed Description

  template<class MOEOT> class moeoBinaryMetricSavingUpdater< MOEOT >
This class allows to save the progression of a binary metric comparing the objective vectors of the current population (or archive) with the objective vectors of the population (or archive) of the generation (n-1) into a file.

Definition at line 27 of file moeoBinaryMetricSavingUpdater.h.

Constructor & Destructor Documentation

  template<class MOEOT> moeoBinaryMetricSavingUpdater< MOEOT >::moeoBinaryMetricSavingUpdater (moeoVectorVsVectorBinaryMetric< ObjectiveVector, double > & _metric, const eoPop< MOEOT > & _pop, std::string _filename) [inline]

Ctor.

Parameters:
    _metric the binary metric comparing two Pareto sets
    _pop the main population
    _filename the target filename

Definition at line 42 of file moeoBinaryMetricSavingUpdater.h.

Author

Generated automatically by Doxygen for ParadisEO-MOEO from the source code.