Skip to main content

calc_dc_opf_matrices

Function calc_dc_opf_matrices 

Source
pub fn calc_dc_opf_matrices(
    instance: &DcOpfInstance,
    options: &DcOpfAssemblyOptions,
) -> Result<DcOpfMatrices>
Expand description

Derive the sparse DC OPF matrices from the instance. The instance keeps the typed network; an external solver that needs the contiguous arrays behind these matrices calls build_dc_opf_preparation instead.

ยงErrors

A network the selected branch susceptance formula cannot assemble: missing reference coverage, an unresolved zero impedance branch, or an unusable cost curve.