as_windfarmGA: Mark a genetic_algorithm result

View source: R/ga_result.R

as_windfarmGAR Documentation

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 class 'windfarmGA'
print(x, ...)

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

Arguments

x

A result matrix from genetic_algorithm().

...

Passed to plot_windfarmGA().

y

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

Value

x with class windfarmGA.


windfarmGA documentation built on Sept. 14, 2026, 9:08 a.m.