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

Basic LODF utility? #923

Open
mtanneau opened this issue Jul 8, 2024 · 1 comment
Open

Basic LODF utility? #923

mtanneau opened this issue Jul 8, 2024 · 1 comment

Comments

@mtanneau
Copy link
Contributor

mtanneau commented Jul 8, 2024

The current version (v0.21.2) supports calc_basic_ptdf_matrix, but there is no Line Outage Distribution Factor (LODF) matrix computation utility.

I have a working implementation that I would be happy to contribute if you'd like that.

What I am thinking about is a calc_basic_lodf_matrix function, which would return a matrix LODF of size ExE, where E is the number of branches in the system. Thereby, given pre-contingency flow vector pf, the flow on branch e under contingency k is given by

pf_after_outage[e] = pf[e] + LODF[e, k] * pf[k]
@ccoffrin
Copy link
Member

This would be a welcome addition, please make a PR.

The name calc_basic_lodf_matrix sounds right to me.

I personally don't know the definition of LODF off the top of my head, but what you write here sounds right to me. Make sure the this new feature is discussed in the basic data utilities docs and that the expected usage is something like pf_after_outage[e] = pf[e] + LODF[e, k] * pf[k]

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

2 participants