edisgo.flex_opt.costs

Module Contents

Functions

grid_expansion_costs(edisgo_obj[, ...])

Calculates topology expansion costs for each reinforced transformer and line

line_expansion_costs(edisgo_obj[, lines_names])

Returns costs for earthwork and per added cable in kEUR as well as voltage level

transformer_expansion_costs(edisgo_obj[, ...])

Returns costs per transformer in kEUR as well as voltage level they are in.

edisgo.flex_opt.costs.grid_expansion_costs(edisgo_obj, without_generator_import=False)[source]

Calculates topology expansion costs for each reinforced transformer and line in kEUR.

edisgo.flex_opt.costs.edisgo_obj
Type:

EDisGo

edisgo.flex_opt.costs.without_generator_import

If True excludes lines that were added in the generator import to connect new generators to the topology from calculation of topology expansion costs. Default: False.

Type:

bool

Returns:

DataFrame containing type and costs plus in the case of lines the line length and number of parallel lines of each reinforced transformer and line. Index of the DataFrame is the name of either line or transformer. Columns are the following:

typestr

Transformer size or cable name

total_costsfloat

Costs of equipment in kEUR. For lines the line length and number of parallel lines is already included in the total costs.

quantityint

For transformers quantity is always one, for lines it specifies the number of parallel lines.

line_lengthfloat

Length of line or in case of parallel lines all lines in km.

voltage_levelstr {‘lv’ | ‘mv’ | ‘mv/lv’}

Specifies voltage level the equipment is in.

mv_feederLine

First line segment of half-ring used to identify in which feeder the network expansion was conducted in.

Return type:

pandas.DataFrame<DataFrame>

Notes

Total network expansion costs can be obtained through self.grid_expansion_costs.total_costs.sum().

edisgo.flex_opt.costs.line_expansion_costs(edisgo_obj, lines_names=None)[source]

Returns costs for earthwork and per added cable in kEUR as well as voltage level for chosen lines.

Parameters:
  • edisgo_obj (EDisGo) – eDisGo object

  • lines_names (None or list(str)) – List of names of lines to return cost information for. If None, it is returned for all lines in lines_df.

Returns:

costs – Dataframe with names of lines in index and columns ‘costs_earthworks’ with earthwork costs in kEUR, ‘costs_cable’ with costs per cable/line in kEUR, and ‘voltage_level’ with information on voltage level the line is in.

Return type:

pandas.DataFrame

edisgo.flex_opt.costs.transformer_expansion_costs(edisgo_obj, transformer_names=None)[source]

Returns costs per transformer in kEUR as well as voltage level they are in.

Parameters:
Returns:

costs – Dataframe with names of transformers in index and columns ‘costs’ with costs per transformer in kEUR and ‘voltage_level’ with information on voltage level the transformer is in.

Return type:

pandas.DataFrame