13#if !defined(VITA_EVALUATOR_H)
14#define VITA_EVALUATOR_H
62 virtual bool load(std::istream &);
63 virtual bool save(std::ostream &)
const;
67 virtual std::unique_ptr<basic_lambda_f> lambdify(
const T &)
const;
70enum class test_evaluator_type {distinct, fixed, random};
88 explicit test_evaluator(test_evaluator_type = test_evaluator_type::random);
93 std::vector<T> buffer_;
94 test_evaluator_type et_;
96#include "kernel/evaluator.tcc"
virtual void clear()
Clear possible cached values.
Calculates the fitness of an individual.
virtual fitness_t operator()(const T &)=0
A fitness function used for debug purpose.
fitness_t operator()(const T &) override
The main namespace for the project.