Updated eoStat.h to also "do the right thing" when confronted with pareto style fitness
This commit is contained in:
parent
11cdd38f24
commit
9bbac485f9
2 changed files with 134 additions and 15 deletions
|
|
@ -64,10 +64,14 @@ public :
|
|||
virtual void operator()(const vector<const EOT*>& _popPters)
|
||||
{
|
||||
value().resize(_popPters.size());
|
||||
|
||||
for (unsigned i=0; i<_popPters.size(); i++)
|
||||
{
|
||||
value()[i] = _popPters[i]->fitness()[objective];
|
||||
}
|
||||
}
|
||||
private:
|
||||
unsigned int objective; // The objective we're storing
|
||||
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue