DEoptim-methods {DEoptim} | R Documentation |
Methods for DEoptim objects.
## S3 method for class 'DEoptim': summary(object, ...) ## S3 method for class 'DEoptim': plot(x, plot.type = c("bestmemit","bestvalit"), ...)
object, x |
an object of class DEoptim ; usually, a result
of a call to DEoptim . |
plot.type |
Should we plot the best member at each iteration or the best value at each iteration? |
... |
further arguments passed to or from other methods. |
David Ardia.
## Rosenbrock Banana function Rosenbrock <- function(x){ x1 <- x[1] x2 <- x[2] 100 * (x2 - x1 * x1)^2 + (1 - x1)^2 } lower <- c(-10,-10) upper <- -lower r <- DEoptim(Rosenbrock, lower, upper) summary(r) ## print summary of the DEoptim object par(mfrow = c(1,2)) plot(r, type = 'b') ## plot the best members plot(r, plot.type = "bestvalit", type = 'b', col = 'blue') ## and the best values