code: public void setFitness(Fitness fitness) {
          this.fitness = fitness;
  
          if (this.bestConfiguration != null) this.bestFitness = fitness.getValue(this.bestConfiguration);
      }
docs: @inheritDoc
  
  Note that when fitness is set and there is a {@link #bestConfiguration} set, it recalculates {@link #bestFitness} as well.