A generic approach to wind farm control and the power adjusting controller