NodePairs: Node pairs

Description Usage Arguments See Also

View source: R/NodePairs.R

Description

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

Usage

1
2
3
4
5
6
7
8
NodePairs(
  g,
  Node_name = "name",
  Generation = "Generation",
  Demand = "Demand",
  PTDF = NULL,
  Bus_order = "Bus.Order"
)

Arguments

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.

See Also

SlackRefFunc


JonnoB/PowerGridNetworking documentation built on Aug. 7, 2021, 3:04 a.m.