In this article a control method for a rotor side converter (RSC) of a doubly fed induction generator of a wind turbine is developed. The doubly-fed induction generator (DFIG) system of a wind energy power plant that improves grid symmetrization was applied. The issue of optimal control was treated as an extended linear quadratic regulator (ELQR) having an extra set of exogenous inputs, which are source voltages of the electric grid. No additional knowledge of equations modelling the exogenous inputs was assumed. The proposed method is much more efficient than the currently available linear quadratic control methods. The control objective for a weak grid was to maintain the given value of the voltage module on load terminals and the given value of active power transferred from the stator’s winding. First harmonic components of relevant waveforms were used for this purpose. This task also required the DFIG system to provide reactive power to the grid. In the case of a rigid grid, this reactive power would be too high. Therefore, in this case, it was assumed that the system would supply only part of the required active and reactive power, based on its capabilities. It was required that the voltage and current ratings of the system, mainly the DFIG, were not exceeded. Therefore, the parameters of the network in these difficult failure cases were corrected only partially. The behaviour of the grid in the conditions of failure, as well as the return to the steady state after failure disappearance, were studied.