Skip to main content

fix_ac_ots_topology

Function fix_ac_ots_topology 

Source
pub fn fix_ac_ots_topology(
    module: &PioModule<PioValue>,
    instance: &AcOtsInstance,
    branch_closed: &[bool],
) -> Result<PioModule<AcOpfInstance>, Error>
Expand description

The AC optimal power flow over a final topology of instance (AcOtsInstance::fix_topology), with its discards recorded as module diagnostics. module is the module instance belongs to, directly or as a solution’s instance.

§Errors

A topology the instance refuses.