Skip to main content

calc_lodf_columns

Function calc_lodf_columns 

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

The LODF columns of the outaged branches (dense branch indices), an m × outaged.len() matrix whose column j is the full LODF’s column outaged[j]: the flow each branch picks up per unit of the outaged branch’s pre-outage flow, with −1 at the outaged branch itself and a zero column for a branch whose outage islands the network.

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

§Errors

As calc_ptdf_rows.