Description Usage Arguments Value See Also Examples
View source: R/random_search.R
Perform a random search in the grid cells, to further optimize the output of the wind farm layout.
1 | random_search(result, Polygon1, n = 20, best = 1, Plot = FALSE, max_dist = 2.2)
|
result |
The resulting matrix of the function |
Polygon1 |
The considered area as SpatialPolygon, SimpleFeature Polygon or coordinates as matrix/data.frame |
n |
The number of random searches to be performed. Default is 20. |
best |
Which best individuals should be the starting conditions for a random search. The default is 1. |
Plot |
Should the random search be plotted? Default is |
max_dist |
A numeric value multiplied by the rotor radius to perform
collision checks. Default is |
Returns a list.
Other Randomization:
plot_random_search()
,
random_search_single()
1 2 | new <- random_search(resultrect, sp_polygon, n = 20, best = 4)
plot_random_search(resultRS = new, result = resultrect, Polygon1 = sp_polygon, best = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.