Description Usage Arguments Examples
View source: R/AttackTheGrid_List.R
This function simulates an attack on the power grid using the parameter settings you choose the outut of the function is a nested list of igraph objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | AttackTheGrid_List(
g,
AttackStrategy,
referenceGrid = NULL,
TotalAttackRounds = 1000,
CascadeMode = TRUE,
Demand = "Demand",
Generation = "Generation",
EdgeName = "Link",
VertexName = "name",
Net_generation = "BalencedPower",
power_flow = "PowerFlow",
edge_limit = "Link.Limit"
)
|
g |
An igraph object. the graph that is going to be attacked the network list is simply list(list(g)). |
AttackStrategy |
A function that calculates which node to delete the function is is in "quo" form and embedded in an attack type. |
referenceGrid |
The grid that will be used to test the largest component against if NULL it uses the given network. |
TotalAttackRounds |
The maximum number of nodes to be removed before the process stops. |
CascadeMode |
Whether the power flow equations will be used to check line-overloading or not. |
Demand |
the name of the node Load variable. A character string. |
Generation |
the name of the node generation variable. A character string. |
EdgeName |
the variable that holds the edge names, a character string. |
VertexName |
the variable that holds the names of the nodes, to identify the slack ref. a character string |
Net_generation |
the name that the net generation data for each node is held in |
power_flow |
A character string. This value indicates the name of the edge attribute that holds power flow, the default is "PowerFlow" |
edge_limit |
A character string. This value indicates the name of the edge attribute that holds the edge limit, the default is "Link.Limit" |
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.