Use the fitness type instead of the objective vectors in fitness assignments
This commit is contained in:
parent
0567d7be6c
commit
e6beab8e5c
2 changed files with 7 additions and 6 deletions
|
|
@ -57,8 +57,8 @@ class moeoExpBinaryIndicatorBasedFitnessAssignment : public moeoBinaryIndicatorB
|
|||
|
||||
/** The type of objective vector */
|
||||
typedef typename MOEOT::ObjectiveVector ObjectiveVector;
|
||||
|
||||
typedef typename ObjectiveVector::Type Type;
|
||||
typedef typename MOEOT::Fitness Fitness;
|
||||
|
||||
/**
|
||||
* Ctor.
|
||||
|
|
@ -211,9 +211,9 @@ class moeoExpBinaryIndicatorBasedFitnessAssignment : public moeoBinaryIndicatorB
|
|||
* Returns the fitness value of the _idx th individual of the population
|
||||
* @param _idx the index
|
||||
*/
|
||||
virtual Type computeFitness(const unsigned int _idx)
|
||||
virtual Fitness computeFitness(const unsigned int _idx)
|
||||
{
|
||||
Type result(0.0);
|
||||
Fitness result(0.0);
|
||||
for (unsigned int i=0; i<values.size(); i++)
|
||||
{
|
||||
if (i != _idx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue