cmaes (version 1.0-11)

extract_population: 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.

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.

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.