Decoupled inputs sliding mode controllers for a fuel cell-supercapacitor module in hybrid generation applications

The development of Multiple Input/Multiple Output (MIMO) sliding mode control setups for a fuel cell/supercapacitor module is presented in this paper. The main objective of the proposed controllers consists in simultaneously satisfying the demand and regulating the DC bus voltage, even in the presence of model uncertainties and strongly varying operating conditions. Two design approaches are utilized to synthetise different control setups, each one capable to robustly deal with such control challenges: on one hand, variable-gains first-order sliding mode and, on the other, supert-wisting second-order sliding mode control. The stability of the nonlinear controlled system is formally analysed. Extensive simulations are conducted, to comparatively assess the performance of the proposed MIMO sliding mode controllers. Both control setups exhibited highly satisfactory results, demonstrating robustness to external disturbances and parameter variations, proving to be more suitable than classic linear PID controllers.


Introduction
During the last years, hybrid electric power generation systems based on renewable sources have been strongly studied and developed all over the world. In this sense, Fuel Cell (FC)-based systems result a promising choice due to its high efficiency, zero pollution, and sustainability [1][2][3]. In particular, the Proton-Exchange Membrane (PEM) FC-based systems are being extensively studied for transport [4] and stationary applications [5].
One of the main problems associated with the PEM FC is that abrupt changes in its current must be avoided, to prevent irreversible damages to the membranes, improve the H 2 consumption, and reduce voltage drop transients [6]. For this reasons, FC are often complemented with a module capable to rapidly respond to fast load variations. To this end, supercapacitors (SC) show to be an efficient solution [7]. These FC/SC modules are frequently combined with renewable energy sources and a hydrogen production device to conform an auto-sustainable zero-emission Hybrid System (HS). Hydrogen production may be achieved then by taking advantage of the excess power generated by the renewable modules [8].
In an external control level, to optimize the HS performance as a whole, several supervision and energy management strategies that ensure effective operation have been implemented (e.g., [9][10][11]). Then, in an inner level, to fully control the HS power converters, diverse Sliding Mode (SM) techniques have proven to be adequate. Through a proper design, these techniques are able to provide excellent dynamic behaviour, robustness, and finite time convergence [12][13][14]. For instance, in [15], SM techniques are used for the control of the converter of a single fuel cell stack. In [16], a control strategy based on a linear PI and SM combination is presented for a FC/SC hybrid module. In [17], the control of a stationary autonomous hybrid electric power system is assessed, considering a relative degree approach and inductive loads, while [18] deals with a similar case, but applied to hybrid electric vehicles.
In such context, the authors have developed in [19] a sliding mode control setup for a FC/SC-based hybrid module topology 1 3 like the one tackled in the present paper. In that preliminary work, a double SISO design approach has been followed to synthetize two complementary fixed-gains First-Order Sliding Mode (FOSM) controllers. The successful results obtained showed the suitability of sliding mode to robustly deal with this topology, in the presence of exacting operating conditions, such as highly variable load demand and varying wind.
Those encouraging results have thrusted the endeavours, leading to the enhanced control proposal presented in this article. Several new contributions have been developed. Among them, a diffeomorphism is utilized to deal with the inherent coupling of the system, allowing a MIMO more-efficient design approach. In addition, chattering reduction is attained. This undesirable phenomenon, particularly present in classic first-order sliding mode controllers, is successfully mitigated by developing a Second-Order Sliding Mode (SOSM) control setup. Another important issue, the stability of the nonlinear controlled system, is established by providing a formal analysis of its zero dynamics, which was omitted in [19].
Summarizing, this paper addresses the development of two different MIMO control setups for the FC/SC module, which is assumed to be part of an already existent HS that also comprises renewable power sources and an electrolyzer. Both proposed MIMO controllers, one based on variable-gain FOSM and the other on SOSM, prove to be robust. Simulation results considering parameter variations and variable load power demand are thoroughly assessed and discussed, including comparisons between both MIMO setups and with a classic PID control structure.

Model of the FC/SC module
A schematic diagram of the HS is shown in Fig. 1, where the FC/SC module is highlighted by dashed lines. The fuel cell stack and the supercapacitors bank are connected to a DC Bus via boost converters. In addition, the electrolyzer and a renewable energy source (in this case, a wind energy conversion system (WECS)) are also displayed, to provide a complete representation of a HS.
It is assumed that the power references for the controllers of each module are computed, at a higher level, by an external supervisory control that coordinates the power flows interaction over the entire system. Figure 2 presents the circuit diagram of the FC/SC module. It can be modelled by the following control affine equations: w h e r e t h e s t a t e v e c t o r r e s u l t s cycle of the ith converter switch, as indicated in Fig. 2

Supervisory control strategy
This section briefly sums up a supervisory control strategy that is assumed to compute the coordinated power references for each module of the HS under consideration. The supervisory control is considered to be existent, and hence, it is not of interest of this paper to go in-depth on this strategy. Details can be found in [19]. The main objective of the HS is to adequately satisfy the external load demand at regulated voltage. In addition, ancillary objectives are to maintain the SC bank adequately charged and to generate hydrogen to refill the tank, provided that spare power is available from the alternative energy source (e.g., the WECS). The supervisory control strategy is schematically summarized in the flowchart of Fig. 3. From this figure, P tot,r is the total power demand in the DC bus; P L is the load power demand; P E and P E ref are the electrolyzer actual power and its reference; P W , P W ref and P W,max are the WECS actual power delivered to the DC bus, the WECS power reference, and the maximum available wind power, respectively; P FC and P FC ref are the FC actual power and its reference; and P SC ref is the SC power reference, obtained from the power balance in the DC bus.

FC/SC module SM controllers design
The FC/SC module control main objectives are to guarantee a constant DC bus voltage and to satisfy the module's power demand, even under heavy load variations.
Besides, some practical restrictions on the FC current must be taken into account. In addition to a maximum admissible value for that current, it is also convenient to impose a bound to the FC current slew rate. Three main reasons can be cited to support the latter. Firstly, the inherent stack dynamics limits the velocity at which power can be delivered to the load, i.e., FC's power cannot be set arbitrarily fast. Secondly, fast current changes may produce thermal stress at the catalyst surface, reducing the membrane lifetime. Finally, an adequate slew rate limitation may contribute to a fuel cell hydrogen consumption reduction [20].
To overcome such constraints, the FC is complemented by the SC to accurately maintain the power balance. This requires the SC converter to act rapidly to reject abrupt load variations and provide the so called peak shaving capability. Once the fast transient is extinguished, the control must enable the SC bank to recharge, slowly, to avoid FC overload.
Accordingly with the SM control theory, this set of control objectives must be formalized into the construction of suitable sliding variables S = [s 1 s 2 ] T , comprising current references based on the power references computed online by the supervisory control. The objectives are successfully attained when the SM controllers establish sliding mode regimes on the surfaces defined by S = 0.

Objective 1 into fuel cell sliding variable
The FC converter sliding variable is designed to follow smooth load power variations, considering the FC current limitations mentioned in the previous section. In steady state, the fuel cell stack must supply the power required by the supervisory algorithm. In addition, the FC should recharge the SC bank to a desired value if needed. The above-mentioned requirements are fulfilled by the following sliding variable structure: with I TotalFC,ref a lumped FC current reference that is computed in accordance with the aforementioned limitations for the slew rate and maximum FC current; a 1 > 0 a design gain of the sliding surface. This gain must be selected considering the desired SC bank charging dynamics. Small values for a 1 result in a slow recharging dynamics, while higher values imply faster SC-charging times. where P FC ref is the aforementioned FC power reference, computed by the supervisory control.

Objective 2 into supercapacitors sliding variable
The SC must deal with the high-frequency load changes and maintain the power balance. Thus, taking advantage of the fast dynamic response of the SC bank, its sliding variable is designed to regulate the DC bus voltage. In this case, a boost output voltage regulation surface is considered, combining both DC bus voltage and SC current: where V bus,ref is the bus voltage reference; a 2 is a positive surface gain selected to obtain a desired closed-loop x 3 dynamics. I SC,ref is obtained from the SC power reference, that is being P SC ref the SC power reference obtained by the supervisory control.

Control action design
The proposed control actions are composed by two terms. The first one is a biasing nominal control action, responsible of steering the states to the vicinity of the switching surface. The second one, is a sliding mode control action, that will force the system to sliding regime operation and will robustly reject parameter variations, uncertainties, and external disturbances: It is important to remark that the former allows to reduce the sliding mode gains, which in turn helps to lessen the overall control effort and the chattering effect.

Nominal control term design
The nominal control terms are initially based on the equivalent control action [21]. Giving S = [s 1 s 2 ] T , the equivalent controls can be obtained by taking Ṡ = 0 and S = 0 and solving for u 1 and u 2 : Then, when S = 0 , the equivalent controls actions can be derived from These equivalent control laws can be directly used as the nominal control terms in (9). In practice, however, aiming to reduce the online computational burden of the controllers, suitable simpler expressions for u iN can be obtained from approximated versions of (12) and (13) where v FC (x 1 ) is a measurable variable of the system, whose measurement can be used for online implementation.
It should be emphasized that the objective of the nominal control actions u iN ( i = 1, 2 ) is not to force the trajectories to reach the sliding surfaces, but to bring them to the region near to S = 0 . The sliding mode control actions designed in the sequel will be in charge of ensuring reaching and permanence on S = 0.

Sliding mode control action decoupling
To simplify the design the sliding mode control inputs and switching conditions, an input to surface decoupling methodology is proposed. This objective is achieved by a suitable diffeomorphism defined as follows.
Be T(x) a diffeomorphism that defines a new control action w SM : [22], equation (17) results with I 2 the 2 × 2 identity matrix.
In this way, each control input w iSM acts only over the correspondent variable s i , and both control actions can be designed independently. It is worth noting that the matrix T(x), as defined, results: The inverse of this matrix always exists if x 3 ≠ 0 and The former condition is fulfilled given that always exists a positive voltage at the DC bus. The latter condition is accomplished in the operation range by selecting the SC converter surface gain a 2 accordingly.

Variable-gains first-order sliding mode design
To attain sliding mode operation ( S = 0 ), the following variable-gain FOSM control law is proposed: where W ci and W ai (with i = 1, 2 ) are design parameters of the variable gain K var (x i ) . Note that the converter unmodelled losses are directly affecting its current dynamics, so the inclusion of the linear term in the gain K var (x i ) can largely mitigate their impact.
The design of gains W ci and W ai can be done by bounding the terms in (18) and conducting an error propagation analysis. In this case, the independence between both control actions ( w 1SM and w 2SM ) allows to use this method without any major complications. It must be remarked that the initial set of gains obtained through this method are usually too conservative.
For suitable application, further offline in-silico iterative tuning is required to simultaneously ensure the existence of the sliding mode regime while minimizing the output chattering. In this particular case, for the nominal system in the "Appendix", the obtained values of W ci and W ai were 5000 and 1000, respectively.

Second-order sliding mode design
In this section, a control algorithm that enforces S = 0 and Ṡ = 0 is designed. For the relative degree one system under consideration, a super-twisting sliding mode control technique is used: where W Pi and W Ii are gains that need to be designed computing bounds based on Ṡ and S , and i = 1, 2 . Particularly, Eq. (18) can be rewritten as Then, S results where From (23), it can be shown that if the local convergence to the surface and the sliding motion is guaranteed. Note that for actual application, the values of the gains are tuned by extensive simulation, aiming to reduce the values computed from (25)-(26) and to obtain minimum chattering. In this particular case, they were set as W P1 = 10, 000 , W I1 = 100, 000 , W P2 = 4000 , and W I2 = 7000.

Stability analysis: zero dynamics
With the sliding mode regime secured by control (9), the stability of the closed loop must be established by analysing the zero dynamics of the system. That reduced internal dynamics can be obtained from (1) by taking S = 0 , which imposes two algebraic restrictions over the states, and by replacing u with the equivalent control actions u eq (12)- (13).
Then, the dynamics order is reduced from four, of the original system, to two, for the zero dynamics. In the case under study, it can be expressed in terms of the DC bus and the SC voltages, i.e., x 3 and x 4 , respectively: where the states x 1 and x 2 , and the equivalent controls u 1,eq and u 2,eq , can be written as functions of x 3 and x 4 , provided that S = 0. For the analysis, it must be considered the dependence of the FC voltage ( v FC ) with the FC current ( x 1 ). In this way, a linear approximation of Eq. (3) is used, to simplify the following procedure. This approximation is valid assuming that the system operates in continuous conduction mode and such condition will make the FC to operate in its linear zone. The FC voltage can then be represented as Substituting these expressions and the nominal values of the system parameters (see "Appendix"), and assuming operating conditions, where ̇I FCref and ̇I SCref are neglectable, the second-order zero dynamics on x 3 and x 4 is obtained (the complete expressions of the zero dynamics in terms of x 3 and x 4 are not given due to space limitations).
A numeric study of the vector field allows to establish that ( x 3 = V busref ; x 4 = V SCref ) is an equilibrium point of the system. In this case, the references values were set as V busref = 75 V and V SCref = 40 V . As a first stability criterion, the first Lyapunov method is used. This method assess the eigenvalues of the Jacobian of the vector field: Computing this Jacobian for the load current operation range always results in real and negative eigenvalues, with mean values of 1 = −3921.57 y 2 = −5.54 × 10 −3 . This shows the local stability of the equilibrium point. However, it is important to prove stability in a region that contains the whole operation range, to ensure the stability of the HS. To this end, in addition to the previous condition, it must be found an invariant region that includes the stable equilibrium point and the complete operation range. A diagram of the vector field around the equilibrium point and some representative solutions of the zero dynamics are depicted in Fig. 4. In this figure is shown that an invariant region can be defined considering the outer trajectories (in dashed-dotted . red). Specifically, it is established an invariant region within the dashed green area.
Proving the existence of the invariant region is still not enough to ensure that every trajectory of the system will converge to the equilibrium point. It must be also proven that there are no closed trajectories, or orbits, inside the invariant region. To do so, the Bendixson criterion is used, considering the divergence of the vector field. It is stated that if the divergence is not zero and does not change sign inside the region, the system has no orbits in that region. The divergence of the vector field is computed as A graphic of this expression around the equilibrium point is shown in Fig. 5. It should be noted that even though the divergence depends on the load current, the changes are practically negligible and do not affect the sign changes within the operation range. It can be concluded then that, given the local stability of the equilibrium point and the existence of an invariant region, where the divergence of the vector field never changes sign, the zero dynamics results stable and converges to the references, within the operating region.

Simulation results
In this section, the performance of both proposed MIMO control setups, FOSM and SOSM, are assessed. For the analysis, extensive simulation were done, considering the FC/SC subsystem operating as part of the complete hybrid system, i.e., including the WECS, the electrolyzer, and a variable external load. As mentioned, the whole system is managed by a supervisory control that computes the power flow references for each module of the HS [19].
Realistic simulations were conducted using the complete full-order system model incorporating parameters variations up to 10% of their nominal values. In addition, highly variable power demand and available power of the WECS were considered, as depicted in Figs. 6 and 7, respectively. The step-like load variations used for the tests are intended to force the system to operate under extreme conditions. Figure 7 also displays the wind power reference (assumed to be provided by the supervisory control) and the actual wind power delivered into the DC Bus by the WECS. The power consumed by the electrolyzer, resulting from those load and WECS power conditions, is shown in Fig. 8. Note that the load, wind, and electrolyzer powers, displayed in Figs. 6, 7 and 8, respectively, are externally given input variables from the FC/SC module viewpoint.
When the available wind power is not enough to satisfy the total power demand, the FC/SC subsystem must act to deliver the required power to the load and accurately regulate the DC bus voltage (Fig. 9). It can be appreciated that both control strategies (FOSM and SOSM) regulate this voltage efficiently, even when large power changes in load demand occur. A couple of zoomed views are included, displaying the start up of the system until the 75 V reference is reached and a perturbation rejection due to an abrupt load change. From this figure, it is important to notice that even though the first-order sliding mode accurately manage to regulate the DC bus voltage with low-voltage drop due to abrupt load variations, it has higher chattering. On the other hand, the second-order sliding mode has a minimum chattering and a faster recover from voltage drops. The FC voltage and current are shown in Figs. 10 and 11, respectively. From the latter, it can be appreciated that the current rate limitation imposed to the reference by the control strategy makes the system to slowly reach the different operation points and accurately supply the required power, in accordance with the load power demand variations. In addition, it can be again observed that the FOSM exhibits a higher chattering effect than the SOSM. It is important to remark that the FC current is never set to 0, but to a minimum, to avoid stack star/stop process.
The voltage and current of the SC are presented in Figs. 12 and 13, respectively. In this case, the SC are smoothly recharged to its reference voltage (i.e., 40 V), while the current quickly responds to abrupt load power demands, showing the excellent behaviour of the developed controllers. It can be appreciated that, mainly due to the chattering, the FOSM controller produces more power  losses in the internal resistances so, as can be seen in Fig. 12, the supercapacitors bank voltage is always lower than in the SOSM case. Figures 14 and 15 show the switching surfaces for the FOSM and the SOSM controllers. It can be particularly noted the higher chattering of the former at larger load demands (see (20)). Moreover, SOSM presents a neglectable chattering around s i = 0 (see zoomed area).
Finally, Figs. 16 and 17 display the actual control actions applied to the power converters. It is important to note that these control actions are the ones actually applied to the power converters [i.e., Eq. (9)], computed using Eqs. (14), (15), and (16). As expected, the SOSM controller presents a smooth control action, although the FOSM discontinuous term is considerably reduced using (9), assuring robustness and good perturbation rejection.

Comparison with classic PID controller
To compare the performance of the designed MIMOsliding mode control setups, simulation results with the most ubiquitous control scheme, namely, Proportional-Integral-Derivative (PID) controller, are presented (most practical feedback loops in industry are PID-type structures). In this case, specifically, one PID controller was designed for the FC power converter to regulate its current. Besides, for the SC boost power converter, two PID controllers were used in nested loops, the inner one to regulate its current and the outer one to regulate the DC bus voltage. The PIDs were, initially, tuned using Ziegler-Nichols methods and, then, were further adjusted through extensive simulation.
The DC bus voltage of the system under abrupt load variations is shown in Fig. 18. Even though the three controllers show a good performance, it should be noted that the PID controllers are slower than both FOSM and SOSM. Particularly, FOSM exhibits the fastest recovery time, but with  In Fig. 19, a sinusoidal load variation was applied to the system. In this case, both FOSM and SOSM are able to reject this perturbation, while the PID controllers are not able of regulate the DC bus voltage. Although both sliding mode techniques are able to enforce the DC bus voltage, it is important to mention that with FOSM, voltage shows a small modulation around the reference voltage (see zoomed area), while this effect is not present with the SOSM algorithm.

3
As can be appreciated from these results, the PID controller is unable to accurately reject some perturbations, although its response under step-like load variations may be equivalent to the ones of FOSM and SOSM. On the other hand, both FOSM and SOSM show a considerably better disturbance rejection and with comparable computational cost.

Conclusions
Two different MIMO sliding mode approaches, namely, FOSM and SOSM, were utilized to tackle the robust control of a fuel cell/sSupercapacitor module intended for a hybrid system. In both cases, the proposed control actions for the FC and the SC power converters comprised two terms. The first one is a nominal control action, resulting from a simplified equivalent control computation. The second one, in the FOSM case, is a variable-gain SM term, while in the SOSM case is a super-twisting-based control term.
The use of a decoupling diffeomorphism proved to be a convenient method to simplify the sliding mode control design of this FC/SC topology, which is inherently coupled due to the connection of their components to a common DC bus. The diffeomorphism generates a new set of auxiliary control inputs which are decoupled with respect to the sliding variables.
Both proposed MIMO controllers obtained in this way demonstrated to be suitable solutions to robustly fulfil the flow management requirements of the FC/SC module embedded in a HS. Their performances were intensively assessed through realistic in-silico tests, dealing with varying wind and abrupt load demand changes, and extensive model uncertainties.
From comparative analysis, it was established that faster voltage drop recovery time could be achieved with the variable-gains FOSM controller, but with appreciable chattering. On the other hand, the SOSM exhibited slower recovery time, but with neglectable chattering. This can be observed in the DC bus voltage, and the FC and the SC currents, but more importantly, in the switching surfaces and control actions applied to the power converters.
Further comparisons, in this case against classic PID controllers, allowed to conclude that both developed MIMO controllers setups, FOSM and SOSM, displayed better disturbance rejection and performance under abrupt and sinusoidal load variations than the PID structure. Besides, it is worthy to note that the online computational burden of the formers is not exceedingly larger than the one of the PID algorithms.
In addition, it was formally demonstrated in the paper that the FC/SC module, controlled with the proposed MIMO SM setups, is stable. This could be established by studying the zero dynamics, and analysing the equilibrium point and the resultant vector field in the operation range.
Finally, it can be remarked that the MIMO SM controllers setups developed for the FC/SC turns this subsystem into a versatile module, with enough flexibility to be used in different hybrid topologies. For instance, those that incorporates photovoltaic panels, lithium batteries or flow batteries, to name a few.