Create an animation of the population motion for the minimization of
1D and 2D functions. The animation can be produced only if save_pop_history
is TRUE
in the options of the minimizer (see MinimizerOpts).
animate_population(minimizer_result, n_points = 100)
an object of class OptimizationResults
(see OptimizationResults).
number of points per dimension used to draw the objective function. Default is 100
.