reVX.least_cost_xmission.least_cost_paths.min_reinforcement_costs
- min_reinforcement_costs(table, group_col='poi_gid')[source]
Filter table down to cheapest reinforcement per substation.
- Parameters:
table (pd.DataFrame | gpd.GeoDataFrame) – Table containing costs for reinforced transmission. Must contain a group_col column identifying each substation with its own unique ID and a reinforcement_cost_per_mw column with the reinforcement costs to minimize.
group_col (str, default=”poi_gid”) – Name of column containing unique identifier for each substation. This column will be used to group costs and select the minimum one.
- Returns:
pd.DataFrame | gpd.GeoDataFrame – Table with a single entry for each group_col with the least reinforcement_cost_per_mw.