13#if !defined(VITA_FITNESS_H)
21#include "utility/small_vector.h"
22#include "utility/utility.h"
37 explicit with_size(std::size_t s) : size_(s) {}
38 std::size_t operator()()
const {
return size_; }
85 using values_t = small_vector<T, 1>;
86 using value_type =
typename values_t::value_type;
87 using iterator =
typename values_t::iterator;
88 using const_iterator =
typename values_t::const_iterator;
95 std::size_t size()
const;
96 T operator[](std::size_t)
const;
97 T &operator[](std::size_t);
100 const_iterator begin()
const;
102 const_iterator end()
const;
109 bool load(std::istream &);
110 bool save(std::ostream &)
const;
168#include "kernel/fitness.tcc"
A value assigned to an individual which reflects how well the individual solves the task.
The main namespace for the project.