A method of optimizing the electrical power production of a horizontal-axis wind turbine, said wind turbine comprising a tower supporting a nacelle provided with a rotor to which blades are fastened, wherein an angle of inclination of said blades is controlled, characterized in that it comprises the following steps: a) determining a first angle of inclination of the blades allowing the recovered power to be maximized, by means of the following steps: i- generating an electric torque setpoint value T e sp of said rotor as a function of a rotor velocity measuremen; ii- generating a rotor velocity setpoint value Ω r sp as a function of a wind velocity measurement V w through mapping; iii- generating an aerodynamic torque setpoint value T aero sp so as to follow this rotor velocity setpoint value; iv- determining said first angle of inclination allowing to achieve this aerodynamic torque and to guarantee regulation of the rotor velocity; b) selecting an aerodynamic force model for modelling an aerodynamic force produced on the nacelle as a function of a wind velocity, of an angle of inclination and of a rotor velocity; c) determining the aerodynamic force produced on the nacelle when the blades are oriented with said first angle; d) determining a setpoint value for the aerodynamic force produced on the nacelle when the blades are oriented with said first angle, by decreasing said aerodynamic force determined in step c) by a term defined so as to decrease velocity variations at the top of said tower; e) determining a second angle of inclination of the blades allowing to obtain said aerodynamic force setpoint value by inverting said aerodynamic force model and using a wind velocity measurement, a rotor velocity measurement and said aerodynamic force setpoint value; and f) orienting the blades at said second angle. a) determining a first angle of inclination of the blades allowing the recovered power to be maximized, by means of the following steps: i- generating an electric torque setpoint value T e sp of said rotor as a function of a rotor velocity measuremen; ii- generating a rotor velocity setpoint value Ω r sp as a function of a wind velocity measurement V w through mapping; iii- generating an aerodynamic torque setpoint value T aero sp so as to follow this rotor velocity setpoint value; iv- determining said first angle of inclination allowing to achieve this aerodynamic torque and to guarantee regulation of the rotor velocity; i- generating an electric torque setpoint value T e sp of said rotor as a function of a rotor velocity measuremen; ii- generating a rotor velocity setpoint value Ω r sp as a function of a wind velocity measurement V w through mapping; iii- generating an aerodynamic torque setpoint value T aero sp so as to follow this rotor velocity setpoint value; iv- determining said first angle of inclination allowing to achieve this aerodynamic torque and to guarantee regulation of the rotor velocity; b) selecting an aerodynamic force model for modelling an aerodynamic force produced on the nacelle as a function of a wind velocity, of an angle of inclination and of a rotor velocity; c) determining the aerodynamic force produced on the nacelle when the blades are oriented with said first angle; d) determining a setpoint value for the aerodynamic force produced on the nacelle when the blades are oriented with said first angle, by decreasing said aerodynamic force determined in step c) by a term defined so as to decrease velocity variations at the top of said tower; e) determining a second angle of inclination of the blades allowing to obtain said aerodynamic force setpoint value by inverting said aerodynamic force model and using a wind velocity measurement, a rotor velocity measurement and said aerodynamic force setpoint value; and f) orienting the blades at said second angle.