a system and method of reactive power regulation in a wind farm having a plurality of wind turbines that provides optimum control of the reactive power compensation in the wind farm and is able to keep a reactive power reserve in order to support eventual grid contingencies .