Learn R Programming

ecr (version 1.0)

OptStateGetter: Optimization state getter functions.

Description

The OptState is generated internally by doTheEvolution, but it is exposed to the user in some cases. E.g., self-defined actions or stopping conditions get the current OptState passed as an argument. The following collection of simple getter functions helps to access the properties of the optimization state.

Usage

getOptStateCurrentIter(opt.state)
getOptStateTask(opt.state)
getOptStateParamSet(opt.state)
getOptStateCurrentEvaluations(opt.state)
getOptStateControl(opt.state)
getOptStateBestIndividual(opt.state)
getOptStatePopulation(opt.state)
getOptStateFitness(opt.state)
getOptStateTimePassed(opt.state)
getOptStateOptPath(opt.state)

Arguments

opt.state
[OptState] Optimization state.

Value

[any] Type depends on the property.