Package Documentation

windfarmGA_

windfarmGA

Run an Optimization

genetic_algorithm()

Run a Genetic Algorithm to optimize a wind farm layout

windfarmGA()

Run a Genetic Algorithm to optimize a wind farm layout

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

mutation()

Mutation Method

trimton()

Adjust the amount of turbines per windfarm

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

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_cloud()

Plot outputs of all generations with standard deviations

plot_development()

Plot the progress of populations

plot_evolution()

Plot the evolution of fitness values

plot_fitness_evolution()

Plot the changes of min/mean/max fitness values

plot_heatmap()

Plot a heatmap of selected grid cells

plot_leaflet()

Plot a Wind Farm with leaflet

plot_parkfitness()

Plot the genetic algorithm results

plot_random_search()

Plot the result of a randomized output.

plot_result()

Plot the best results

plot_viewshed()

Plot viewshed results

plot_windfarmGA()

Plot the results of an optimization run

plot_windrose()

Plot a Windrose

interpol_view()

Plot an interpolated viewshed

Viewshed Analysis Functions

cansee()

Calculate Visibility between 2 locations

rasterprofile()

Sample values from a raster

viewshed()

Calculate visibility

viewTo()

Calculate Visibility between multiple locations

interpol_view()

Plot an interpolated viewshed

plot_viewshed()

Plot viewshed results

Helper Functions

get_grids()

Get the Grid-IDs from binary matrix

grid_area()

Make a grid from a Polygon

hexa_area()

Polygon to Hexagonal Grid Tessellation

windata_format()

Transform Winddata

tess2SPdf()

Create a Tesselation from a Polygon

isSpatial()

Transform to SpatialPolygons

permutations()

Enumerate the Combinations or Permutations of the Elements of a Vector

readinteger()

Check Input Crossover Method

readintegerSel()

Check Input Selection Method

splitAt()

Divide matrices or integer at certain locations

dup_coords()

Splits duplicated coords (copy of geoR::dup.coords)

getDEM()

Get DEM raster

getISO3()

getISO3

Datasets

Results and Shapefiles included in the package.

barometric_height()

Calculates Air Density, Air Pressure and Temperature according to the Barometric Height Formula

big_shape

A big shapefile

calculate_energy()

Calculate Energy Outputs of Individuals

cansee()

Calculate Visibility between 2 locations

crossover()

Crossover Method

dup_coords()

Splits duplicated coords (copy of geoR::dup.coords)

fitness()

Evaluate the Individual Fitness values

genetic_algorithm()

Run a Genetic Algorithm to optimize a wind farm layout

getDEM()

Get DEM raster

getISO3()

getISO3

get_dist_angles()

Calculate distances and angles of possibly influencing turbines

get_grids()

Get the Grid-IDs from binary matrix

grid_area()

Make a grid from a Polygon

hexa_area()

Polygon to Hexagonal Grid Tessellation

hole_shape

A shapefile with a hole

init_population()

Create a random initial Population

interpol_view()

Plot an interpolated viewshed

isSpatial()

Transform to SpatialPolygons

multi_shape

A multi-shapefile with 3 Polygons

mutation()

Mutation Method

permutations()

Enumerate the Combinations or Permutations of the Elements of a Vector

plot_cloud()

Plot outputs of all generations with standard deviations

plot_development()

Plot the progress of populations

plot_evolution()

Plot the evolution of fitness values

plot_fitness_evolution()

Plot the changes of min/mean/max fitness values

plot_heatmap()

Plot a heatmap of selected grid cells

plot_leaflet()

Plot a Wind Farm with leaflet

plot_parkfitness()

Plot the genetic algorithm results

plot_random_search()

Plot the result of a randomized output.

plot_result()

Plot the best results

plot_viewshed()

Plot viewshed results

plot_windfarmGA()

Plot the results of an optimization run

plot_windrose()

Plot a Windrose

random_search()

Randomize the output of the Genetic Algorithm

random_search_single()

Randomize the location of a single turbine

rasterprofile()

Sample values from a raster

readinteger()

Check Input Crossover Method

readintegerSel()

Check Input Selection Method

resultrect

A resulting matrix of genetic_algorithm with 200 iterations and a rectangular shapefile sp_polygon

selection()

Selection Method

sp_polygon

The rectangular shapefile used to create resultrect

splitAt()

Divide matrices or integer at certain locations

tess2SPdf()

Create a Tesselation from a Polygon

trimton()

Adjust the amount of turbines per windfarm

turbine_influences()

Find potentially influencing turbines

viewTo()

Calculate Visibility between multiple locations

viewshed()

Calculate visibility

windata_format()

Transform Winddata

windfarmGA()

Run a Genetic Algorithm to optimize a wind farm layout

windfarmGA_

windfarmGA