Skip to content

Use powerio-matrix for Ybus and the DC incidence list instead of local assembly #102

Description

@samtalki

Two numerical assemblies in Tellegen duplicate what PowerIO provides:

  • crates/tellegen/src/model/ac.rs:686, AcNetwork::ybus() builds Ybus triplets from Tellegen's dense columns; powerio-matrix/src/matrix/ybus.rs is the same MATPOWER makeYbus assembly, and the Julia and Python bindings use it.
  • crates/tellegen/src/sens/dc.rs:186, incidence_by_bus builds a per bus incidence list for DC sensitivities; powerio::calc_incidence_matrix returns the CSR incidence matrix.

Both index by Tellegen's dense column order, so the replacement needs one index mapping between BalancedNetwork element order and the dense columns. Not done in #97 because it touches the AC model days before the WebMCP submission; it is the last known place where Tellegen recomputes something PowerIO already computes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions