cmaes(objective.fun, start.point = NULL, monitor = makeSimpleMonitor(), control = list(stop.ons = c(getDefaultStoppingConditions())))
smoof_function] Continuous objective function of type
smoof_function. The function must expect a vector of numerical values and return a scaler numerical value.
numeric] Initial solution vector. If
NULL, one is generated randomly within the box constraints offered by the paramter set of the objective function. Default is
cma_monitor] Monitoring object. Default is
makeSimpleMonitor, which produces a console output.
list] Futher paramters for the CMA-ES. See the details section for more in-depth information. Stopping conditions are also defined here. By default only some stopping conditions are passed. See
cma_result] Result object. Internally a list with the following components:
You may pass additional parameters to the CMA-ES via the
This argument must be a named list. The following control elements will be considered
by the CMA-ES implementation:
# generate objective function from smoof package fn = makeRosenbrockFunction(dimensions = 2L) res = cmaes( fn, monitor = NULL, control = list( sigma = 1.5, lambda = 40, stop.ons = c(list(stopOnMaxIters(100L)), getDefaultStoppingConditions()) ) ) print(res)