Skip to contents

Package Documentation

windfarmGA windfarmGA-package
windfarmGA: Genetic Algorithm for Wind Farm Layout Optimization

Run an Optimization

genetic_algorithm()
Run a Genetic Algorithm to optimize a wind farm layout
ga_options()
Get or set windfarmGA options
explore_result()
Shiny explorer for a GA result
as_windfarmGA() print(<windfarmGA>) plot(<windfarmGA>)
Mark a genetic_algorithm result

Genetic Algorithm Components

Main components of the genetic algorithm

init_population()
Create a random initial Population
selection()
Selection Method
fitness()
Evaluate the Individual Fitness values
crossover()
Crossover Method
set_crossover()
Set crossover of turbine layouts
mutation()
Mutation Method
swap_mutation()
Swap mutation of turbine layouts
trimton()
Adjust the amount of turbines per windfarm

Topographic Model

terrain_model()
Get terrainhic rasters

Wind Energy Calculation Functions

barometric_height()
Calculates Air Density, Air Pressure and Temperature according to the Barometric Height Formula
get_dist_angles()
Calculate distances and angles of possibly influencing turbines
turbine_influences()
Find potentially influencing turbines
calculate_energy()
Calculate Energy Outputs of Individuals
circle_intersection()
Get area of intersecting circles

Randomization

random_search()
Randomize the output of the Genetic Algorithm
random_search_single()
Randomize the location of a single turbine
plot_random_search()
Plot the result of a randomized output.

Plotting Functions

plot_cell_heatmap()
Heatmap of probed grid cells
plot_cloud()
Per-generation fitness / efficiency / energy
plot_development()
When the best layout improved
plot_evolution()
Energy and efficiency over generations
plot_generation()
Plot all layouts of one generation
plot_leaflet()
Plot a wind warm with leaflet
plot_parkfitness()
Fitness and operator rates
plot_population()
Plot population size, cells and efficiency
plot_power_curve()
Manufacturer power curve
plot_random_search()
Plot the result of a randomized output.
plot_result()
Plot the best results
plot_viewshed()
Plot visibility
plot_windfarmGA()
Plot the results of an optimization run
plot_windrose()
Plot a Windrose
generation_layouts()
Layouts evaluated in one generation
population_census()
Population size and diversity per generation

Viewshed Analysis Functions

plot_viewshed()
Plot visibility

Helper Functions

get_grids()
Map layouts to grid coordinates
grid_area()
Make a grid from a Simple Feature Polygon
hexa_area()
Polygon to Hexagonal Grids
windata_format()
Transform Winddata
wind_from_uv()
Wind rose from u/v components
wind_from_series()
Wind rose from speed and direction series
read_power_curve()
Read a manufacturer or NREL/IEA power-curve table
wake_cones()
Downwind wake search cones
isSpatial()
Transform to Simple Feature Polygons
permutations()
Enumerate the Combinations or Permutations of the Elements of a Vector
splitAt()
Split matrices or numeric vectors at specific indices
is_foreach_installed() is_parallel_installed() is_doparallel_installed() is_ggplot2_installed() is_leaflet_installed() is_elevatr_installed() is_plotly_installed() is_shiny_installed()
Is the package installed or not

Datasets

Results and Shapefiles included in the package.

resultrect
A resulting matrix of genetic_algorithm with 50 generations and a rectangular grid derived from sp_polygon
resulthex
A resulting matrix of genetic_algorithm with 10 iterations and a hexagonal grid derived from sp_polygon
sp_polygon
The rectangular POLYGON used to create resultrect & resulthex
big_shape
A POLYGON with an area of ~70 km2
hole_shape
A POLYGON with a hole
multi_shape
A MULTIPOLYGON with 3 Polygons