Package: windfarmGA 4.0.0.9000

Sebastian Gatscha

windfarmGA: Genetic Algorithm for Wind Farm Layout Optimization

The genetic algorithm is designed to optimize wind farms of any shape. It requires a predefined amount of turbines, a unified rotor radius and an average wind speed value for each incoming wind direction. A terrain effect model can be included that downloads an 'SRTM' elevation model and loads a Corine Land Cover raster to approximate surface roughness.

Authors:Sebastian Gatscha [aut, cre, cph]

windfarmGA_4.0.0.9000.tar.gz
windfarmGA_4.0.0.9000.zip(r-4.5)windfarmGA_4.0.0.9000.zip(r-4.4)windfarmGA_4.0.0.9000.zip(r-4.3)
windfarmGA_4.0.0.9000.tgz(r-4.4-x86_64)windfarmGA_4.0.0.9000.tgz(r-4.4-arm64)windfarmGA_4.0.0.9000.tgz(r-4.3-x86_64)windfarmGA_4.0.0.9000.tgz(r-4.3-arm64)
windfarmGA_4.0.0.9000.tar.gz(r-4.5-noble)windfarmGA_4.0.0.9000.tar.gz(r-4.4-noble)
windfarmGA_4.0.0.9000.tgz(r-4.4-emscripten)windfarmGA_4.0.0.9000.tgz(r-4.3-emscripten)
windfarmGA.pdf |windfarmGA.html
windfarmGA/json (API)

# Install 'windfarmGA' in R:
install.packages('windfarmGA', repos = c('https://ysosirius.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/ysosirius/windfarmga/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • big_shape - A POLYGON with an area of ~70 km2
  • hole_shape - A POLYGON with a hole
  • multi_shape - A MULTIPOLYGON with 3 Polygons
  • resulthex - A resulting matrix of 'genetic_algorithm' with 10 iterations and a hexagonal grid derived from 'sp_polygon'
  • resultrect - A resulting matrix of 'genetic_algorithm' with 200 iterations and a rectangular grid derived from 'sp_polygon'
  • sp_polygon - The rectangular POLYGON used to create 'resultrect' & 'resulthex'

On CRAN:

windfarm-layoutoptimizationgenetic-algorithmrenewable-energycpp

5.04 score 26 stars 17 scripts 108 downloads 38 exports 16 dependencies

Last updated 2 hours agofrom:577a9276eb. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 21 2025
R-4.5-win-x86_64OKJan 21 2025
R-4.5-linux-x86_64OKJan 21 2025
R-4.4-win-x86_64OKJan 21 2025
R-4.4-mac-x86_64OKJan 21 2025
R-4.4-mac-aarch64OKJan 21 2025
R-4.3-win-x86_64OKJan 21 2025
R-4.3-mac-x86_64OKJan 21 2025
R-4.3-mac-aarch64OKJan 21 2025

Exports:barometric_heightcalculate_energycircle_intersectioncrossoverfitnessgenetic_algorithmget_dist_anglesget_gridsgrid_areahexa_areainit_populationis_doparallel_installedis_elevatr_installedis_foreach_installedis_ggplot2_installedis_leaflet_installedis_parallel_installedisSpatialmutationplot_cloudplot_developmentplot_evolutionplot_fitness_evolutionplot_leafletplot_parkfitnessplot_random_searchplot_resultplot_viewshedplot_windfarmGAplot_windroserandom_searchrandom_search_singleselectionsplitAtterrain_modeltrimtonturbine_influenceswindata_format

Dependencies:calibrateclassclassIntDBIe1071KernSmoothmagrittrMASSproxyRColorBrewerRcpps2sfterraunitswk

Readme and manuals

Help Manual

Help pageTopics
windfarmGA: Genetic Algorithm for Wind Farm Layout OptimizationwindfarmGA-package windfarmGA
Calculates Air Density, Air Pressure and Temperature according to the Barometric Height Formulabarometric_height
A POLYGON with an area of ~70 km2big_shape
Calculate Energy Outputs of Individualscalculate_energy
Get area of intersecting circlescircle_intersection
Crossover Methodcrossover
Evaluate the Individual Fitness valuesfitness
Run a Genetic Algorithm to optimize a wind farm layoutgenetic_algorithm
Calculate distances and angles of possibly influencing turbinesget_dist_angles
Get the Grid-IDs from binary matrixget_grids
Make a grid from a Simple Feature Polygongrid_area
Polygon to Hexagonal Gridshexa_area
A POLYGON with a holehole_shape
Create a random initial Populationinit_population
Transform to Simple Feature PolygonsisSpatial
A MULTIPOLYGON with 3 Polygonsmulti_shape
Mutation Methodmutation
Is the package installed or notis_doparallel_installed is_elevatr_installed is_foreach_installed is_ggplot2_installed is_leaflet_installed is_parallel_installed package_installed
Enumerate the Combinations or Permutations of the Elements of a Vectorpermutations
Plot outputs of all generations with standard deviationsplot_cloud
Plot the progress of populationsplot_development
Plot the evolution of fitness valuesplot_evolution
Plot the changes of min/mean/max fitness valuesplot_fitness_evolution
Plot a wind warm with leafletplot_leaflet
Plot the genetic algorithm resultsplot_parkfitness
Plot the result of a randomized output.plot_random_search
Plot the best resultsplot_result
Plot visibilityplot_viewshed
Plot the results of an optimization runplot_windfarmGA
Plot a Windroseplot_windrose
Randomize the output of the Genetic Algorithmrandom_search
Randomize the location of a single turbinerandom_search_single
Check Input Crossover Methodreadinteger
Check Input Selection MethodreadintegerSel
A resulting matrix of 'genetic_algorithm' with 10 iterations and a hexagonal grid derived from 'sp_polygon'resulthex
A resulting matrix of 'genetic_algorithm' with 200 iterations and a rectangular grid derived from 'sp_polygon'resultrect
Selection Methodselection
The rectangular POLYGON used to create 'resultrect' & 'resulthex'sp_polygon
Split matrices or numeric vectors at specific indicessplitAt
Get topographic rastersterrain_model
Adjust the amount of turbines per windfarmtrimton
Find potentially influencing turbinesturbine_influences
Transform Winddatawindata_format