Research Article

VHDRA: A Vertical and Horizontal Intelligent Dataset Reduction Approach for Cyber-Physical Power Aware Intrusion Detection Systems

Algorithm 1

The modified PSO Algorithm.

Initialize population
While (number of generations, or the stopping criterion is not met)
 For to number of particles
  If the fitness of is greater than the fitness of
  then Update
  For
   If the fitness of is greater than that of then
    Update
  Next k
  For each dimension
   
     
   if then
         
         
  Next
 Next
Next generation until stopping criterion