1 Introduction

The energy crisis of 1973, when it was increased six-fold the price of oil and the blockage of oil-producing countries to Denmark, the Netherlands, Portugal, South Africa and the United States, provided conditions for the resurgence of renewable energies [1]. This crisis has highlighted political consequences that have materialized in actions whose aim is to ensure diversity and security of energy supply. Thus, the motivation and the interest for renewable energies have emerged, and research and development activities in wind energy, as an alternative source of electricity, were stepped up significantly, particularly in Europe and USA.

With the growing need for electricity production from renewable energy sources, wind turbines are an effective response. Wind turbines are the most common form to describe the wind energy conversion systems (WEnCS) in the form of electricity [2]. After the energy crisis of 1973, in the 80 s, the first wind turbines had rotor diameters between 10 m to 20 m and output power ranging from 25 kW to 100 kW. Research yielded the technological development which allowed the growth conditions favorable for mass production, making possible the development of construction techniques for more robust wind turbines and allowing the increase of the installed power [3].

In the period 2011–2014, there was an average annual growth in installed wind power worldwide by 13 %, reaching a value of approximately 336 GW in mid 2014 [4]. This production technology is considered one of the technologies with the largest and fastest growing worldwide due to the level of penetration and maturity. The wind power installed worldwide in the period 2011–2014 is presented in Fig. 1.

Fig. 1.
figure 1figure 1

Installed wind power 2011–2014 [4].

In 2014, India, China, USA, Spain and Germany, are the countries with the largest installed wind power capacity and represent a global market share of 72 % of the worldwide installed wind power [4]. Portugal is positioned in 11th place with an installed wind power capacity of 4829 MW, reached in the first half of 2014, and is considered the second largest electricity generation source in Portugal, reaching 11.8 TWh [5].

In the overview of this paper, Sect. 2 presents the connection of the PhD work to cyber-physical systems. Section 3 presents the modeling and structure of WEnCS connected to the electric grid and the operating regions according to the wind speed are also defined. Control and supervision of WEnCS is presented in Sect. 4. WEnCS control is achieved using different types of controllers such as integer-order controllers, e.g. classical proportional integral (PI), fractional-order controllers e.g. fractional order proportional integral (FOPI), fuzzy logic controllers (fuzzy PI), adaptive controllers, e.g. linear quadratic Gaussian (LQG) or predictive, e.g. model predictive control (MPC). The supervision system is based on FSM. Section 5 presents the simulation results as well the performance of WEnCS with and without supervisor. Conclusions remarks are given in Sect. 6.

1.1 Motivation

Since 2000, wind technology has seen a continuous growth in Portugal, motivated by a political strategy, at European and National levels, in endogenous and renewable resources with the objective of diversifying sources, improving the security on supply, decreasing of energetic dependency and reducing the environmental impact of electro production system. The promotion of renewable energies, particularly wind energy, is particularly important in this international and community context taking into account the objectives and goals of which the country is committed to progressively decrease external energy dependence and reduce the carbon intensity of its economy.

With recent technological advances and reduction of electronic converters and position actuators costs, most WEnCS are equipped with electronic power converters and servomechanisms that control the blade pitch angle. The widespread use of electronic converters power and position servo allows flexibility and controllability of WEnCS behavior in terms of energy harvesting but increases the level of complexity of the control loop system. Hence, WEnCS should be carefully designed to meet the international specifications of the power quality injected in the power grid. The WEnCS control involving electrical and mechanical subsystems is considered complex, thus challenging.

The motivation to address the issue of control and supervision of WEnCS results from the need to respond to the challenge related to the control of the various subsystems constituting the WEnCS. This paper deal with an interesting, current and important research topic which includes appropriate mathematical models describing WEnCS dynamics, the study of different types of controllers and the study of a supervisor based on FSM. Considering the mentioned above, this work aims providing solutions to answer the following research question:

Q.1 how can the electric power of a complex system meet the international specifications of its quality injected in the electric grid?

The adopted work hypothesis to address the research questions is defined below:

Using a stratified structure with two distinct levels, a FSM supervisor in the supervision level, and five different control approaches in the execution level, to improve the performance of the WEnCS.

1.2 Original Contributions

This paper presents original contributions to the development of hierarchical structures with supervision and control applied to WEnCS with special emphasis on its performance when using different types of controllers with and without supervisor. In particular: the study on the performance of five different controllers, PI, FOPI, Fuzzy PI, LQG and MPC applied to WEnCS [6, 7]; the development of a hierarchical structure with two operating levels: execution and supervision level. The supervision level, based on FSM’s which represent the operating regions, determines the operational states. The execution level receives the information from the operational states and acts accordingly using one of the controllers [8, 9]; the comparative study of the performance assessment of the developed hierarchical structure, for five different types of controllers in the absence and presence of supervisor [9, 10].

2 Relationship to Cyber-Physical Systems

In the past few years, control and computer science researchers have come together in the development of dominant engineering methods and tools, namely in the areas of system identification, robust control, optimization and stochastic control. In the meantime, researchers also made significant breakthroughs in embedded architectures and systems software, on programming languages, real-time techniques, and innovative approaches ensuring computer system reliability, fault tolerance and cyber security.

The significant breakthroughs in science and technology allow the opportunity to link cyber space and physical components. This bridge leads to Cyber-Physical Systems (CyPS) [11]. CyPS researches are constantly developing strategies in order to combine knowledge and engineering principles crosswise the computational and engineering areas such as mechanical, electrical, networking, control, learning theory to overcome the difficulties existing in CyPS supporting technology and science.

The conception of CyPS is to use communication, computing, and control to build autonomous and intelligent systems. Autonomous controls are widely used in industrial process with control loops and the production process is monitored using sensors placed along the production line and acts with the industrial process using actuators. CyPS focuses on bridging control network architectures using sensors and actuators in complex processes [12].

Currently, CyPS is too involved in the area of energy distribution and management. The research developments in cyber-physical energy systems (CyPES) are concentrated on demand side management, consumption and distribution of technologies, such as smart grids and energy managements of buildings and physical structures. For the generation phase, the innovative CyPES should be focused on renewable sources such as solar and wind energy. Regarding wind farms, its construction and planning implicates a problematical decision because it depends on economic, technical, social and environmental aspects. Following a detailed investigation of WEnCS, it is possible to formulate physical and cyber layers with diverse technical and non-technical layers. One can consider collaborative wind farms, wind turbine (WiT) and integration with smart grids.

The interaction with social context and coordination of cyber layers and physical components of WEnCS require handling with complex challenges regarding competiveness and practicability of upcoming WEnCS [13].

The success of the integration of wind power into the electric power grid depends on interconnected, distributed CyPS, which is evolving in the engineering industry. The models of CyPS components are composed by state variables, usually discrete values that are updated at discrete events. FSM’s are systems with finite states, inputs and outputs assuming values from discrete sets that are updated at discrete transitions triggered by its inputs. The FSM can be used to describe CyPS.

3 WEnCS Modeling

In this chapter it is developed a mathematical model that represents an appropriate dynamic of a WEnCS. The model should be thorough enough to be used as a simulation model. The development of the mathematical model is based on the standard model developed in [14], whose electric power output is 4.8 MW.

3.1 WEnCS

WEnCS are designed in order to convert wind kinetic energy into electrical energy. The wind kinetic energy is captured by the blades causing the rotation of the blades; this rotation transforms the wind kinetic energy into mechanical energy increasing the speed of an electric generator thus obtaining electrical energy. WEnCS operation can be divided into functional subsystems that describe the WEnCS overall operation. The subsystems of the benchmark structure with a supervisor are shown in Fig. 2.

Fig. 2.
figure 2figure 2

Benchmark model structure [14].

Figure 2 shows the relationship between the functional subsystems and the variables involved. The variables are: \( v_{w} \) is the wind speed; \( \tau_{r} \) is the turbine rotor torque; \( \omega_{r} \) is the turbine rotor speed; \( \tau_{g} \) is the generator rotor torque; \( \omega_{g} \) is the generator rotor speed; \( \beta_{r} \) is the rated pitch angle; \( P_{r} \) is the turbine rated power and \( P_{g} \) is the generator output power. The m subscripts designate measured values.

Blade and Pitch Subsystem:

This subsystem combines the aerodynamic with blade and pitch models. The torque acting on the blades can be determined by the aerodynamics of the WiT. The aerodynamic torque is expressed as:

$$ \tau_{r} (t) = \frac{{\rho \pi R^{3} C_{p} \left( {\lambda (t),\beta (t)} \right)v_{w}^{2} (t)}}{2\lambda }. $$
(1)

where \( \rho \) is the air density, \( C_{p} \left( {\lambda (t),\beta (t)} \right) \) is the power coefficient, which is, respectively, a function of the tip speed ratio and the pitch angle and R is the radius of the blades. The tip speed ratio is given by:

$$ \lambda (t) = \frac{{\omega_{r} (t)R}}{{v_{w} (t)}}. $$
(2)

Observing (2), the variation of the wind speed can lead to two consequences: if the mechanical speed is constant, then λ(t) will change, leading to a consequent change in C p hence in the power capturing; if the mechanical speed is suitably adjusted, then λ(t) can be held at a reference point and as a result C p can be kept at a desired value. The power coefficient of a WiT using pitch control [15] is expressed as:

$$ C_{p} (\lambda ,\;\beta ) = 0.73\,{\kern 1pt} ({\kern 1pt} {\kern 1pt} \frac{151}{{\lambda_{i} }} - 0.58\,\beta - 0.002\beta {\kern 1pt} {\kern 1pt}^{2.14} - 13.2{\kern 1pt} {\kern 1pt} {\kern 1pt} ){\kern 1pt} {\kern 1pt} {\kern 1pt} \,e^{{\frac{ - 18.4}{{\lambda_{i} }}}} . $$
(3)

where \( \lambda_{i} \) is expressed as:

$$ \lambda_{i} = \frac{1}{{\frac{1}{(\lambda - 0.02\,\beta )} - \frac{0.003}{{(\beta^{3} + 1)}}}}. $$
(4)

The pitch angle is defined by three hydraulic actuators and can be modeled as a second order system [14] expressed as:

$$ \ddot{\beta }(t) = - 2\xi \omega_{n} (t)\dot{\beta }(t) - \omega_{n}^{2} \beta (t) + \omega_{n}^{2} \beta_{r} (t). $$
(5)

The C p curve is shown in Fig. 3.

Fig. 3.
figure 3figure 3

Power coefficient curve.

Drive Train Subsystem.

This subsystem is configured by a two-mass model has a first mass J r to concentrate the inertia of the turbine blades, hub and low-speed shaft inertia and a second mass J g to concentrate the generator inertia and high-speed shaft. The low-speed and high-speed shafts are connected by a gear box ratio \( N_{g} \), with torsion shaft stiffness \( K_{dt} \) and torsion shaft damping \( B_{dt} \). This results in the angular deviation \( \theta_{\Delta } (t) \) due to the damping and stiffness coefficients between turbine and generator. The linearized model for this subsystem is expressed as:

$$ J_{r} \dot{\omega }_{r} (t) = \tau_{r} (t) + \frac{{B_{dt} }}{{N_{g} }}\omega_{g} (t) - K_{dt} \theta_{\Delta } (t) - \left( {B_{dt} + B_{r} } \right)\omega_{r} (t). $$
(6)
$$ J_{g} \dot{\omega }_{g} (t) = \frac{{K_{dt} }}{{N_{g} }}\theta_{\Delta } (t) + \frac{{B_{dt} }}{{N_{g} }}\omega_{r} (t) - (\frac{{B_{dt} }}{{N_{g}^{2} }} + B_{g} )\omega_{g} (t) - \tau_{g} (t). $$
(7)
$$ \dot{\theta }_{\Delta } (t) = \omega_{r} (t) - \frac{1}{{N_{g} }}\omega_{g} (t). $$
(8)

Generator and Converter Subsystem.

This subsystem dynamics is described by a first order system. The generator and the power converter model as well as the generator output power are expressed as:

$$ \dot{\tau }_{g} (t) = \alpha_{gc} \left( {\tau_{g,r} (t) - \tau_{g} (t)} \right). $$
(9)
$$ P_{g} (t) = \eta_{g} \omega_{g} (t)\tau_{g} (t). $$
(10)

where \( \alpha_{gc} \) is a first order time constant and \( \eta_{g} \) denotes the generator efficiency.

3.2 Operating Regions

The overall goal of WEnCS control is to optimize the power supplied to the electric grid within a certain range of wind speed, and to minimize energy production and maintenance costs [16]. These costs depend on the conditions in which the WiT is subjected while converting the wind energy captured. Hence, four operating regions are considered, according to the wind variation [17], shown in Fig. 4.

Fig. 4.
figure 4figure 4

Operating regions by wind speed.

The maximum electrical power associated with energy supplied to the electric grid is also known as rated or nominal power. The rated wind speed, \( v_{rated} \), is the wind speed at which the rated power is reached.

When the wind speed is too slow, i.e., below 5 m/s [14] the operating region is classified as Region I, and the wind turbine is stopped in this region. When the wind speed is between 5 m/s and 13 m/s the operating region is classified as Region II [14]. The control objective is to capture all available wind power by forcing the pitch angle equal to zero degrees within safety conditions.

Above the nominal wind speed, i.e., 14 m/s the operating region is classified as Region III [14], and the wind turbine operates at the rated power of the generator. The control objective is to operate the WiT at the rated power. When the wind speed is above 25 m/s [14], the operating region is classified as Region IV and the wind turbine is shut down for its own protection.

For control purpose, only Region II and Region III are considered. For those regions, the implemented controllers provide the pitch angle and the generator torque reference.

For power optimization region, the reference for pitch angle is equal to zero degrees and the electric torque reference is given by:

$$ \tau_{g,r} (k) = K_{opt} \left( {\frac{{\omega_{g} (k)}}{{N_{g} }}} \right)^{2} . $$
(11)
$$ K_{opt} = \frac{1}{2}\rho AR^{3} \frac{{C_{p\hbox{max} } }}{{\lambda_{opt}^{3} }}. $$
(12)

where \( \lambda_{opt} \) is the optimal point in C p and A is the area swept by the blades. The optimal solution can be seen in Fig. 4 and is given by:

$$ \left\{ {\begin{array}{*{20}l} {C_{p\hbox{max} } (\lambda_{opt} (0),0) = 0.4554} \hfill \\ { \lambda_{opt} (0) = 6.743} \hfill \\ \end{array} } \right.. $$
(13)

For rated power region, the pitch and generator torque reference should be tuned at the same time and the latter is expressed as:

$$ \tau_{g,r} (k) = \frac{{P_{r} (k)}}{{\eta_{g} \omega_{g} (k)}}. $$
(14)

4 WEnCS Control and Supervision

The control of WEnCS is achieved using different types of controllers such as integer and fractional-order controllers, fuzzy logic controllers, adaptive and predictive controllers. The supervision system is based on FSM.

4.1 Control Strategies

The control strategies used in this paper include the switching of the control mode from Region II to Region III if P g (k) > P r (k) or \( \omega_{g} (k) \) > \( \omega_{nom} (k) \) and switching back from Region III to Region II if \( \omega_{g} (k) < \omega_{nom} (k) - \omega_{\varDelta } \), where \( \omega_{\Delta } \) is a small offset used to avoid numerous switches between control modes. The mathematical equations that describe the dynamics of the controllers are described thoroughly in [18], thus, in the current section it will only be presented the final control action equation regarding each controller.

Integer-Order Proportional Integral Controller.

The integral proportional integral control action is given by:

$$ \left\{ {\begin{array}{*{20}l} {u(k) = u(k - 1) + K_{p} e(k) + \left( {K_{i} T_{s} - k_{p} } \right)e(k - 1)} \hfill \\ {e(k) = \omega_{g} (k) - \omega_{nom} (k)} \hfill \\ \end{array} } \right.. $$
(15)

where \( \omega_{nom} \) is the nominal WiT speed, \( K_{p} \) is the proportional gain and \( K_{i} \) is the integral gain.

Fractional-Order Proportional Integral Controller.

This controller is based on power series expansion of the trapezoidal rule [19], the controller is expressed as:

$$ \left\{ \begin{aligned} G(s) = K_{p} + K_{i} \;s^{{ - {\kern 1pt} \,\mu }} \hfill \\ s^{\mu } \approx \left[ {\frac{2}{{T_{s} }}\frac{{1 - z^{ - 1} }}{{1 + z^{ - 1} }}} \right]^{\mu } \hfill \\ \end{aligned} \right.. $$
(16)

where \( \mu \) is the integral fractional-order satisfying \( 0 < \mu < 1 \) and \( T_{s} \) is sampling time. The discrete \( PI^{\mu } \) control parameters were obtained using a MATLAB function [20].

Fuzzy Proportional Integral Controller.

This controller is expressed as:

$$ \left\{ {\begin{array}{*{20}l} {u(k) = u(k - 1) + k_{{\Delta u}} f_{NL} (e(k),k_{e} ,\Delta e(k),k_{{\Delta e}} )} \hfill \\ {e(k) = \omega_{g} (k) - \omega_{nom} (k)} \hfill \\ \end{array} } \right.. $$
(17)

where r(k) is the input, y(k) is the output, f NL is a non linear function which represents the inference fuzzy system with scaling factors \( k_{e} ,k_{{\Delta e}} ,k_{{\Delta u}} \).

Linear Quadratic Gaussian Controller.

This controller is expressed as:

$$ u(k) = \frac{{\hat{b}_{0} }}{{\hat{b}_{0}^{2} + \rho^{2} }}\left[ {\left( {\frac{{\rho^{2} - \hat{b}_{1} \hat{b}_{0} }}{{\hat{b}_{0} }}} \right)u(k - 1) + \hat{a}_{1} y(k) + \hat{a}_{2} y(k - 1) + \omega_{nom} (k)} \right]. $$
(18)

where \( \hat{\theta }(k) = [\hat{a}_{1} \,\,\hat{a}_{2} \,\,\hat{b}_{0} \,\,\hat{b}_{1} ] \) are estimated using recursive least squares (RLS) algorithm.

Model Predictive Controller.

The minimization of cost function in order to determine the optimal control action is given by:

$$ \begin{aligned} u*(k) & = \mathop {\hbox{min} }\limits_{{u(k)\; \cdots \;\hat{u}(k + Np - 1)}} J(k) = \overbrace {{\sum\limits_{j = 1}^{Np} {\left[ {\left. {e(k + j)} \right|k} \right]}^{\rm T} Q(j)\left[ {\left. {e(k + j)} \right|k} \right]}}^{quadratic\,\,error} + \cdots \\ & \quad + \overbrace {{\sum\limits_{j = 0}^{Np - 1} {\left[ {u(\left. {k + j} \right|k} \right]}^{\rm T} R(j)\left[ {u(\left. {k + j} \right|k} \right]}}^{control\,\,effort}. \\ \end{aligned} $$
(19)

4.2 Supervisor

The WEnCS operational state is determined by the event-based supervisor in the supervision level. To model the event-based controller, the following operational states, shown in Fig. 5, are used. It is considered the following operational states: park, start-up, generating and brake.

In the park state, Region I, the WiT should be stopped and the generator should not be connected to the grid.

In the start-up state, Region II, the wind must be above a minimum speed, hence, the WiT should be rotating in order to capture all available power. The generator is connected to the electric grid, but not necessarily at rated power the majority of the time.

The power production state or generating state, Region III, is the region where the turbine speed is in the rated wind range, hence, the generator is connected to the electric grid at rated power all the time.

The brake state is based on a number of conditions which will allow the supervisor to exit the generating state, enter into the start-up state or enter into the park state.

Fig. 5.
figure 5figure 5

Representation of the operational states and conditions.

4.3 Performance Assessment of the Controllers

The metrics used in the evaluation of the performance of the controllers are the integral of time multiplied by the absolute value of the error (ITAE) given by:

$$ ITAE = \int_{0}^{{t_{f} }} {t.\left| {e(t)} \right|} dt. $$
(20)

and the integral of the square value (ISV) of the control input given by:

$$ ISV = \int_{0}^{{t_{f} }} {u^{2} (t)} dt. $$
(21)

where ITAE is used as numerical measure of tracking performance for the entire error curve and ISV is used as numerical measure of the control effort.

5 Results

The numerical results and the conclusions about the performance of the WEnCS, using computer simulations are presented. The performance of WEnCS is studied using the PI controllers, FOPI, Fuzzy PI, LQG or MPC with or without the inclusion of the supervisor. The mathematical model for the WEnCS and the simulations with the two-level power converter topology are implemented in Matlab/Simulink. The time horizon considered in the simulations is of 4500 s, and the sampling time T s  = 0.01 s.

The wind speed considered in the simulations has a profile in the range of 7.5 m/s to 22.5 m/s (between Region II and Region III) and white noise is added to the wind speed to make it more realistic. The wind speed with white noise is shown in Fig. 6.

Fig. 6.
figure 6figure 6

Wind speed sequence with white noise.

Fig. 7.
figure 7figure 7

Generated and reference power (PI): (a) without supervisor, (b) with supervisor.

5.1 Generated and Reference Power Simulation

All the generated and reference power without the supervisor are shown in Fig. 7(a) and with the supervisor are shown in Fig. 7(b).

PI Controller.

With the PI controller, one can see that the electric output power, with or without the supervisor, follows the reference power presenting higher levels of oscillation.

FOPI Controller.

The generated and rated power without the supervisor is shown in Fig. 8(a) and with the supervisor is shown in Fig. 8(b).

Fig. 8.
figure 8figure 8

Generated and reference power (FOPI): (a) without supervisor, (b) with supervisor.

Fig. 9.
figure 9figure 9

Generated and reference power (Fuzzy PI): (a) without supervisor, (b) with supervisor.

With the FOPI controller, it can be seen that the electric output power still presents higher level of oscillation around the reference power, with or without the presence of the supervisor and also presents frequent decreases in electric output power due to wind variations.

Fuzzy PI Controller.

The generated and rated power without the supervisor is shown in Fig. 9(a) and with the supervisor is shown in Fig. 9(b).

With the Fuzzy PI controller, in both situations, the electric output power follows the reference power with a smoother response around the reference power having some decreases in the electric output power due to sudden wind variations.

LQG Controller.

The generated and rated power without the supervisor is shown in Fig. 10(a) and with the supervisor is shown in Fig. 10(b).

Fig. 10.
figure 10figure 10

Generated and reference power (LQG): (a) without supervisor, (b) with supervisor.

With the LQG controller, in both situations, the electric output power follows the rated power with few oscillations around the reference power having some decreases in the output power without the supervisor.

MPC Controller.

The generated and rated power without the supervisor is shown in Fig. 11(a) and with the supervisor is shown in Fig. 11(b).

Fig. 11.
figure 11figure 11

Generated and reference power (MPC): (a) without supervisor, (b) with supervisor.

With the MPC controller, without the supervisor, the electric output power follows the rated power with few oscillations around the reference power having some decreases in the output power. With the supervisor, the electric output power follows the rated power with a smoother response around the reference power.

5.2 Performance Assessment

Table 1 summarizes the controller performance results.

Table 1. Controller performance results.

Considering the values obtained without the action of the supervisor, the error between electric output and reference power is smaller with LQG controller, meaning that the electric output power follows the rated power more accurately. From a control effort point of view, FOPI consumes less energy given the narrower variation of the pitch angle. Considering the values obtained under the action of the supervisor, the error between electric output and reference power is smaller with LQG and MPC controllers. Regarding energy consumption, LQG presents a superior performance.

6 Conclusions

A hierarchical structured is presented composed by a FSM supervisor in the top level and five distinct controllers: PI, FOPI, Fuzzy PI, LQG and MPC in the lower level. The WEnCS operational state is determined by the operating conditions, which are analyzed by the event-based supervisor. The implemented controllers in the lower level are intended to process the operational state information provided by the supervisor. The controllers in the lower level act in order to sustain the output power near the region of the nominal value by acting on the pitch angle of the blades.

Comparisons between the implemented controllers regarding closed loop response, without supervisor, unveil the fact that the LQG controller outperforms the remaining controllers at expense of higher control effort. Regarding control effort, FOPI controller presents better performance in what regards the expenditure effort, i.e., the controller presents lower control effort but at expense of an oscillatory closed loop response.

Comparisons between the implemented controllers regarding closed loop response, with supervisor, show that LQG and MPC controllers follow the reference power with a smoother response outperforming the remaining controllers. Regarding control effort, LQG controller presents better performance while MPC continues to have high values of control effort.

Overall, the simulation results with supervisor presented better performance, where LQG controller stood out among the other controllers.