BaseMetric(name: String, function: FitnessFunction)
A base implementation for measuring the fitness of solutions.