- freely available
- re-usable

*Energies*
**2014**,
*7*(2),
591-606;
doi:10.3390/en7020591

## Abstract

**:**This paper presents a nonlinear control strategy utilizing the linearization and input-output decoupling approach for a nonlinear dynamic model of proton exchange membrane fuel cells (PEMFCs). The multiple-input single-output (MISO) nonlinear model of the PEMFC is derived first. The dynamic model is then transformed into a multiple-input multiple-output (MIMO) square system by adding additional states and outputs so that the linearization and input-output decoupling approach can be directly applied. A PI tracking control is also introduced to the state feedback control law in order to reduce the steady-state errors due to parameter uncertainty. This paper also proposes an adaptive genetic algorithm (AGA) for the multi-objective optimization design of the tracking controller. The comprehensive results of simulation demonstrate that the PEMFC with nonlinear control has better transient and steady-state performance compared to conventional linear techniques.

## 1. Introduction

Nowadays, the popular renewable energy sources include wind power, solar power generation and fuel cells. However, wind power and solar power are usually affected by external environmental factors, which cause the instability of the power generator output. In contrast to wind and solar power, fuel cells generate electricity stably and are less susceptible to external environment factors [1,2]. The fuel cell is similar to a traditional battery transforming the chemical energy of an active substance into electrical energy. It is not a rechargeable battery, that it has to recharge to continuously function, but rather by adding a fuel and oxidizer it produces an electrochemical reaction that directly transforms chemical into electrical energy. Therefore, it has many desirable features such as a high power conversion efficiency (40%–60%), low noise (no operating machinery), low pollution (the byproduct is water), extensive choice of feeds (hydrogen, methanol, natural gas, etc.), and multipurpose applications (electric vehicles, power plants, etc.) [3–5].

A PEMFC is a nonlinear and strongly coupled dynamic system. As the driven load changes, the output current changes and the electrochemical reaction is simultaneously accelerated. If the inlet flow rate of oxygen in the cathode is too low, the output power of PEMFC system would be decreased because of a lack of oxygen, which is known as starvation. In order to generate a reliable and efficient power response and prevent detrimental degradation of the stack voltage, it is very important to design an effective control strategy to achieve optimal oxygen and hydrogen inlet flow rates control.

Many control strategies been adopted nowadays for controlling PEMFC systems. Golbert [6] used predictive control to satisfy the power needs based on fuel cell model linearization. According to the experimental data, Almeda [7] proposed an artificial neural network control method to control fuel cell output voltage and optimize the system parameters. Schumacher [8] proposed a method for PEMFC water management using fuzzy control. Pukrushpan [9,10] used feed-forward and feedback strategies to control the flow rate of the compressor in the air supply system of a PEMFC. However, the existing control approaches were based on linear models which were linearized at a specific operating point. When they encounter a large range of disturbances such linear control approaches have difficulties in achieving satisfactory performance, therefore, an accurate nonlinear dynamic model for PEMFC and an advanced controller design approach considering the nonlinearity and uncertainty are urgently needed.

State feedback linearization and input-output decoupling for nonlinear dynamic models have been widely used to enhance transient performance [11–13]. The approach of using feedback linearization to obtain a linear model is valid for a broader operating range, and under certain circumstances this linearization is even valid for the whole operating range. Moreover, the input-output decoupling technique is utilized such that each of the outputs is independently controlled by one and only one of the newly defined inputs. In this paper, a MIMO dynamic nonlinear model of a PEMFC that is appropriate for developing a nonlinear controller based on the linearization and input-output decoupling approach is presented. The state feedback exact linearization [12,13] is applied to design the control law, based directly on the nonlinear dynamic PEMFC model. The control law obtained from the state feedback exact linearization is expected to enhance the transient performance in the presence of large disturbances.

## 2. PEMFC Dynamic Model

The working process of a PEMFC is accompanied with liquid/vapor/gas mixed flow transportation, heat conduction and electrochemical reactions. In order to simplify the analysis, several assumptions are made as listed below:

- (1)
The governing equation is the Nernst equation.

- (2)
The entire PEMFC is at the same operating temperature.

- (3)
The entire gas is the ideal gas at a relative humidity of 100%.

- (4)
The electrolyte membrane is of a high proton conductivity.

- (5)
The gases are completely pure hydrogen and oxygen.

The nonlinear dynamic model developed in this paper is based on the FC models presented in [14–17].

#### 2.1. Output Voltage Model

The output voltage of a single fuel cell, according to the Nernst equation, is formulated as:

In the above equation E_{Nernst} denotes the thermodynamic potential, that is the reversible voltage of the cell, represented by:

_{0}the universal gas constant (8.315 J/mol K), P

_{H2}and P

_{O2}are the partial pressures of hydrogen and oxygen respectively, T and T

_{0}are the cell's operating temperature and reference temperature respectively.

V_{act} represents the activation voltage drop, which is the polarization arising from the cathode and anode, given as:

_{j}the semi-empirical coefficients, defined as:

According to Henry's law, the concentrations of both the hydrogen and oxygen on the catalyst surfaces of anode and cathode are given as:

V_{ohmic} represents the voltage drop across (R_{M}, R_{C}), that is, the equivalent resistance of the proton exchange membrane and an external circuit respectively, expressed as:

It is not an easy task to estimate in advance the value of R_{C} over the range of PEMFC working temperatures, so it is treated as a constant in most cases. V_{con} represents the concentration polarization voltage drop caused by mass transfer of reactant gas, which can be used to indicate the fuel cell voltage loss resulted from the high-current operating, written as:

^{2}) the cell current density, J

_{max}is the maximum current density ranging between 500 and 1500 mA/cm

^{2}.

Substituting Equations (2) to (11) into Equation (1) gives:

#### 2.2. Pressure on the Anode and Cathode Model

Inasmuch as the reformer outputs the fuel rate, rather than the gas pressure required in the simulation model, there is a need to convert this flow rate into the gas pressure. As put forward in [18], the amounts of gases consumed in the cathode/anode depend on the fuel supply, input flow rate, the cell output current and the electrode volumes. Given the input and output flow rates, the anode and cathode gas pressures are derived respectively as:

_{a}and V

_{c}the anode and cathode volumes respectively, ρ the mole density, U the fuel rate and A the flow area. The amounts of hydrogen and oxygen consumed in the cathode/anode are subject to the fuel input/output flow rates and the cell current.

By using of the ideal gas law, Equations (13) and (14) are rewritten as:

#### 2.3. MIMO Nonlinear Dynamic Modeling of a PEMFC

Firstly, consider the following MIMO affined nonlinear system:

**x**is a n-dimensional state vector,

**u**is a m-dimensional input or control vector, and

**y**is a p-dimensional output vector. Equations (12), (15), and (16) imply the following PEMFC nonlinear dynamic system model:

Since the number of outputs is less than that of inputs in the above nonlinear model, the decoupling matrix in the feedback linearization is not a square matrix, i.e., MIMO feedback linearization cannot be applied directly. The problem of a nonsquare matrix can be solved by utilizing an extended system [12,13], an approach that introduces extra states and outputs such that the nonsquare matrix is converted into a square one.

The addition of two extra states x_{3} and x_{4} and two extra outputs y_{2} and y_{3} converts the MISO nonlinear system, Equation (18), into a MIMO system with a non-singular decoupling matrix. Such system is extended as:

## 3. Input/Output State Feedback Linearization

The objective of state feedback exact linearization is to create a linear differential relation between the output y and a newly defined input v. An important property of a nonlinear system is its relative degree. The output needs to be differentiated for r times until it is directly related to the input u. The number r is called the relative degree of the system.

The approach in obtaining the exact linearization of the MIMO systems is to differentiate the output y_{j} of Equation (21) until the input reveals [12,13]. By differentiating Equation (21), we have:

_{f}h

_{j}represents Lie derivatives of the smooth scalar function of h

_{j}(x) with respect to f(x), which is defined as:

Similarly, in the case of another vector field g_{i}(x):

Assuming that r_{j} is the smallest integer for which at least one of the inputs appears in
${y}_{j}^{({r}_{j})}$, then:

A substitution of Equation (21) into Equation (27) gives:

In case E(x) is found non-singular, then a feedback control law of a linear state is derived as:

For convenience, assuming that:

The inverse of E(x) is given as:

In the end, a substitution of Equation (31) back into Equation (29) gives a control law:

Substituting Equation (32) into Equation (26) gives the relation between the output y and the newly defined input v, expressed as:

This is a linear and input-output decoupling system. Comparing Equation (33) with Equation (32), it is found that newly defined inputs v_{2} and v_{3} are the same as u_{2} and u_{3}. Accordingly, v_{1} is the only quantity which can be used for tracking control. In this form of the nonlinear control, a tracking error may exist due to parameter uncertainty. To obtain a more robust control, a PI controller is applied as in [19]:

_{1}= y

_{1}− y

_{1}

_{ref}. The parameters of the PI tracking controller are determined by the Ziegler-Nichols rule. The parameters obtained are K

_{up}= 3.02 and K

_{ui}= 1.97. Finally, substituting Equations (28) and (31) into Equation (32), the control law for u

_{1}is represented as:

As derived in the preceding section, an original nonlinear system is converted into a linear and input-output decoupling system. Besides, the control performance can be improved by the addition of a PI controller into a feedback control law u_{1}. The control law u_{1} mostly adjusts the inlet flow rate of hydrogen from the reformer, while the oxygen flow rate is dependent on the flow ratio τ_{H–O} between hydrogen and oxygen [20]. Figure 1 is a block diagram of the proposed PEMFC nonlinear control with linearization and input-output decoupling. Appropriate amounts of the hydrogen and oxygen at the cell inlets are supplied to a PEMFC according to the load changes.

## 4. Optimal PI Tracking Control Design Using an Adaptive Genetic Algorithm

Proven more efficient than conventional algorithms, genetic algorithms were developed as a random search approach to locate the global optimum. However, in consideration of the distinct nature of search problems, a simple GA is not expected to find the global optimum as intended [21]. In an effort to handle a local convergence problem, an adaptive genetic algorithm (AGA), a prior work described in [22], is adopted to design the parameters of PI tracking control. The brief block diagram of AGA used to the search of the optimal parameters for the PI tracking control of the input-output decoupling linearization controller is illustrated in Figure 2.

## 5. Simulation Results and Discussion

To demonstrate the performance of the proposed nonlinear control law, a Matlab/Simulink is used to build the PEMFC system dynamic model with nonlinear controller. In this work, the simulation parameters adopted are those of a single Ballard Mark V PEMFC. Hydrogen is employed as the fuel, oxygen is the oxidant, and a Nafion 117 PEM (Walther Grot of DuPont, Wilmington, DE, USA) is employed as well. All the cell parameters are tabulated in Table 1 [14].

To compare the efficiency of the proposed nonlinear controller, the conventional PID controller is also implemented for the PEMFC system. All the PID control parameters had been determined ahead of the simulation. Employing the Ziegler-Nichols rule to tune such parameters, as the first step, setting K_{i} = K_{d} = 0, increase K_{p} until an oscillation is produced. Then as the second step, the value of K_{p} is now multiplied by 0.6 to get the final K_{p}. In the end, all the final parameters are found as K_{p} = 3, K_{i} = 1.2 and K_{d} = 0.1.

The load current is changed for testing the transient behaviors of PEMFC with nonlinear control. Figure 3 shows the variation of load current step changes from 20 to 30, 15, 25, 20 A at times t = 20, 40, 60, 80 s, respectively. The dynamic responses of the PEMFC as the load current changed in step are shown in Figures 4, 5, 6, 7, 8, 9 and 10. Figure 4 shows the variation of output voltage. It is obvious that the output voltage under nonlinear control remains in a well transient and steady-state response under the disturbances caused by the load changes. A well regulated output voltage of 24 V is seen from the simulations. Figure 5 gives the output voltage error. It is noteworthy that, the system, regulating output voltage to the target value of 24 V, exhibits a maximum error of 1.9 V by nonlinear control, which is much lower than that, i.e., 2.5 V, achieved by PID. This improvement is indeed a clear advantage of input-output feedback linearization based nonlinear control over PID control. Plotted in Figure 6 is the output power variation, which is proportional to the load current with the output voltage regulated at 24 V. From this figure, one can also observe that the FC with nonlinear control has very quick responses to the disturbances caused by the load changes.

Figures 7 and 8 give the dynamic responses of the hydrogen and the oxygen flow rates under the load current variations. The hydrogen flow rate shown in Figure 7 is directly from the reformer which is adjusted by the load changes. The oxygen flow rate shown in Figure 8 has the same response as that in Figure 7, only with smaller magnitude because the oxygen flow rate is simply determined by the hydrogen–oxygen flow ratio.

Figures 9 and 10 give the dynamic responses of the hydrogen and the oxygen pressures under the load current variations. In response to an abrupt rise in the load current from 20 A to 30 A at the instant t = 20 s on account of a sudden drop in ohmic voltage drop, the nonlinear controller speeds up the gas flow in the fuel reformer, such that the reactive gas pressures at the inlets are elevated. Consequently, such ohmic voltage drop is compensated, following which the cell stack output voltage is regulated to the target value. This accounts for the voltage drop at the instant t = 20 s. In contrast, in response to a drop in the load current at the instant t = 40 s, the cell output voltage is regulated at 24 V as before through feedback by reducing the flow rate in the fuel reformer and accordingly the pressures of the cathode/anode inlet gases respectively.

Even though a superior control performance is seen, the PI tracking controller parameters, determined by the Ziegler-Nichols rule, are not necessarily the optimal ones. For this sake, the following is devoted to the search of the optimal control parameters and the performance comparison. Tabulated in Table 2 are searching range, population size, generation number, bit number, crossover rate and Mutate rate when performing a genetic algorithm to seek the optimal parameters.

Consequently, the optimal parameters obtained are K_{up} = 99.47 and K_{ui} = 21.11.

Plotted in Figure 11 is the output voltage comparison between an optimized input-output feedback linearization controller and a non-optimized one. Demonstrated in Figure 12 is an enlarged view of Figure 11 between t = 39.5 and 42 s, from which a shorter transient response time of 0.2 s is seen relative to the non-optimized case, before the system converges to the target value of 24 V. The results indicate the feasibility of a genetic algorithm to optimize the PEMFC control system.

## 6. Conclusions

A nonlinear control strategy utilizing the linearization and input-output decoupling approach is proposed in this paper for nonlinear control of PEMFCs. A MIMO dynamic nonlinear model of a PEMFC appropriate for developing the nonlinear controller is also presented. By adding a tracking controller to the state feedback control law, which is optimally designed by AGA, the steady-state errors due to parameter uncertainty can be effectively reduced. The comprehensive simulation results demonstrate that the PEMFC with nonlinear control has better transient and steady-state performance compared to conventional linear techniques. The proposed nonlinear control strategy and dynamic nonlinear model have the potential to become valuable tools for modeling and control of PEMFC systems.

## Acknowledgments

The research was supported by the National Science Council of the Republic of China, under Grant No. NSC 101-ET-E-167-003-ET.

## Conflicts of Interest

The authors declare no conflict of interest.

## References

- Yoshida, A.; Amano, Y.; Murata, N.; Ito, K.; Hasizume, T. A comparison of optimal operation of a residential fuel cell co-generation system using clustered demand patterns based on Kullback-Leibler divergence. Energies
**2013**, 6, 374–399. [Google Scholar] - Zhang, N.; Gu, W.; Yu, H.J.; Liu, W. Application of coordinated SOFC and SMES robust control for stabilizing tie-line power. Energies
**2013**, 6, 1902–1917. [Google Scholar] - Zhang, H.C.; Lin, G.X.; Chen, J.C. The performance analysis and multi-objective optimization of a typical alkaline fuel cell. Energy
**2011**, 36, 4327–4332. [Google Scholar] - Leo, T.J.; Raso, M.A.; Navarro, E.; Mora, E. Long term performance study of a direct methanol fuel cell fed with alcohol blends. Energies
**2013**, 6, 282–293. [Google Scholar] - Liu, W.S.; Chen, J.F.; Liang, T.J.; Lin, R.L. Multicascaded sources for a high-efficiency fuel-cell hybrid power system in high-voltage application. IEEE Trans. Power Electron.
**2011**, 26, 931–942. [Google Scholar] - Ugartemendia, J.; Ostolaza, J.X.; Zubia, I. Operating point optimization of a hydrogen fueled hybrid solid oxide fuel cell-steam turbine (SOFC-ST) plant. Energies
**2013**, 6, 5046–5068. [Google Scholar] - Almeida, P.E.M.; Simoes, M.G. Neural optimal control of PEM fuel cells with parametric CMAC networks. IEEE Trans. Ind. Appl.
**2005**, 41, 237–245. [Google Scholar] - Schumacher, J.O.; Gemmar, P.; Denne, M. Control of miniature proton exchange membrane fuel cells based on fuzzy logic. J. Power Sources
**2004**, 129, 143–151. [Google Scholar] - Pukrushpan, J.T.; Stefanopoulou, A.G.; Peng, H. Control of fuel cell breathing. IEEE Control Syst. Mag.
**2004**, 24, 30–46. [Google Scholar] - Purkrushpan, J.T.; Peng, H. Control of Fuel Cell Power Systems: Principle, Modeling, Analysis and Feedback Design, 1st ed.; Springer-Verlag: Berlin, Germany, 2004; pp. 71–86. [Google Scholar]
- Nijmeijer, H.; van der Schaft, A.J. Nonlinear Dynamical Control Systems; Springer-Verlag: Berlin, Germany, 1990; pp. 172–198. [Google Scholar]
- Slotine, J.J.E.; Li, W. Applied Nonlinear Control; Prentice-Hall: New York, NY, USA, 1991; pp. 112–137. [Google Scholar]
- Te Braake, H.A.B.; van Can, J.; Scherpen, J.M.A.; Verbruggen, H.B. Control of nonlinear chemical processes using neural models and feedback linearization. Comput. Chem. Eng.
**1998**, 22, 1113–1127. [Google Scholar] - Corrêa, J.M.; Farret, F.A.; Canha, L.N.; Simões, M.G. An electrochemical based fuel cell model suitable for electrical engineering automation approach. IEEE Trans. Ind. Electron.
**2004**, 51, 1103–1112. [Google Scholar] - Pathapati, P.R.; Xue, X.; Tang, J. A new dynamic model for predicting transient phenomena in a PEM fuel cell system. Renew. Energy
**2005**, 30, 1–22. [Google Scholar] - Maher, A.R. Modelling of proton exchange membrane fuel cell performance based on semi-empirical equations. Renew. Energy
**2005**, 30, 1587–1599. [Google Scholar] - Chen, H.C. Mathematic modeling and characteristics analysis of a proton exchange membrane fuel cell. J. Nanoelectron. Optoelectron.
**2012**, 7, 132–137. [Google Scholar] - Khan, M.J.; Iqbal, M.T. Dynamic modeling and simulation of a small wind-fuel cell hybrid energy system. Renew. Energy
**2005**, 30, 421–439. [Google Scholar] - El-Sharkh, M.Y.; Rahman, A.; Alam, M.S.; Shakla, A.A.; Byrne, P.C.; Thomas, T. Analysis of active and reactive power control of a standalone PEM fuel cell power plant. IEEE Trans. Power Syst.
**2004**, 19, 2022–2028. [Google Scholar] - Sharifi Asl, S.M.; Rowshanzamir, S.; Eikani, M.H. Modelling and simulation of the steady-state and dynamic behaviour of a PEM fuel cell. Energy
**2010**, 35, 1633–1646. [Google Scholar] - Zbigniew, M. Genetic Algorithms + Data Structures = Evolution Programs, 3rd Revised and Extended ed.; Springer: New York, NY, USA, 2012; pp. 95–113. [Google Scholar]
- Chen, H.C. Optimum capacity determination of stand-alone hybrid generation system considering cost and reliability. Appl. Energy
**2013**, 103, 155–164. [Google Scholar]

**Figure 1.**Block diagram of the proposed PEMFC nonlinear control with linearization and input-output decoupling.

**Figure 11.**An output voltage comparison between before and after optimized feedback linearization control.

Symbol | Parameters | Symbol | Parameters |
---|---|---|---|

T | 343.15 K | ξ_{1} | −0.948 |

A | 50.6 cm^{2} | ξ_{2} | (286 + 20 ln A + 4.3 ln c_{H2}) × 10^{−5} |

λ | 178 μm | ξ_{3} | 7.6 × 10^{−5} |

P_{H2} | 1 atm | ξ_{4} | −1.93 × 10^{−4} |

P_{O2} | 1 atm | Ψ | 23 |

B | 0.016 V | J_{max} | 150 mA/cm^{2} |

R_{C} | 0.0003 Ω | J_{n} | 1.2 mA/cm^{2} |

Parameter | Value | |
---|---|---|

Searching Range | K_{p} | 0∼100 |

K_{i} | 0∼100 | |

Population Size | 50 | |

Generation Number | 20 | |

Bit Number | 30 | |

Crossover Rate | 0.9 | |

Mutate Rate | 0.03 |

© 2014 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license ( http://creativecommons.org/licenses/by/3.0/).