Correct types for fitness assignment in IBEA
While the default fitness assignment of IBEA is the Exp indicator one, the used interface is a binary indicator.
This commit is contained in:
parent
83673d48b2
commit
a7134a658c
2 changed files with 6 additions and 6 deletions
|
|
@ -175,7 +175,7 @@ class moeoExpBinaryIndicatorBasedFitnessAssignment : public moeoBinaryIndicatorB
|
|||
* Compute every indicator value in values (values[i] = I(_v[i], _o))
|
||||
* @param _pop the population
|
||||
*/
|
||||
void computeValues(const eoPop < MOEOT > & _pop)
|
||||
virtual void computeValues(const eoPop < MOEOT > & _pop)
|
||||
{
|
||||
values.clear();
|
||||
values.resize(_pop.size());
|
||||
|
|
@ -211,7 +211,7 @@ class moeoExpBinaryIndicatorBasedFitnessAssignment : public moeoBinaryIndicatorB
|
|||
* Returns the fitness value of the _idx th individual of the population
|
||||
* @param _idx the index
|
||||
*/
|
||||
Type computeFitness(const unsigned int _idx)
|
||||
virtual Type computeFitness(const unsigned int _idx)
|
||||
{
|
||||
Type result(0.0);
|
||||
for (unsigned int i=0; i<values.size(); i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue