**7. Conclusions**

The use of wind energy in places where this natural resource is available should be an alternative for the generation of electrical energy, since it does not harm the environment and the wind does not end. There are places of di fficult access due to their complicated orography surrounded by mountains where the wind is turbulent with various changes in wind speed.

A small deviation in the wind speed causes a large deviation in the output power of the wind turbine rotor due to the association of cubic links between these two parameters. This, in turn, translates into system vibration, mechanical fatigue, and an acceleration in the rotation speed that exceeds the nominal rotation speed of the generator.

Pitch control is the movement of the blades to receive wind power, conventional PI control is efficient in a stable state, but not in sudden changes in wind speed. This article proposes a new method of e ffectiveness for a PI controller based on the optimization of the gains used, which represents a better control response in di fferent wind speed ranges. The proposed PI-TLBO algorithm proved to be e fficient, since better performance was obtained compared to a conventional PI, it proved to be repetitive even though, in the teacher phase, the algorithm uses a random choice of parameters to generate new solutions. The algorithm has a rapid calculation speed due to the simplicity of its operations.

In general, with the PI-TBLO controller there is a lower overshoot and that the stabilization period is also reduced when disturbances occur, therefore it is highly e fficient to control the pitch angle of a wind turbine under various atypical wind disturbances such as bursts and turbulence, reducing the transient e ffects of the controller and, consequently, the energy consumption in the actuator. Moreover, it was evident that the error between the nominal rotation speed of the generator shaft and the measured speed was considerably reduced, therefore, the generator is prevented from having losses due to magnetic saturation. According to the above, it can be ensured that the generation of energy in a wind turbine is increased with the use of an optimized PI-TLBO control algorithm to position the pitch angle.

The limitation of this work was the reaction speed of the mechanical system, the controller proved to be highly e fficient, however, with extreme wind gusts, the actuator did not have enough speed to adjust the angle. An improvement to the design of the control model is the location of the wind speed measurement system, placing it at a specific distance, where the bursts of time are detected in advance and the controller can give a timely response, thereby the control transients that make the system unstable would be further reduced.

The use of algorithms that e fficient the use of wind turbines is key to boost the use of wind energy with small wind turbines where the wind is not stable and the use of large commercial wind turbines is not possible or profitable.

**Author Contributions:** Conceptualization, E.C.-N. and J.-C.J.-C.; methodology, E.C.-N.; system control, E.C.-N. and R.-V.C.-S.; experiments, E.C.-N. and R.-V.C.-S.; software, R.-V.C.-S.; hardware, J.-C.J.-C.; validation, J.-G.R.-M.; formal analysis, M.T.-P.; investigation, E.C.-N.; resources, J.-C.J.-C..; data curation, J.-G.R.-M.; discussion, M.T.-P. and J.-C.J.-C.; writing—original draft preparation, E.C.-N.; writing—review and editing, M.T.-P. and J.-G.R.-M.; visualization, E.C.-N.; supervision, J.-C.J.-C.; project administration, J.-C.J.-C.; funding acquisition, J.-C.J.-C.

**Funding:** This research received no external funding.

**Acknowledgments:** This work was supported by Departamento de Investigación y Posgrado of the Facultad de Ingeniería and Universidad Autónoma de Querétaro.

**Conflicts of Interest:** Authors declare no conflict of interest.
