A method for automatic power generation control in a wind farm comprising: receiving an automatic power generation control set point from an independent system operator; generating a farm-level storage power set point for the wind farm based on the automatic generation control set point using a wind farm controller; generating individual storage power set points for a plurality of energy storage elements coupled to a plurality of wind turbines using the wind farm controller, wherein the individual storage power set points are generated based on a states of charge of the respective energy storage elements; and controlling the plurality of energy storage elements based on the individual storage power set points for dispatching storage power to perform automatic generation control, characterized in that: dispatching storage power to perform automatic generation control comprises dispatching storage power based on an aggressive optimal dispatch method or a non-aggressive optimal dispatch method, wherein dispatching storage power based on the aggressive optimal dispatch method comprises charging or discharging energy storage elements with highest charging or discharging coefficients respectively prior to energy storage elements with lesser charging or discharging coefficients, and wherein dispatching storage power based on the non-aggressive optimal dispatch method comprises dispatching storage power proportionately from the plurality of energy storage elements, based on their respective state of charge. receiving an automatic power generation control set point from an independent system operator; generating a farm-level storage power set point for the wind farm based on the automatic generation control set point using a wind farm controller; generating individual storage power set points for a plurality of energy storage elements coupled to a plurality of wind turbines using the wind farm controller, wherein the individual storage power set points are generated based on a states of charge of the respective energy storage elements; and controlling the plurality of energy storage elements based on the individual storage power set points for dispatching storage power to perform automatic generation control, characterized in that: dispatching storage power to perform automatic generation control comprises dispatching storage power based on an aggressive optimal dispatch method or a non-aggressive optimal dispatch method, wherein dispatching storage power based on the aggressive optimal dispatch method comprises charging or discharging energy storage elements with highest charging or discharging coefficients respectively prior to energy storage elements with lesser charging or discharging coefficients, and wherein dispatching storage power based on the non-aggressive optimal dispatch method comprises dispatching storage power proportionately from the plurality of energy storage elements, based on their respective state of charge. dispatching storage power to perform automatic generation control comprises dispatching storage power based on an aggressive optimal dispatch method or a non-aggressive optimal dispatch method, wherein dispatching storage power based on the aggressive optimal dispatch method comprises charging or discharging energy storage elements with highest charging or discharging coefficients respectively prior to energy storage elements with lesser charging or discharging coefficients, and wherein dispatching storage power based on the non-aggressive optimal dispatch method comprises dispatching storage power proportionately from the plurality of energy storage elements, based on their respective state of charge.