mp.net_model_dc
- class mp.net_model_dc
Bases:
mp.net_model,mp.form_dcmp.net_model_dc- Concrete class for MATPOWER DC network model objects.This network model class and all of its network model element classes are specific to the DC formulation and therefore inherit from
mp.form_dc.- mp.net_model_dc Properties:
- mp.net_model_dc Methods:
net_model_dc()- constructor, assign default network model element classesdef_set_types()- add voltage and non-voltage variable set types formp_idx_managerbuild_params()- build incidence matrices, parameters, add ports for each elementport_inj_soln()- compute the network port injections at the solution
See also
mp.net_model,mp.form_dc,mp.form,mp.nm_element.- Constructor Summary
- net_model_dc()
Constructor, assign default network model element classes.
nm = net_model_dc()
This network model class and all of its network model element classes are specific to the DC formulation and therefore inherit from
mp.form_dc.
- Property Summary
- va = []
(double) vector of voltage states (voltage angles \(\Va\))
- z = []
(double) vector of non-voltage states \(\z\)
- Method Summary
- def_set_types()
Add voltage and non-voltage variable set types for
mp_idx_manager.nm.def_set_types()
Add the following set types:
'va'- VOLTAGE VARS (va)'z'- NON-VOLTAGE VARS (z)
See also
mp.net_model.def_set_types(),mp_idx_manager.
- build_params(nm, dm)
Build incidence matrices and parameters, and add ports for each element.
nm.build_params(nm, dm)
- Inputs:
nm (
mp.net_model) – network model objectdm (
mp.data_model) – data model object
Call the parent method to do
most()of the work, then build the aggregate network model parameters.
- port_inj_soln()
Compute the network port injections at the solution.
nm.port_inj_soln()
Takes the solved network state, computes the port power injections, and saves them in
nm.soln.gp.