Skip to main content

calc_ptdf_columns

Function calc_ptdf_columns 

Source
pub fn calc_ptdf_columns(
    case: &IndexedNetwork<'_>,
    options: &SensitivityOptions,
    buses: &[usize],
) -> Result<CsMat<f64>>
Expand description

The PTDF columns of buses (dense bus indices), an m × buses.len() matrix whose column j is the full PTDF’s column buses[j]. A reference bus’s column is zero.

Each column is one solve, so neither the m × n PTDF nor an inverse is formed. Solver selection and dropping follow calc_ptdf_rows.

§Errors

As calc_ptdf_rows, for an index outside the bus table.