Weighted Fitness Function used from evaluating the instances in EIG. This functions performs a linear weighted sum of the performance fitness of the instances and their novelty to calculate their final fitness.
More...
#include <Weighted.h>
|
| Weighted (const float &fRatio, const float &dRatio) |
| Construct a new Weighted object with the corresponding fitness ratio and diversity ratio. More...
|
|
void | computeFitness (vector< AbstractInstance > &solutions) |
| Computes the actual fitness of the solutions based on the fitness pre-defined in the instances and their diversity. More...
|
|
std::tuple< float, float > | getFAndNRatios () |
| Returns a tuple containing the fitness and novelty ratio in that order! More...
|
|
template<class AbstractInstance>
class Weighted< AbstractInstance >
Weighted Fitness Function used from evaluating the instances in EIG. This functions performs a linear weighted sum of the performance fitness of the instances and their novelty to calculate their final fitness.
- Template Parameters
-
◆ Weighted()
template<class AbstractInstance >
Construct a new Weighted object with the corresponding fitness ratio and diversity ratio.
- Template Parameters
-
- Parameters
-
fRatio | Weight of the fitness in the final fitness. |
dRatio | Weight of the novelty in the final fitness. |
◆ computeFitness()
template<class AbstractInstance >
Computes the actual fitness of the solutions based on the fitness pre-defined in the instances and their diversity.
The selection of different ratios determine whether the generated instances will be completely biased (and well clustered) or more dispersed
- Template Parameters
-
- Parameters
-
◆ getFAndNRatios()
template<class AbstractInstance >
Returns a tuple containing the fitness and novelty ratio in that order!
- Returns
- std::tuple<float, float>
The documentation for this class was generated from the following file: