11.1.16. rheia.OPT.genetic_algorithms.NSGA2.assign_fitness_to_population

NSGA2.assign_fitness_to_population(pop, fitness, unc_samples)

Assigns the calulated fitness to the corresponding samples. In case of robust optimization, a PCE is constructed first, based on the random samples and the corresponding model output. Thereafter, the mean and standard deviation are extracted for the quantities of interest

Parameters
  • pop (list) – Set of samples in population format, considered for evaluation.

  • fitness (list) – The calculated fitness.

  • unc_samples (list) – The set of samples for uncertainty quantification.

Returns

pop – The population, appended with the fitness values.

Return type

list