Energy Conversion and Management 46 (2005) 1757–1766 www.elsevier.com/locate/enconman
Cascade fuzzy control for gas engine driven heat pump Shuze Li
a,*
, Wugao Zhang a, Rongrong Zhang a, Dexu Lv b, Zhen Huang
a
a
b
Institute of Internal Combustion Engines, School of Mechanical Engineering, Shanghai Jiaotong University, 200030 Shanghai, PR China Wonders Information Co. Ltd., 4F Building 18, 481 Gui Ping Road, 200233 Shanghai, PR China Received 2 May 2004; accepted 19 September 2004 Available online 5 November 2004
Abstract In addition to absorption chillers, todayÕs gas cooling technology includes gas engine driven heat pump systems (GEHP) in a range of capacities and temperature capacities suitable for most commercial air conditioning and refrigeration applications. Much is expected from GEHPs as a product that would help satisfy the air conditioning system demand from medium and small sized buildings, restrict electric power demand peaks in summer and save energy in general. This article describes a kind of control strategy for a GEHP, a cascade fuzzy control. GEHPs have large and varying time constants and their dynamic modeling cannot be easily achieved. A cascade control strategy is effective for systems that have large time constants and disturbances, and a fuzzy control strategy is fit for a system that lacks an accurate model. This cascade fuzzy control structure brings together the best merits of fuzzy control and cascade control structures. The performance of the cascade fuzzy control is compared to that of a cascade PI (proportional and integral) control strategy, and it is shown by example that the cascade fuzzy control strategy gives a better performance, reduced reaction time and smaller overshoot temperature. Ó 2004 Elsevier Ltd. All rights reserved. Keywords: Gas engine driven heat pump; Cascade fuzzy control; PI control
*
Corresponding author. Tel.: +86 21 6407 4085; fax: +86 21 6407 8095. E-mail addresses:
[email protected],
[email protected] (S. Li).
0196-8904/$ - see front matter Ó 2004 Elsevier Ltd. All rights reserved. doi:10.1016/j.enconman.2004.09.003
1758
S. Li et al. / Energy Conversion and Management 46 (2005) 1757–1766
1. Introduction In many instances, a gas engine driven heat pump (GEHP) is a more attractive climate control system than the conventional air conditioner [1,2], e.g.: (1) Variable speed operation: Typically, the GEHP can cycle at minimum speed and modulate between a minimum and maximum speed to match the required load. The minimum and maximum speeds are decided by the performance of a different engine and compressor. As a result, the part load efficiency of such a system will be high. Its seasonal operational cost and cycling losses will be lower than those of a single speed system with an on–off control system. (2) Engine heat recovery: The engineÕs heat efficiency is not very high (about 30–45% for gas engines now). The heat of fuel combustion is wasted through exhaust gases, cooling water and the engine block. However, the systemÕs efficiency will be increased by recovering the heat from the cooling water and the exhaust gases in the heating mode. (3) Natural gas fuel: The GEHP also differs from an electric heat pump (EHP) in the energy they use, primarily natural gas or propane instead of electricity. So, a GEHP is preferred in a region where electric costs are high and natural gas is readily available. The system blends two subsystems: the engine and the heat pump system. The time constants of the two subsystems are different (the engineÕs time constant is small and that of the heat pump systemÕs is large), and both frequently change according to the operating demands. In addition, there is lag time in the GEHP. So it is very difficult to decide upon the control strategy for the GEHP. Under some conditions, a predictive control algorithm is more effective than a feedback control (e.g., PID control) when large time constants and lag times are present [3]. However, a predictive control algorithm cannot be applied to the system directly because its dynamics are not predictable. In order to apply the predictive algorithm, some learning process is necessary to identify the modelÕs current parameters and estimate those of the future. The controller must calculate these quickly to meet the systemÕs real time requirements. If the predictive algorithm were introduced, it would spend much time in identifying the systemÕs dynamic model. The systemÕs adaptability to different conditions will lead to some problems. During the development of control theory, many new strategies have been put forward, e.g., fuzzy control, neural network control etc. Each of the strategies have their own characteristics and can be adapted to many kinds of systems. One merit of fuzzy control is that the systemÕs model can be unknown. So, it is very promising for the GEHP system. Based on the characteristics of the GEHP system, in this paper, we propose a cascade fuzzy control algorithm. It controls the return water temperature through an outer loop (first loop) and controls the engine speed through an inner loop (second loop). In the following sections, the GEHP system to be controlled will be explained first, then the fuzzy cascade control algorithm is proposed and, finally, the effectiveness of the proposed method is shown for different changes in demand.
2. The GEHP system A heat pump is used to transfer thermal energy from a low temperature reservoir to a high temperature field to cool or heat. The GEHP is a new type of heat pump in which the compressor (the core part) is driven by a gas engine.
S. Li et al. / Energy Conversion and Management 46 (2005) 1757–1766 8 7 9
6
10 11
1 12
2
3 4
heating cycle cooling cycle
5
13
return water supply water
1759
1.gas engine 2.open type compressor 3. four-way valve 4.plate heat exchanger 5. supply water pump 6.expansion valve 7. fin-tube heat exchanger 8.engine waste heat radiation 9.gas to water heat exchanger 10.Three-way valve of engine cooling water 11. water to water heat exchanger 12.engine cooling water pump 13. three-way valve of supply water
Fig. 1. Schematic diagram of GHEP.
As shown in Fig. 1, the GEHP system consists of the gas engine, an open type compressor, two pumps, valves, expansion valve, heat recovery heat exchangers and gas supply equipment with some pipes and wires connecting them. Some sensors are used to measure the mediumsÕ (including exhaust gas, water, liquor condensate) temperature, pressure and flux in the system. The controller was used to analyze these signals to control the operation of the system. It depended on the four way valve to choose the cooling cycle or heating cycle. The heat exchanger was used to utilize the exhaust gas heat energy and the circulation water heat energy. The return water temperature of the unit is controlled by adjusting the opening angle of the engineÕs throttle. In the GEHP system, if the thermal load of the air conditioning system changes, the return water temperature will also change. Consequently, the supply water temperature of the system will be affected. The aim of the control system is to adjust the return water temperature to a constant value and thus to ensure the capacity of the system to match the demand of the air conditioning load. The superheat degree of the refrigerant and the pressure of the refrigerant at the discharge point, as controlled by the electric expansion valve, were not considered in this paper.
3. Control design The systemÕs operation depends on the controller, which adjusts the executor (e.g., motors and valves) to meet the demands. It affects the performance of the whole system. The control strategy is the most important part of the controller. There are many strategies including traditional control, modern control, intelligent control etc. They are designed to fit different types of systems. In this section, a strategy to control the GEHP system is described. The proposed cascade fuzzy control strategy is based on a cascade control approach with a fuzzy feedback controller. 3.1. Control strategy Since the GEHP system has many parameters that are, in general, uncertain or unknown, it is difficult to determine a required control strategy from a mathematical model. Some control strategies based on a model, such as internal module control, model reference adaptive control, predictive control etc., cannot be used for this type of system. We will follow a feedback control
1760
S. Li et al. / Energy Conversion and Management 46 (2005) 1757–1766
approach to design all loops of the cascade control scheme. Successful applications of cascade control include control of several chemical [4] and mechanical processes. A cascade control structure has two feedback controllers with the output of the first controller changing the set point of the second controller [5]. In the cascade control system, the first control loop is a constant value control system, but the second control loop is a following control system. The output (gas engine speed for this system) of the first loop varies according the load (temperature variance for this system). This makes the set value of the second controller change to follow the load. In this way, the cascade control system has the capability of autoadaptation and is, thus, especially recommended for the GEHP system. 3.2. A control scheme for the GEHP During the system operation, the speed of the engine needs to be adjusted under some condition, e.g., a disturbance of the thermal load. When the thermal load increases, the engine speed should be increased to match the load, but when the thermal load decreases, the speed should decrease to save energy. However, the thermal capacity of the air conditioning system is large, and so, the return water temperature changes very slowly. Since the time constant from temperature to speed is large, it is hard for the controller to control the speed of engine in time. When the controller receives the temperature alteration through the sensors, it is already too late. That is to say, the dynamic error will be large. In order to avoid this, cascade control was introduced in the control system. The control system block diagram is shown in Fig. 2. 3.2.1. Secondary control loop design In the cascade control system, the secondary controller can overcome the disturbance in the second loop. So, the main disturbance, whose frequency and amplitude are both large, should be included in this loop. For the GEHP system, the engine speed changes rapidly following a variation in operating condition. So, the engine is disturbed easily in a GEHP system. When the speed of the engine rises, the supply water temperature will rise after a lag time. At that time, the controller would not adjust the throttle if the first control loop did not exist because the temperature has not yet changed. So, the engine speed should be the control input to the secondary loop. If that loop existed, the throttle would be adjusted to keep the speed of the engine unchanged or changed very little. The temperature change of the supply water would be very small. Furthermore, the first
Set point
+
-
First controller
+
-
Secondary controller
Throttle
Disturbance 1 Disturbance 2 Temperature of Heat return water Engine pump Engine speed
Second sensor Secondary loop First sensor First loop
Fig. 2. Schematic diagram of cascade control system.
S. Li et al. / Energy Conversion and Management 46 (2005) 1757–1766
1761
controller can aim to overcome this error. The whole effect should be better than one loop if these disturbances had been included in the second loop. Since the engine has fast dynamics, in the second loop, we consider a simple proportional and integral action to control throttle angle with current speed as the control input. 3.2.2. First loop design Fuzzy set theory was introduced by Zadeh [6] in 1965, and the first fuzzy logic control algorithm was implemented by Mamdani [7] on a steam engine in 1974. In the following years, fuzzy logic control has been widely used in many industrial applications successfully and has demonstrated significant achievements [8]. Fuzzy control is fit for systems whose accurate model cannot be established. Fuzzy control can utilize any available information, including that provided by experts. This information is very important in practice. So, fuzzy control was chosen as the strategy of the first control loop. Usually the inputs of fuzzy control are the control objectÕs value and its change in speed. The output is the control variableÕs increment. For a GEHP system, the inputs are the return water temperature and its change in speed. The output is the engine speed increment for incremental control. Altogether, cascade fuzzy control has the merits of both fuzzy control and cascade control. The secondary loop controls the engine speed and suppresses the disturbances to the engine. The first loop controls the temperature as adapted to the thermal load of the whole system. The secondary controller uses a simple PI control logic. The first controller uses fuzzy control logic. In the following, the detailed design parameters are described.
4. Control system parameter design Generally, the time constant of the secondary control loop is small. This will help to conquer the inertial lag time of the whole system. The working frequency oscillation will dampen, and the period of the system response will shorten, thus improving the control quality of the whole system. In order to achieve the best adjustment process and improve the dynamic and static characteristics of the system, the parameters of the controller must be carefully chosen. The step-by-step method of approach was adopted to design the GEHP system. The following describes the detailed steps: (1) Cut down the first loop, close the secondary loop and design the parameters of the secondary controller according to the design method for a single loop system. (2) Close the first and secondary loop, keep the parameters of the second controller obtained from the previous step and design the parameters of the first controller according to the design method for a single loop system. (3) Close the first and secondary loop, keep the parameters of the first controller gotten from the previous step and design the parameters of the secondary controller again. (4) If the target was satisfied, the selecting procedure is completed. Otherwise, go to step 2 to begin the next design cycle.
1762
S. Li et al. / Energy Conversion and Management 46 (2005) 1757–1766
Table 1 The whole control table E
EC
6 5 4 3 2 1 0 1 2 3 4 5 6
6
5
4
3
2
1
0
1
2
3
4
5
6
Vs 7 6 7 7 4 4 4 2 1 0 0 0 0
6 6 6 6 4 4 4 2 2 0 0 0 0
7 6 7 6 4 4 4 2 1 0 0 0 0
6 6 6 6 5 5 5 2 2 0 2 2 2
7 6 7 6 4 4 1 0 0 3 4 4 4
7 6 7 6 4 4 1 0 3 3 4 4 4
7 6 7 6 4 1 0 1 4 6 7 6 7
4 4 4 3 1 0 1 4 4 6 7 6 7
4 6 4 3 0 0 1 4 4 6 6 6 7
2 2 2 0 0 0 1 3 3 6 7 6 6
0 0 0 1 3 3 4 4 4 6 7 6 7
0 0 0 1 2 2 4 4 4 6 6 6 6
0 0 0 1 1 1 4 4 4 6 7 6 7
It is easy to decide the proportional and integral coefficient of the secondary controller, but it is difficult to design the parameters of the fuzzy control of the first controller because the input of the fuzzy controller must be a fuzzy quantity and its output is also a fuzzy quantity. During the fuzzy inference process, there are five steps in succession, which are fuzzification of the input variables, application of the fuzzy operator (AND or OR) in the antecedent, implication from the antecedent to the consequent, aggregation of the consequents across the rules and defuzzification. For a real time control system, it spends much time to complete the five steps described above. The control systemÕs reaction will be late if the controllerÕs computing speed is not fast enough. In order to reduce the number of calculations, a control table is introduced. That is to say, a table of input variables, output variable and control rules deduces the whole control table (Table 1) off line. In practice, what is needed is only to find the Vs (set speedÕs variation here) in the whole control table according to E (the error of return temperature and set temperature) and EC (dE/dt).
5. The consequent of test and discussion The test object is a natural gas engine heat pump (Fig. 3). The natural gas engine was rebuilt from a gasoline engine. The compressor is an open type compressor. The experiment is to test the response when the set temperature steps suddenly from 44 °C to 45 °C and the speed of the engine increases 100 rpm after stabilization. Figs. 4–6 1 show the temperature curves during the control process using PI and fuzzy control in the first control loop. 1
The symbols in the figures are: T—the temperature of return water; Kp—the coefficient of proportion; Ki—the coefficient of integral; Tse—the control period of second control loop; Tfst—the control period of first control loop; K1—ratio from DT to E; K2—ratio from DT/Dt to EC; K3—ratio from Vs to DV; E, EC—the input of fuzzy control; Vs—the output of fuzzy control.
S. Li et al. / Energy Conversion and Management 46 (2005) 1757–1766
1763
Fig. 3. Photo of the test bench.
For PI and fuzzy control, several parameters have been chosen to compare their effects. (1) Influence of control period: No matter what method (fuzzy or PI control) was adopted in the main control loop, when the control period of the first control increased, the response velocity of the control variant increased, but the over shoot also increased. However, when fuzzy control was introduced using the same control period, the stabilization time shortened obviously. (2) Influence of Kp, Ki in PI control: When the first loop is using PI incremental control, increasing Kp increases the overshoot, and the stabilization time shortens (Fig. 4, curves 1 and 3). The Ki variation influences the control quality only a little. (3) Influence of fuzzy table look-up method: There is a static error in curves 1, 2 and 3 in Fig. 5 because the look-up method uses the nearest input value, making the output discontinuous. Therefore, the engine speed cannot be precisely adjusted to fit the thermal load. Using an interpolation method (Fig. 5, curve 4), the speed can be adjusted continuously and the static error can be reduced or eliminated, but the computing time will increase. In that case, the controllerÕs computing capability must be improved. (4) Influence of different ranges of DT, DT/Dt and DV: In the whole control table, the ranges of E, EC and Vs are fixed, so a change of K1, K2 and K3 means a change of the range of DT, DT/Dt and DV. Increasing K1, K2 will decrease the range of DT, DT/Dt, and the response speed will be fast (Fig. 6, curves 1, 3 and 4). Increasing K3 will increase the range of DV and the response speed will be fast (Fig. 6, curves 1 and 2). The effect of K3 is biggest effect of these, and the effect of K1 is also big. (5) The suppressive effect to disturbance in second loop: From Figs. 4–6, it is clear that the cascade control strategy can suppress the disturbance in the second loop. The adjusting time is shorter if the fuzzy method is applied in the first loop rather than the PI method.
1764
S. Li et al. / Energy Conversion and Management 46 (2005) 1757–1766
Fig. 4. Step responses using PI control in the first control loop.
Fig. 5. Step responses using fuzzy control in the first control loop with different control period and table looking-up method.
Thus, all coefficients in the control system affect the performance in different modes. So, they should be chosen according to the demands of the special system and the operating conditions.
S. Li et al. / Energy Conversion and Management 46 (2005) 1757–1766
1765
Fig. 6. Step responses using fuzzy control in the first control loop with different K1, K2, K3.
Comparing the two control systems, the fuzzy control system provides good behaviors (fast response and little overshoot) (Figs. 4 and 5) for the GEHP system.
6. Conclusions A cascade fuzzy control strategy has been introduced for the GEHP system in this paper. The structure brings together the best merits of the fuzzy control and the cascade control structure. The performance of the cascade fuzzy control is compared to the cascade PI control strategy, and it is shown by example that the cascade fuzzy control gives a better performance. The cascade fuzzy control system can be used in process control problems when the temperature, flow and pressure must be controlled within components that have widely varying time constants. The design and parameter selection method of such a system to control a sudden temperature change has been described in detail in this paper. The result was a stable control system with reduced reaction time and little overshoot in temperature.
Acknowledgement The authors acknowledge the development foundation support of the Science & Technology Commission, Shanghai Municipal Government (023012006, 021607002).
1766
S. Li et al. / Energy Conversion and Management 46 (2005) 1757–1766
References [1] Nowakowski GA, Inada M, Dearing MP. Development and field testing of a high-efficiency engine-driven gas heat pump for light commercial applications. ASHRAE Transactions, AN-92-10-4. p. 994–1000. [2] Nowakowski Gary A. An introduction and status update on unitary engine-driven heat pumps. ASHRAE J 1996:42–7. [3] Hasegawa Y, Nakano T, Fukuda T, Vachkov G, et al. Learning predictive control for gas heat pump. Conference of the IEEE Volume: 2, 22–28 Oct. 2000. p. 1062–7. [4] Russo LR, Bequette BW. State space versus input–output representations for cascade control of unstable systems. Ind Eng Chem Res 1997;36:2271–8. [5] Bequette BW. Nonlinear control of chemical processes: a review. Ind Eng Chem Res 1991;30:1391–413. [6] Zadeh LA. Fuzzy sets. Inform Control 1965;8:338–53. [7] Mamdani EH. Application of fuzzy algorithms for control of simple dynamic plant. IEEE Proc 1974;121(12): 1585–8. [8] Yesßil E, Gu¨zelkaya M, Eksin I. Self tuning fuzzy PID type load and frequency controller. Energy Convers Manage 2004;45:377–90.