Particle Swarm Optimization for Optimal Frequency Response with High Penetration of Photovoltaic and Wind Generation