11.1.11. rheia.OPT.genetic_algorithms.NSGA2
- class rheia.OPT.genetic_algorithms.NSGA2(run_dict, space_obj, start_from_last_gen, params)
The NSGAII class includes methods to perform a deterministic and robust optimization using NSGA-II optimizer.
- Parameters
run_dict (dict) – The dictionary with user-defined values for the characterization of the optimization.
space_obj (object) – The object with information on the design space and stochastic space
start_from_last_gen (bool) – Boolean that indicates if results exist in the considered result directory.
params (list) – Fixed parameters used during the model evaluation.
- __init__(run_dict, space_obj, start_from_last_gen, params)
Methods
__init__(run_dict, space_obj, ...)append_points_to_file(nests, filename)This function is used to append the result (population or fitness) to the corresponding file.
assign_fitness_to_population(pop, fitness, ...)Assigns the calulated fitness to the corresponding samples.
Defines the set of samples considered for evaluation.
eval_doe()Evaluation of the Design Of Experiments (DoE).
evaluate_samples(samples)Evaluation of the set of samples.
init_opt()Initialization of the results directory and writing of the column names in the STATUS file.
nsga2_1iter(current_pop)Run one iteration of the NSGA-II optimizer.
This method extracts the current generation number and the number of model evaluations performed.
read_doe(doe_dir)Read in the design of experiment.
Run an optimization using the NSGA-II algorithm.
write_status(msg)A message is appended to the STATUS file.