extract_population: Extract the iter-th population...

View source: R/cmaes.R

extract_populationR Documentation

Extract the iter-th population...

Description

Extract the iter-th population

Usage

extract_population(res, iter)

Arguments

res

A cma_es result object.

iter

Which population to return.

Details

Return the population of the iter-th iteration of the CMA-ES algorithm. For this to work, the populations must be saved in the result object. This is achieved by setting diag.pop=TRUE in the control list. Function values are included in the result if present in the result object.

Value

A list containing the population as the par element and possibly the function values in value if they are present in the result object.


cmaes documentation built on March 18, 2022, 7:11 p.m.