mp.mm_shared_pfcpf_dc

class mp.mm_shared_pfcpf_dc

Bases: mp.mm_shared_pfcpf

mp.mm_shared_pfcpf_dc - Mixin class for DC power flow (PF) math model objects.

An abstract mixin class inherited by DC power flow (PF) math model objects.

Method Summary
build_aux_data(nm, dm, mpopt)
add_system_vars_pf(nm, dm, mpopt)
convert_x_m2n(mmx, nm, only_v)

convert_x_m2n() - Convert math model state to network model state.

x = mm.pf_convert(mmx, nm)
[v, z] = mm.pf_convert(mmx, nm)
[v, z, x] = mm.pf_convert(mmx, nm)
... = mm.pf_convert(mmx, nm, only_v)
update_z(nm, v, z, ad)

update_z() - Update/allocate slack node active power injections.