summary.ga-method: Summary for Genetic Algorithms

Description Usage Arguments Value Author(s) See Also Examples

Description

Summary method for class ga-class.

Usage

1
2
3
4
5
## S4 method for signature 'ga'
summary(object, ...)

## S3 method for class 'summary.ga'
print(x, digits = getOption("digits"), ...)

Arguments

object

an object of class ga-class.

x

an object of class summary.ga.

digits

number of significant digits.

...

further arguments passed to or from other methods.

Value

The summary function returns an object of class summary.ga which can be printed by the corresponding print method. The function also returns invisibly a list with the information from the genetic algorithm search.

Author(s)

Luca Scrucca

See Also

ga

Examples

1
2
3
4
5
6
7
f <- function(x)  abs(x)+cos(x)
GA <- ga(type = "real-valued", 
         fitness = function(x) -f(x), 
         min = -20, max = 20, run = 50)
out <- summary(GA)
print(out)
str(out)

GA documentation built on May 20, 2017, 3:21 a.m.

Search within the GA package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.