Skip to content

Commit

Permalink
avoid clustering of generators when performing a market simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfmueller committed Sep 6, 2023
1 parent 8d5d7c1 commit e5a50fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion etrago/cluster/electrical.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def preprocessing(etrago):
return network_elec, weight, n_clusters, busmap_foreign


def postprocessing(etrago, busmap, busmap_foreign, medoid_idx=None):
def postprocessing(etrago, busmap, busmap_foreign, medoid_idx=None, aggregate_generators_carriers=None):
"""
Postprocessing function for network clustering.
Expand Down Expand Up @@ -889,6 +889,7 @@ def postprocessing(etrago, busmap, busmap_foreign, medoid_idx=None):
network,
busmap,
aggregate_generators_weighted=True,
aggregate_generators_carriers=aggregate_generators_carriers,
one_port_strategies=strategies_one_ports(),
generator_strategies=strategies_generators(),
aggregate_one_ports=aggregate_one_ports,
Expand Down
3 changes: 1 addition & 2 deletions etrago/execute/market_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ def build_market_model(self):
logger.info("Start market zone specifc clustering")

self.clustering, busmap = postprocessing(
self, busmap, busmap_foreign, medoid_idx
)
self, busmap, busmap_foreign, medoid_idx, aggregate_generators_carriers=[])

self.update_busmap(busmap)

Expand Down

0 comments on commit e5a50fa

Please sign in to comment.