Controls - GenSA
- maxit
Integer. Maximum number of iterations of
the algorithm. Defaults to
1000.
nb.stop.improvement
Integer. The program will
stop when there is no any improvement in
nb.stop.improvement steps. Defaults to 25
smooth
Logical.TRUE when the objective function
is smooth, or differentiable almost everywhere in the
region of par, FALSE otherwise. Default value is TRUE.
max.call
Integer. Maximum number of call of the
objective function. Default is set to 1e7.
max.time
Numeric. Maximum running time in seconds.
temperature
Numeric. Initial value for temperature.
visiting.param
Numeric. Parameter for visiting
distribution.
acceptance.param
Numeric. Parameter for acceptance
distribution.
simple.function
Logical. FALSE means that the
objective function has only a few local minima. Default
is FALSE which means that the objective function is
complicated with many local minima.
Controls - psoptim
- maxit
The maximum number of iterations. Defaults to
1000.
maxf
The maximum number of function evaluations
(not considering any performed during numerical gradient
computation). Defaults to Inf.
reltol
The tolerance for restarting. Once the
maximal distance between the best particle and all other
particles is less than reltol*d the algorithm restarts.
Defaults to 0 which disables the check for restarting.
s
The swarm size. Defaults to
floor(10+2*sqrt(length(par))) unless type is "SPSO2011"
in which case the default is 40.
k
The exponent for calculating number of informants.
Defaults to 3.
p
The average percentage of informants for each
particle. A value of 1 implies that all particles are
fully informed. Defaults to 1-(1-1/s)^k.
w
The exploitation constant. A vector of length 1
or 2. If the length is two, the actual constant used is
gradially changed from w[1] to w[2] as the number of
iterations or function evaluations approach the limit
provided. Defaults to 1/(2*log(2)).
c.p
The local exploration constant. Defaults to
.5+log(2).
c.g
The global exploration constant. Defaults to
.5+log(2).
d
The diameter of the search space. Defaults to the
euclidean distance between upper and lower.
v.max
The maximal (euclidean) length of the velocity
vector. Defaults to NA which disables clamping of the
velocity. However, if specified the actual clamping of the
length is v.max*d.
rand.order
Logical; if TRUE the particles are
processed in random order. If vectorize is TRUE then the
value of rand.order does not matter. Defaults to TRUE.
max.restart
The maximum number of restarts.
Defaults to Inf.
maxit.stagnate
The maximum number of iterations
without improvement. Defaults to 25
vectorize
Logical; if TRUE the particles are
processed in a vectorized manner. This reduces the
overhead associated with iterating over each particle and
may be more time efficient for cheap function evaluations.
Defaults to TRUE.
type
Character vector which describes which
reference implementation of SPSO is followed. Can take
the value of "SPSO2007" or "SPSO2011". Defaults to
"SPSO2007".
Controls - GA
- popSize
the population size.
pcrossover
the probability of crossover between
pairs of chromosomes. Typically this is a large value and
by default is set to 0.8.
pmutation
the probability of mutation in a parent
chromosome. Usually mutation occurs with a small
probability, and by default is set to 0.1.
updatePop
a logical defaulting to FALSE. If set at
TRUE the first attribute attached to the value returned by
the user-defined fitness function is used to update the
population. Be careful though, this is an experimental
feature!
postFitness
a user-defined function which, if
provided, receives the current ga-class object as input,
performs post fitness-evaluation steps, then returns an
updated version of the object which is used to update the
GA search. Be careful though, this is an experimental
feature!
maxiter
the maximum number of iterations to run
before the GA search is halted.
run
the number of consecutive generations without
any improvement in the best fitness value before the GA
is stopped.
optim
a logical defaulting to FALSE determining
whether or not a local search using general-purpose
optimisation algorithms should be used. See argument
optimArgs for further details and finer control.
optimArgs
a list controlling the local search
algorithm with the following components:
- method
a string specifying the general-purpose
optimisation method to be used, by default is set to
"L-BFGS-B". Other possible methods are those reported
in optim
.
poptim
a value in the range [0,1] specifying the
probability of performing a local search at each
iteration of GA (default 0.1).
pressel
a value in the range [0,1] specifying the
pressure selection (default 0.5). The local search is
started from a random solution selected with probability
proportional to fitness. High values of pressel tend to
select the solutions with the largest fitness, whereas
low values of pressel assign quasi-uniform probabilities
to any solution.
control
a list of control parameters. See 'Details'
section in optim
.
keepBest
a logical argument specifying if best
solutions at each iteration should be saved in a slot
called bestSol. See ga-class.
parallel
a logical argument specifying if parallel
computing should be used (TRUE) or not (FALSE, default)
for evaluating the fitness function. This argument could
also be used to specify the number of cores to employ; by
default, this is taken from detectCores. Finally, the
functionality of parallelization depends on system OS:
on Windows only 'snow' type functionality is available,
while on Unix/Linux/Mac OSX both 'snow' and 'multicore'
(default) functionalities are available.
Controls - gridSearch
- n
the number of levels. Default is 10.
printDetail
print information on the number of
objective function evaluations
method
can be loop (the default), multicore or
snow. See Details.
mc.control
a list containing settings that will be
passed to mclapply if method is multicore. Must be a list
of named elements; see the documentation of mclapply in
parallel.
cl
default is NULL. If method snow is used, this
must be a cluster object or an integer (the number of
cores).
keepNames
logical: should the names of levels be
kept?
asList
does fun expect a list? Default is FALSE