Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flows partition calculation #13

Open
datejada opened this issue Jan 31, 2025 · 0 comments
Open

Update flows partition calculation #13

datejada opened this issue Jan 31, 2025 · 0 comments

Comments

@datejada
Copy link
Member

The current partition calculation calculates the flow partition (resolution) as the maximum value between two assets:

function process_flows_rep_period_partition_file(

row.partition = max(from_partition[1], to_partition[1])

However, for storage assets, the incoming and outgoing flow resolution should be calculated as the minimum between the connecting asset and the storage resolution. For example, if a "hydro" storage asset with a resolution of 24h (daily balance) is connected to a hub with hourly resolution (1h), then the partition/resolution of flows from (to) the hub to (from) the storage asset should be hourly, too.

Assigning the maximum is not wrong, but it underestimates the flexibility of the storage asset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant