Skip to contents

Plot the evolution of fitness values and the change in the min, mean and max fitness values to the former generations.

Usage

plot_fitness_evolution(result, spar = 0.1)

Arguments

result

The output of genetic_algorithm

spar

A numeric value determining how exact a spline should be drawn. Default is 0.1

Value

Returns NULL. Used for plotting

Examples

# \donttest{
## Plot the results of a hexagonal grid optimization
plot_fitness_evolution(resulthex, 0.1)

#> NULL
# }