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.