Learn R Programming

windfarmGA (version 5.0.0)

random_search_single: Randomize the location of a single turbine

Description

Perform a random search for a single turbine, to further optimize the output of the wind farm layout.

Usage

random_search_single(
  result,
  area,
  runs = 20,
  plot = FALSE,
  max_dist = 2.2,
  terrain = NULL,
  weibull = NULL,
  weibull_src = NULL,
  ccl = NULL,
  ccl_roughness = NULL,
  turbine = NULL
)

Value

Returns a list

Arguments

result

The resulting matrix of the function genetic_algorithm

area

Site polygon (sf, SpatialPolygons, or coordinate matrix). Must be projected in metres.

runs

How many jittered layouts to try per best start. Default is 20.

plot

Draw the random-search layouts

max_dist

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

terrain

NULL (default) follows the GA and reuses result$terrainModel. TRUE downloads only if nothing is stored. A DEM rebuilds the model. FALSE skips terrain.

weibull

NULL follows the GA flag. Weibull rasters are not stored; pass weibull_src (or a speed raster as weibull) again. Giving weibull_src is enough; you do not also need weibull = TRUE.

weibull_src

list(k, a) shape and scale rasters (e.g. Global Wind Atlas combined-Weibull-k / combined-Weibull-A).

ccl

Path to a Corine Land Cover raster when terrain is on.

ccl_roughness

Path to the CLC legend CSV (Rauhigkeit_z column).

turbine

Grid cell ID of the turbine to move. If NULL, the function asks interactively.

See Also

Other Randomization: plot_random_search(), random_search()

Other Plotting Functions: generation_layouts(), plot_cell_heatmap(), plot_cloud(), plot_development(), plot_evolution(), plot_generation(), plot_parkfitness(), plot_population(), plot_result(), plot_windfarmGA(), plot_windrose(), population_census()