Vita
Public Member Functions | List of all members
vita::ga_evaluator< T, F > Class Template Reference

Calculates the fitness of an individual. More...

#include <evaluator.h>

Inherits vita::evaluator< T >.

Public Member Functions

 ga_evaluator (F)
 
virtual fitness_t operator() (const T &) override
 
- Public Member Functions inherited from vita::evaluator< T >
virtual fitness_t fast (const T &)
 
virtual std::unique_ptr< basic_lambda_flambdify (const T &) const
 
virtual bool load (std::istream &)
 
virtual fitness_t operator() (const T &)=0
 
virtual bool save (std::ostream &) const
 
- Public Member Functions inherited from vita::cached_evaluator
virtual void clear ()
 Clear possible cached values. More...
 

Detailed Description

template<class T, class F>
class vita::ga_evaluator< T, F >

Calculates the fitness of an individual.

Note
This is a simple adapter for the objective function.
Warning
Being a simple adapter implies that the evolutionary algorithm will try to find out the maximum of the objective function (this derives from our definition of standardized fitness).

Definition at line 33 of file ga/evaluator.h.

Member Function Documentation

◆ operator()()

template<class T , class F >
virtual fitness_t vita::ga_evaluator< T, F >::operator() ( const T &  )
overridevirtual
Returns
the fitness of the individual

Implements vita::evaluator< T >.


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