edisgo.flex_opt.costs
¶
Module Contents¶
Functions¶
|
Calculates topology expansion costs for each reinforced transformer and line |
|
Returns costs for earthwork and per added cable in kEUR as well as voltage level |
- 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.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
- 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_feeder
Line
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
- 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