Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.de-method

Plot of Differential Evolution search path


Description

The plot method for de-class objects gives a plot of best and average fitness values found during the iterations of the DE search.

Usage

## S4 method for signature 'de'
plot(x, y, ylim, cex.points = 0.7, 
     col = c("green3", "dodgerblue3",  adjustcolor("green3", alpha.f = 0.1)),
     pch = c(16, 1), lty = c(1,2), legend = TRUE, grid = graphics:::grid, ...)

Arguments

x

An object of class "ga".

y

Not used.

ylim

A vector of two values specifying the limits on the y-axis.

cex.points

The magnification to be used for points.

col

The colours to be used for best and average fitness values.

pch

The type of points to be used for best and average fitness values.

lty

The type of lines to be used for best and average fitness values.

legend

A logical specifying if a legend should be included.

grid

A function for grid drawing of NULL to avoid drawing one.

...

Further arguments, currently not used.

Details

Plot best and average fitness values at each iteration of DE search.

Value

The method invisibly return a data.frame with the iterations and summary statistics for the fitness function evaluated at each iteration.

Author(s)

Luca Scrucca

See Also

Examples

# See examples in help(de)

GA

Genetic Algorithms

v3.2.1
GPL (>= 2)
Authors
Luca Scrucca [aut, cre] (<https://orcid.org/0000-0003-3826-0484>)
Initial release
2021-04-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.