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

Bus merging logic to ensure correct bus type updates #937

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

Conversation

jbarberia
Copy link
Contributor

Proposed fix for #935 and #936.

This update addresses an issue with the bus merging logic to ensure the resulting bus_type is correctly updated when buses are merged.

When two buses are connected by a switch or a zero-impedance line, the merged bus should have the highest priority bus_type (PQ=1, PV=2, Slack=3)

Changes Introduced

  • Correctly updates the bus_type of the resulting bus to reflect the highest priority among the merged buses.
  • Adds safeguards to prevent assigning invalid bus types (e.g., type 4).

src/core/data.jl Outdated Show resolved Hide resolved
Co-authored-by: Oscar Dowson <odow@users.noreply.github.com>
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