This function finds every pair of nodes in the network. It takes in a igraph power network and outputs a dataframe. The dataframe contains the node pair names, their node ID number type of node Generation/Demand/Transmission, the Net generation of the node, and wether the node pair is generation and demand
NodePairs( g, Node_name = "name", Generation = "Generation", Demand = "Demand", PTDF = NULL, Bus_order = "Bus.Order" )
g | An igraph object of a power network. |
---|---|
Node_name | Is the vertex attribute that contains the node names. |
Generation | The vertex attribute containing the node generation data. |
Demand | The vertec attribute containing the node generation data. |
PTDF | An optional arguement. The PDTF matrix as produced by ImpPTDF. default is NULL. If not PTDF is supplied one is calculated. |
Bus_order | Only used if no PDF is supplied. The vertex attribute that contains the rank order for slack reference. |