Learn R Programming

windfarmGA (version 5.0.0)

as_windfarmGA: Mark a genetic_algorithm result

Description

Attach the windfarmGA class so print() and plot() dispatch. New runs from genetic_algorithm() already have this class. print() shows run inputs, the wind table, and each generation that set a new fitness maximum.

Usage

as_windfarmGA(x)

# S3 method for windfarmGA print(x, ...)

# S3 method for windfarmGA plot(x, y, ...)

Value

x with class windfarmGA.

Arguments

x

A result matrix from genetic_algorithm().

...

Passed to plot_windfarmGA().

y

The site polygon (same as area in genetic_algorithm()).