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.
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" |
AttackTheGrid(NetworkList, AttackStrategy, SubstationData, EdgeData, referenceGrid = NULL, MinMaxComp = 0.8)#> Error in AttackTheGrid(NetworkList, AttackStrategy, SubstationData, EdgeData, referenceGrid = NULL, MinMaxComp = 0.8): could not find function "AttackTheGrid"Out <- AttackTheGrid(NetworkList, AttackStrategy, referenceGrid = NULL, MinMaxComp = 0.8, TotalAttackRounds=100, CascadeMode = TRUE, CumulativeAttacks = NULL)#> Error in AttackTheGrid(NetworkList, AttackStrategy, referenceGrid = NULL, MinMaxComp = 0.8, TotalAttackRounds = 100, CascadeMode = TRUE, CumulativeAttacks = NULL): could not find function "AttackTheGrid"