#include //----------------------------------------------------------------------------- typedef vector Vec; /** Just a simple function that takes an eoVector and sets the fitnes to -sphere (we'll see later how to minimize rather than maximize!) @param _ind A floatingpoint vector */ float real_value(const eoESFullChrom& _ind) { double sum = 0; /* compute in double format, even if return a float */ for (unsigned i = 0; i < _ind.size(); i++) sum += _ind[i] * _ind[i]; return -sum; }