Research Article

An Optimal DoS Attack Strategy Disturbing the Distributed Economic Dispatch of Microgrid

Algorithm 1

Solution of optimal attack strategy.
 Input:
 Compute
 Enumerate the set of all attack schemes according to constraints (31) and (33), and each attack strategy can be further represented as , which represents the units’ isolated set caused by an attack action
 Define
  for j = 1:m do
   for i = 1:N do
    if then
     Compute total output lower limit of isolated generators ;
    else
     Compute ;
     Compute ;
    end if
   end for
   Compute ;
   if then
    Update ;
    Update according to and ;
   end if
  end for
 Output: ; .