Learn R Programming

windfarmGA (version 2.3.0)

plot_random_search: Plot the result of a randomized output.

Description

Plotting method for the results of random_search_single and random_search.

Usage

plot_random_search(resultRS, result, Polygon1, best)

Arguments

resultRS

The result of the random functions random_search_single and random_search.

result

The result of the function genetic_algorithm or windfarmGA

Polygon1

The Polygon for the wind farm area.

best

How many best candidates to plot. Default is 1.

See Also

Other Randomization: random_search_single(), random_search()

Examples

Run this code
# NOT RUN {
load(file = system.file("extdata/resultrect.rda", package = "windfarmGA"))
load(file = system.file("extdata/polygon.rda", package = "windfarmGA"))

Res = random_search(result = resultrect, Polygon1 = polygon)
plot_random_search(resultRS = Res, result = resultrect, Polygon1 = polygon, best=2)
# }

Run the code above in your browser using DataLab