Modeling and maximum power point tracking control of wind generating units equipped with permanent magnet synchronous generators in presence of losses