Added a constructor from a vector<double> - mandatory in all applications

This commit is contained in:
evomarc 2002-02-08 07:48:03 +00:00
commit 5fbbe4c9e9

View file

@ -113,6 +113,10 @@ public :
eoParetoFitness(void) : std::vector<double>(FitnessTraits::nObjectives(),0.0) {}
// Ctr from a vector<double>
eoParetoFitness(std::vector<double> & _v) : std::vector<double>(_v) {}
/** access to the traits characteristics (so you don't have to write
* a lot of typedef's around
*/