pub fn build_opf_instance(
case: &IndexedNetwork<'_>,
incidence: &IncidenceParts,
units: Units,
) -> Result<OpfInstance>Expand description
Build the OPF instance. Errors with Error::NoGenerators if the case has
no in-service generators, Error::MissingGenCost if a generator has no
cost row, or Error::UnsupportedCostModel if its cost is present but not
a polynomial of degree ≤ 2.