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

weighted active extendable transmission costs for multihorizon constraint #855

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AdrienneRTE
Copy link

Changes proposed in this Pull Request

The constraint on the total transmission cost for a multi-horizon optimization didn't included the weights of relative investment periods.
Each active period of a line/link is weighted by their respective investment_period_weightings.

The weighting applies only if the constraint's period is nan and the snapshots are multi-indexed. Otherwise, the weight is set to 1.

Checklist

I tested the constraint with and without a specific period and it worked fine.

Open question

  • Should a constraint set on a specific investment_period be weighted ? For the sake of simplicity, I assumed that it shouldn't be.

Copy link
Collaborator

@FabianHofmann FabianHofmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AdrienneRTE this looks good. As you said, I would leave the single period selection unweighted.

ext_i = ext_i[n.get_active_assets(c, period)[ext_i]].rename(ext_i.name)
ext_i = ext_i[n.get_active_assets(c, period)[ext_i]].rename(
ext_i.name
) # or extendable only ?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's some scrap of a question I asked myself but solved since, and forgot to remove ^^'

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

Successfully merging this pull request may close these issues.

None yet

2 participants