Learn R Programming

genalg (version 0.2.1)

summary.rbga: R Based Genetic Algorithm Summary Function

Description

Summarizes the genetic algorithm results.

Usage

# S3 method for rbga
summary(object, echo=FALSE, ...)

Arguments

object

a rbga object.

echo

if true, the summary will be printed to STDOUT as well as returned.

...

other options (ignored)

Examples

Run this code
# NOT RUN {
evaluate <- function(string=c()) {
    returnVal = 1 / sum(string);
    returnVal
}

rbga.results = rbga.bin(size=10, mutationChance=0.01, zeroToOneRatio=0.5,
    evalFunc=evaluate)

summary(rbga.results)
# }

Run the code above in your browser using DataLab