This is an implementation of an Evolution Strategy.
optimES(x = NULL, fun, lower, upper, control = list(), ...)
optional start point, not used
objective function, which receives a matrix x and returns observations y
is a vector that defines the lower boundary of search space (this also defines the dimensionality of the problem)
is a vector that defines the upper boundary of search space (same length as lower)
list of control parameters. The control
list can contain the following settings:
number of function evaluations, stopping criterion, default is 500
number of parents, default is 10
selection pressure. That means, number of offspring (lambda) is mue multiplied with nu. Default is 10
string of mutation type, default is 1
initial sigma value (step size), default is 1.0
number of different sigmas, default is 1
number, default is 0.0
. tau0 is the general multiplier.
number, learning parameter for self adaption, i.e. the local multiplier for step sizes (for each dimension).default is 1.0
number of parents involved in the procreation of an offspring (mixing number), default is "bi"
number of selected individuals, default is 1
Recombination operator for strategy variables. 1
: none. 2
: dominant/discrete (default). 3
: intermediate. 4
: variation of intermediate recombination.
Recombination operator for object variables. 1
: none. 2
: dominant/discrete (default). 3
: intermediate. 4
: variation of intermediate recombination.
number of generations, stopping criterion, default is Inf
number, random seed, default is 1
number, value of noise added to fitness values, default is 0.0
defines output verbosity of the ES, default is 0
boolean, specifies if results are plotted, default is FALSE
boolean, defines if plot results should be logarithmic, default is FALSE
number, value of sigma on restart, default is 0.1
initial population size is multiplied by this number for a pre-scan, default is 1
termination criterion on reaching a desired optimum value, default is rep(0,dimension)
additional parameters to be passed on to fun
list, with elements
x
NULL, currently not used
y
NULL, currently not used
xbest
best solution
ybest
best observation
count
number of evaluations of fun
# NOT RUN {
cont <- list(funEvals=100)
optimES(fun=funSphere,lower=rep(0,2), upper=rep(1,2), control= cont)
# }
Run the code above in your browser using DataLab