Skip to contents

Perform a random search in the grid cells, to further optimize the output of the wind farm layout.

Usage

random_search(result, Polygon1, n = 20, best = 1, Plot = FALSE, max_dist = 2.2)

Arguments

result

The resulting matrix of the function genetic_algorithm or windfarmGA

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 FALSE

max_dist

A numeric value multiplied by the rotor radius to perform collision checks. Default is 2.2

Value

Returns a list.

See also

Other Randomization: plot_random_search(), random_search_single()

Examples

# \donttest{
new <- random_search(resultrect, sp_polygon, n = 20, best = 4)
plot_random_search(resultRS = new, result = resultrect, Polygon1 = sp_polygon, best = 2)




# }