@staticmethod
def evaluate_fitness(individual, fn):
    """
        Sets the fitness of the individual passed in.

        Parameters
        ----------
        individual : Individual
            Individual for which to assess the fitness.
        fn : function
            Fitness function used to evaluate the fitness.
        """
    individual.fitness = fn(individual.position)
