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

Added check for positive resistances and reactances #944

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexe15
Copy link

@alexe15 alexe15 commented Feb 13, 2025

Thank you so much for this great package! I use it a lot, its my absolute favorite tool to do power system computations.

I've added a check for positive resistances and reactances in make_basic_network. Currently it issues a warning if they are not positive, but maybe it should even be an error. I found cases with negative resistances in the pglib repo, cf. power-grid-lib/pglib-opf#45

@ccoffrin
Copy link
Member

Hi @alexe15, I am glad you find power models so useful.

Thank you for the proposal, but I am not inclined to accept this change. Non-positive resistances and reactances are quite comment in real-world network models (as you notice in the PGLib-OPF datasets).

Warning about the existence of such branches is also unrelated to the specific objectives of the "basic data" utilities,
https://lanl-ansi.github.io/PowerModels.jl/stable/basic-data-utilities/

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.

2 participants