powered by
Perform a random search in the grid cells, to further optimize the output of the wind farm layout.
random_search(result, Polygon1, n = 20, best = 1, Plot = FALSE, max_dist = 2.2)
Returns a list.
The resulting matrix of the function genetic_algorithm
genetic_algorithm
The considered area as SpatialPolygon, SimpleFeature Polygon or coordinates as matrix/data.frame
The number of random searches to be performed. Default is 20.
Which best individuals should be the starting conditions for a random search. The default is 1.
Should the random search be plotted? Default is FALSE
FALSE
A numeric value multiplied by the rotor radius to perform collision checks. Default is 2.2
2.2
Other Randomization: plot_random_search(), random_search_single()
plot_random_search()
random_search_single()
# \donttest{ new <- random_search(resultrect, sp_polygon, n = 20, best = 4) plot_random_search(resultRS = new, result = resultrect, Polygon1 = sp_polygon, best = 2) # }
Run the code above in your browser using DataLab