Abstract
In order to increase the driving range of battery electric vehicles, while maintaining a high level of thermal comfort inside the passenger cabin, it is necessary to design an energy management system which optimally synthesizes multiple control actions of heating, ventilation and airconditioning (HVAC) system. To gain an insight into optimal control actions and set a control benchmark, the paper first proposes an algorithm of dynamic programming (DP)based optimisation of HVAC control variables, which minimises the conflicting criteria of passenger thermal comfort and HVAC efficiency. Next, a hierarchical structure of thermal comfort control system is proposed, which consists of optimised lowlevel feedback controllers, optimisationbased control allocation algorithm that sets references for the lowlevel controllers, and a superimposed cabin temperature controller that commands the cooling capacity to the allocation algorithm. Finally, the overall control system is verified by simulation for cooldown scenario, and the simulation results are compared with the DP benchmark. The results show that the control system behaviour can approach the DP benchmark if the superimposed controller bandwidth is tuned along with the allocation cost function weighting coefficients, where a fast controller tuning relates to better thermal comfort while a slow tuning results in improved efficiency.
1 Introduction
In recent years, electric vehicles have been increasingly adopted by public due to their superior energy efficiency and low or absent emissions. The presence of ample electric energy storage in hybrid and battery electric vehicles facilitates implementation of electricallypowered auxiliary drives for improved efficiency, flexibility and performance. This is of particular interest in automotive heating, ventilation and airconditioning (HVAC) systems, where the use of variablespeed drives, such as those of compressor and fans, improves the overall performance. Moreover, modern electric vehicles are usually equipped with redundant HVAC actuators and multiple energy flows (Zhang et al. 2018), particularly when considering implementation of efficient heat pump systems in addition to airconditioning (A/C) system (Drage et al. 2019). This all significantly extends the requirements on designing the HVAC energy management system.
The driving range of fully electric vehicles is heavily affected by heating and cooling loads. Zhang et al. (2015) report average reduction of driving range by up to 60% in cold weather and about 33% in extremely hot weather. Under these extreme weather conditions, the HVAC system can constitute up to 65% of secondary energy consumption, with the primary consumption coming from powertrain. Paffumi et al. (2019) investigated the influence of ambient temperature on driving range in laboratory conditions using WLTC driving cycle, and confirmed that at − 10 °C the range drops by 59% compared to the range obtained at + 23 °C. Thus, it is of great interest to achieve highest possible HVAC system efficiency, which would result in increased driving range, while maintaining high passenger thermal comfort. To fulfil these conflicting criteria, it is necessary to develop advanced control systems which optimally coordinate multiple actuators and energy storage units.
Setting a realistic and achievable benchmark is imperative from the perspective of complex control system design and verification. Such a benchmark can conveniently be obtained by offline control trajectory optimisation (Rao 2014). The main advantage of dynamic programming method (DP) is finding globally optimal solution for the general case of a nonlinear, discontinuous and multivariable system. However, the DP algorithm is rather computationally inefficient, and it can only be applied to systems with a low number of state and control variables. DP solutions have been used as control performance benchmarks in hybrid electric vehicles (Guzella and Sciaretta 2007) or extended range electric vehicles (Škugor et al. 2014). The aim is to find optimal response of control variables such as the engine or emotor torques/speeds for minimising the fuel consumption at the end of prescribed driving cycle, while satisfying different hardware constraints including the boundary condition on final battery stateofcharge (SoC). Guermi et al. (2014) apply similar approach to a fuel cellpowered series hybrid electric vehicle, while Sinoquet et al. (2011) use DP to optimise emotor/engine power split as a part of solving a powertrain component sizing optimisation problem. In the framework of HVAC systems, DP has been used in conventional vehicles’ A/C system optimisation (Zhang et al. 2016), where an A/C clutch command sequence is optimised to minimise fuel consumption for a given driving cycle. Similarly, Zhang and Canova (2016) apply DP for optimisation of energy management of A/C system that uses thermal energy storage in A/C system.
The cabin thermal comfort is usually controlled through cabin air temperature feedback control (Marshall et al. 2019). On the other hand, fuzzylogic control of cabin thermal comfort (Farzaneh and Tootoonchi 2008) relies on the feedback information of simplified predicted mean vote (PMV), as an index that more comprehensively characterises the thermal comfort. It is demonstrated therein that both thermal comfort and energy efficiency can be improved when using the PMV feedback in comparison with cabin air temperature control. Yan et al. (2018) propose a multiinput/singleoutput proportionalintegral (PI)like controller that accounts for engine efficiency and a PMVbased thermal comfort criterion. It is shown therein that the fuel consumption can be reduced compared to conventional control algorithms for the same level of thermal comfort. A more advanced, optimal control system is presented in (Amini et al. 2019), which uses a modelpredictive controller (MPC) for tracking the cabin air temperature reference by commanding the evaporator outlet air temperature and the blower fan air mass flow. However, MPC generally strongly relies on accurate prediction model and is computationally demanding because of applying online optimisation over the prediction horizon at each time step.
Once the control system structure is set up, the tuneable control parameters should be optimised for favourable performance. Genetic algorithmbased parameter optimisation is widely used in vehicle design, e.g. for vehicle suspension (Gobbi 2013) or automatic transmission control parameterisation (Ranogajec et al. 2019). HVAC control examples include (Zhang et al. 2017), where a multiobjective optimisation method is used for obtaining tradeoff between the fuel consumption and the cabin cooldown time, and (Cvok et al. 2020) where a control allocation map is optimised.
This paper proposes a DPbased control trajectory optimisation method for an electric vehicle HVAC system, as well as a hierarchical/cascade control strategy that can approach the DP results. The contributions of the paper are threefold. First, the DP algorithm is aimed at optimising both thermal comfort and efficiency, where a simplified firstorder cabin model and a static HVAC model are used to reduce the computational load. Secondly, a hierarchical control structure is proposed, where an instantaneous optimisationbased control allocation algorithm transforms the cooling/heating capacity commanded by the superimposed cabin air temperature controller to openloop actions and references for inner HVAC control loops. Thirdly, combined tuning of optimal allocation cost function and superimposed cabin air temperature controller parameters is proposed, as it is recognized that both have impact on the DPrevealed tradeoff between thermal comfort and efficiency. Although the presented case study is based on an A/C system model, the developed optimisation approach and particularly the hierarchical control strategy can also be applied to more complex HVAC systems, such as those utilised in advanced battery electric vehicles (Drage et al. 2019).
The remaining part of the paper is organized as follows. In support of optimisation and control strategy design studies presented, Sect. 2 outlines controloriented HVAC and cabin models used, as well as PMV index mapping. The DPbased HVAC control trajectory optimisation is presented in Sect. 3. Design of hierarchical control system is described in Sect. 4. Section 5 presents control trajectory optimisation results and simulationbased verification of the control strategy for a cooldown scenario. Concluding remarks are given in Sect. 6.
2 HVAC and cabin modelling
Figure 1 depicts the passenger cabin thermal system connected to the conventional HVAC system considered to operate in A/C mode. A 12thorder controloriented model of the HVAC system has been adopted from (Jensen and Tummescheit 2002) and described in detail in (Ratković et al. 2019). The model is based on movingboundary method, which provides a good tradeoff between model complexity and accuracy (Jensen and Tummescheit 2002), and has been experimentally validated against highfidelity fixed volume models (Rasmussen and Shenoy 2012). Refrigerant properties used in the model are obtained using publicly available CoolProp tool (Bell et al. 2014), while other physical parameters such as component dimensions are estimated to represent typical vehicle A/C system. The main model variables and parameters are described in Nomenclature.
Electric motorpowered compressor, electronic expansion valve, blower fan and condenser fan are considered as electric vehicle HVAC actuators. They typically have faster dynamics compared to the slower heat exchanger dynamics, which justifies modelling them as static elements (Rasmussen and Shenoy 2012). Therefore, the control inputs fed to the HVAC model are compressor speed ω_{com}, electronic expansion valve opening a_{v}, and blower and condenser fan air mass flows \(\dot{m}\)_{ea} and \(\dot{m}\)_{ca}, respectively. The model outputs include the evaporator outlet air temperature T_{ea,out} (i.e. the cabin inlet air temperature), the superheat temperature ΔT_{SH}, and the coefficient of performance (COP) defined as the ratio of evaporator airside cooling power \(\dot{Q}\)_{ea} and compressor power consumption P_{com}, i.e. COP = \(\dot{Q}\)_{ea}/P_{com}. The power consumptions of expansion valve, blower fan and condenser fan are not considered in COP calculation since the compressor is dominant power consumer in this system.
The considered passenger cabin model (Fayazbakhsh and Bahrami 2013) consists of two thermal masses: (1) the cabin air volume V_{c} with temperature T_{c} and (2) the cabin body elements with mass m_{b} and temperature T_{b}. The modelled thermal loads include the constant metabolic load \(\dot{Q}\)_{met} taken into account if the cabin air temperature is below 36 °C, the solar radiation load \(\dot{Q}\)_{sol}, the ambient air convection heat transfer \(\dot{Q}\)_{ab} over the outer body surface A_{ab} characterised with a variable heat transfer coefficient α_{ab}(v_{veh}), the HVAC thermal load \(\dot{Q}\)_{HVAC} that takes into account the cabin air inlet and outlet, and the convection heat transfer from body elements to cabin air \(\dot{Q}\)_{cb} over the inner body surface A_{cb} with the heat transfer coefficient α_{cb}.
The secondorder cabin model based on the heat balance method reads (Fayazbakhsh and Bahrami 2013):
where c_{p,ac} is the cabin air specific heat capacity, c_{p,ea} is the evaporatorside air specific heat capacity, ρ_{c} is the cabin air density and c_{p,b} is the body specific heat capacity.
The model (1) may be simplified to a firstorder model by assuming that the body temperature dynamic is slower than the cabin air temperature dynamic, which gives:
where k_{c} scales the cabin air temperature thermal inertia to properly match the secondorder model dynamics and ΔT_{b} is the constant airtobody temperature offset used for “tuning” the steady state accuracy.
For the singlezone modelling assumption, the mean air velocity v_{air} inside the cabin is set to be proportional to the blower fan air mass flow \(\dot{m}\)_{ea}:
where k_{v,ea} is expressed as the ratio of air density and cabin inlet vents crosssection area. Similarly, a linear relationship between the vehicle speed v_{veh} and the condenser fan air mass flow \(\dot{m}\)_{ca} is assumed:
where k_{v,ca} is constant coefficient, and \(\dot{m}\)_{ca,R} is the condenser fan control input, set to zero herein.
The closedloop dynamics of evaporator outlet air temperature control system built in the HVAC model is assumed to be by an order of magnitude faster than the cabin air temperature dynamics. Therefore, in order to enhance the computational efficiency of DPbased control trajectory optimisation, the overall HVAC model is in that case represented by static maps shown in Fig. 2 (Ratković et al. 2019). Here, the superheat temperature ΔT_{SH} was fixed to its target value of 5 °C, based on the assumption that it was effectively controlled by the electronic expansion valve.
The cabin thermal comfort is evaluated through the Predicted Mean Vote (PMV) index, which is adjusted to take into account the cooling effect of increased air velocity (ANSI/ASHRAE Standard 55, Rev. 2017). A positive value of PMV means that the cabin environment is too hot, while a negative PMV indicates that it is too cold (Table 1). The zero PMV suggests ideal thermal comfort, while the comfortable range according to the aforementioned standard is defined as PMV < 0.5. The PMV takes into account six different parameters: air temperature T_{air}, air velocity v_{air}, mean radiant temperature T_{mr}, air relative humidity RH, clothing insulation, and metabolic rate.
In order to simplify the PMV calculation, it is assumed that: (1) the mean radiant temperature T_{mr} is equal to the mean air temperature inside the cabin T_{c}, (2) the driver is wearing summer clothes (the clothing thermal resistance is set to 0.5 clo), and (3) the metabolic rate is set to 1.5. This gives the PMV map shown in Fig. 3a, where black circles indicate the comfortable range, i.e. PMV < 0.5. An excerpt of PMV map related to constant relative humidity of 44% is shown in Fig. 3b, where the black solid lines denote the boundaries of comfort range (PMV < 0.5). This plot indicates that in the hot conditions, i.e. when PMV > 0, the same level of thermal comfort can be achieved for growing cabin air temperatures T_{air} if the air velocity v_{air} is increased (and also if the humidity is reduced, Fig. 3a). Similarly, in the cold conditions, i.e. when PMV < 0, the thermal comfort can be preserved for falling cabin air temperature if the air velocity is decreased.
3 Control trajectory optimisation
The presented control trajectory optimisation is conducted by using a customdesigned algorithm based on the dynamic programming (DP) method (Bellman and Dreyfus 1962). The DPbased optimisation results in globally optimal solution, as it starts from the final time instant t_{f} and calculates the optimal control inputs for all possible state variables backwards in time, while satisfying the process model.
In order to reduce the computational burden of DP optimisation, the cabin is described by the firstorder model (2) with the state variable
the control input vector u is reduced to two main inputs
and the HVAC model is described by the static maps T_{ea,out} = T_{ea,out}(ω_{com}, \(\dot{m}\)_{ea}, \(\dot{m}\)_{ca}) and COP = COP(ω_{com}, \(\dot{m}\)_{ea}, \(\dot{m}\)_{ca}) shown in Fig. 2. The thermal comfort output PMV is obtained by using the map shown in Fig. 3a. Trilinear interpolation is applied when evaluating the maps in Figs. 2 and 3a. The expansion valve opening a_{v} is not contained in the control vector u, because the HVAC static maps have been obtained for the constant/target superheat temperature value. The condenser fan air mass flow \(\dot{m}\)_{ca} represents a disturbance variable.
The control trajectory optimisation problem is to find the control vector u(k), which minimises the cost function
at each discretetime instant k and subject to a discretetime counterpart of the plant dynamics model (2). The terminal condition function
is set to provide that the cabin air temperature reference x_{R}(t_{f}) = T_{cR} is achieved at the end of optimisation time horizon, which is ensured by applying a sufficiently high penalisation coefficient K_{tf} (set to 10,000, herein). The subintegral function F(·) includes minimisation of thermal comfort criterion (PMV) and maximisation of efficiency (COP), alongside with penalisation of statevariable and control input constraint violations:
where K_{PMV} and K_{COP} are weighting coefficients that set the tradeoff between thermal comfort and efficiency, K_{lim} is constraint violation penalisation coefficient that should be sufficiently high (set to 1000, herein), and H(a) is the Heaviside function defined as H(a) = 0 for a < 0 and H(a) = 1 for a ≥ 0. The constraints are used to contain the statevariable in the target range defined by the scenario, e.g. 20–40 °C. Note that, alternatively, the HVAC system power consumption can be used instead of COP in the cost function (7).
4 Control strategy design
The control strategy proposed in this paper has a twolevel hierarchical structure shown below in Fig. 6. Lowlevel feedback controllers ensure setpoint tracking and disturbance rejection for HVAC subsystem. The highlevel control subsystem controls the cabin air temperature and allocates references for lowlevel controllers.
4.1 Lowlevel control system
The evaporator outlet air temperature, i.e. the cabin inlet air temperature T_{ea,out}, is controlled in a feedback loop to provide accurate and highbandwidth tracking of the reference set by the highlevel control system. The superheat temperature ΔT_{SH} is regulated with respect to fixed reference ΔT_{SH,R} = 5 °C, where the main aim of the corresponding feedback controller is to suppress disturbance influence including the one imposed by the action of outlet temperature controller. The linearized input–output HVAC model is characterised by coupled dynamics, which is described in Fig. 4a by four transfer functions linking the control inputs ω_{com} and a_{v} to the controlled outputs T_{ea,out} and ΔT_{SH}:
It has been found that reasonably good control performance of superheat temperature regulation and evaporator setpoint tracking can be obtained for the given HVAC model by applying a simplified, decoupled control structure where only two main controllers G_{c11}(s) and G_{c22}(s) are used (Fig. 4a). The controllers are of proportionalintegral (PI) type, and their parameters are tuned by using a searchalgorithm optimisation procedure targeted to singleinput singleoutput (SISO) linear system (Isermann 1981). The cost function to be minimised combines penalisation of closedloop control error and control effort. Referring to the control structure shown in Fig. 4a, the cost functions for the two control loops are defined as:
where r_{11} and r_{22} are weighting coefficients which set the tradeoff between control error suppression, i.e. performance, and control effort reduction, i.e. efficiency and relative stability. Since the linearized HVAC dynamics model parameters depend on the operating point, PI controller gain scheduling maps have been obtained by repeating the optimisation procedure for multiple operating points with fixed weighting coefficients r_{11} and r_{22}. The analysis has showed that the most significant operating point parameters are the evaporator outlet air temperature T_{ea,out} and the blower fan air mass flow \(\dot{m}\)_{ea}, which results in twodimensional scheduling maps for the controller proportional and integral gains. The final lowlevel control system structure is shown in Fig. 4b and it consists of two PI controllers with two pairs of gainscheduling maps.
The lowlevel control system performance is illustrated in Fig. 5 for the full, 12th order nonlinear process model, where blue lines denote the response of control system with fixed controller gains (tuned for T_{ea,out} = 15 °C and m_{ea} = 0.05 kg/s), while green lines correspond to the control system with gainscheduling applied. The evaporator air mass flow \(\dot{m}\)_{ea} is kept at 0.075 kg/s, the superheat temperature reference is ΔT_{SH,R} = 5 °C and the evaporator outlet air temperature reference with magnitude of ΔT_{ea,out,R} = 5 °C is applied at t = 1000 s. In comparison with the fixedgain control system, the gainscheduling control system achieves faster evaporator outlet air temperature response (Fig. 5a) and lower superheat temperature control error (Fig. 5b). The performance improvement is achieved by stronger compressor and expansion valve control efforts (Fig. 5c, d). Figure 5e, f show that optimal controller gains vary significantly, thus making the gain scheduling algorithm necessary to achieve optimal performance over a wide operating range.
It has been found that the closedloop system performance can be further improved by taking into account the coupled dynamics of HVAC model, which are described in Fig. 4a by the crosscoupling transfer functions G_{12}(s) and G_{21}(s). In this case, the parameters of both PI controller were optimised simultaneously, with an option to include the crosscoupling controller terms/gains G_{c12}(s) and G_{c21}(s), as well (Fig. 4a). A multiobjective genetic algorithm was used as optimisation algorithm, because it allowed for overcoming the appearance of local optima and presenting the results in the form of Pareto frontier that enables the designer to select optimal solution based on his/her preference (Cvok et al. 2020). However, such procedure is more time consuming, especially when gainscheduling is concerned.
4.2 Highlevel control system
In order to achieve favourable cabin thermal comfort while maintaining the maximum HVAC system efficiency, a supervisory highlevel control system has been developed. According to the block diagram shown in Fig. 6, the highlevel control system regulates the cabin air temperature T_{c} by commanding the cooling capacity \(\dot{Q}\)_{d}. The cooling capacity \(\dot{Q}\)_{d} is then transformed within a control allocation map to lowlevel controller inputs/references, which in this case include the evaporator outlet air temperature and air mass flow references T_{ea,out,R} and \(\dot{m}\)_{ea,R}, respectively, while in a more general case more inputs are possible, such as the condenser air mass flow \(\dot{m}\)_{ca,R}. Using the cabin air temperature T_{c} and the cooling capacity demand \(\dot{Q}\)_{d} as inputs to the control allocation map allows for omitting the cabin dynamics model when designing the control allocation map. This significantly facilitates allocation map generation, and, more importantly, makes the allocation map independent of cabin model and related disturbances (see Fig. 1).
To achieve optimal system performance, it is crucial to base the design of control allocation map on optimisation (Johansen and Fossen 2013). For the specific HVAC system and design case, control allocation is based on instantaneous, online optimisation. A linear searchbased method is applied starting from the minimum blower fan air mass flow setpoint and corresponding evaporator outlet air temperature as initial guesses. The online optimisation relies on PMV and COP maps, both of which are prepared offline as functions of two inputs (Fig. 2). However, in more general case when using multiple control inputs (e.g. \(\dot{m}\)_{ca}), the dimension of COP map grows, which can lead to poor computational efficiency when using a linear search or may result in local optima when a more advanced, directional search approach is applied. To overcome these weaknesses, an alternative, offline optimisation approach based on a multiobjective genetic algorithm can be applied, as presented in Cvok et al. (2020). That approach results in control input maps as functions of cabin temperature and cooling capacity demand (Fig. 6), which could be fitted by analytical models/functions, to facilitate the control strategy implementation and calibration.
At the superimposed level, a fixedgain PItype cabin air temperature controller G_{c,CAB}(s) is used with an option to add a gain scheduling algorithm in more general case (Fig. 6). Since the cabin air temperature dynamics are slow, the cabin air temperature controller and the control allocation strategy can have higher sampling time than the lowlevel controllers (10 s vs. 0.1 s).
The optimal control allocation map is obtained by minimising the following cost function for a wide range of operating points (\(\dot{Q}\)_{d}, T_{c}):
where K_{PMV} and K_{COP} are weighting coefficients that set the tradeoff between the two conflicting criteria: thermal comfort (PMV) and efficiency (COP). The control variables T_{ea,out,R} and \(\dot{m}\)_{ea,R}, are subject to the following constraints:
5 Results
Control trajectory optimisation and, similarly, control system simulation analysis, have been carried out for a cooldown scenario at the constant vehicle velocity v_{veh} = 40 km/h. The objective is to bring the cabin air temperature down from its initial value, which is equal to the ambient air temperature (T_{c0} = T_{a} = 40 °C), to the final cabin air temperature of T_{c,R} = 26 °C in 10 min, i.e. t_{f} = 600 s.
5.1 Control trajectory optimisation results
DP optimisation has been carried out by using the parameters listed in Table 2. The following optimisation cases have been considered: (1) thermal comfortoriented PMV minimisation [K_{PMV} = 1 and K_{COP} = 0 are set in the cost function (7)], (2) HVAC efficiencyoriented COP maximisation (K_{PMV} = 0 and K_{COP} = 1), and (3) combined case of simultaneous PMV minimisation and COP maximisation (K_{PMV} = 0.5 and K_{COP} = 1).
The results shown in Fig. 7 indicate that for the HVAC efficiencyoriented case (red line), the optimal control action maintains a modest cooling capacity. This is reflected in a relatively slow fall of cabin air temperature (Fig. 7a), relatively high evaporator outlet air temperature T_{ea,out} (Fig. 7a), and correspondingly high evaporator air mass flow \(\dot{m}\)_{ea} (Fig. 7c). Such control is beneficial for HVAC efficiency (Fig. 7f) as it enables the compressor to operate at low speeds (Fig. 7d), thus minimising its power consumption and maximising the COP. Note that the optimal behaviour for this case will change to some extent if the blower fan power consumption were accounted for in COP, as the power consumption typically grows with air mass flow increase.
For the case of PMV minimisation (blue line), the optimal control behaviour is to increase the compressor speed and also air mass flow (Fig. 7c, d) at the beginning of response, in order to lower the cabin inlet air temperature (Fig. 7a) and achieve high cooling capacity, thus bringing the thermal comfort criterion PMV (Fig. 7e) towards zero as fast as possible. This results in the lowest COP (Fig. 7f) until the thermal comfort has been achieved (PMV = 0, t ~ 200 s), while the COP increases afterwards since lower compressor speed and lower air mass flow are sufficient to maintain the PMV around zero.
In the combined cost function case (green line in Fig. 7), the optimal control action expectedly results in compromise between the previous two extreme cases related to efficiency and thermal comfort maximisation.
5.2 Control system simulation results
The control system simulation results shown in Fig. 8 have been obtained for the same sets of weighting coefficients K_{PMV} and K_{COP} as used in Sect. 5.1, i.e. Figure 7, but now applied to the cost function (10) used in control allocation optimisation. In all these cost function settings, the same tuning of cabin air temperature PI controller is considered (K_{P} = 125 and K_{I} = 0.01).
The cabin air temperature response shown in Fig. 8a (dashed lines) is very similar for all three cases due to the same PI controller used. However, the allocated control inputs, i.e. the evaporator outlet air temperature (Fig. 8a, solid lines) and the evaporator air mass flow (Fig. 8f), are dependent on the weighting coefficients K_{PMV} and K_{COP}. For the case of COP maximisation (red line), the compressor speed (Fig. 8c) is kept low, which results in the highest efficiency (Fig. 8e, dashed lines). The low cabin air inlet temperature (Fig. 8a, solid lines) is set to meet the high cooling capacity demand set by superimposed controller. To achieve low cabin air inlet temperature at lower compressor speeds, the evaporator air mass flow (Fig. 8f) is kept relatively low. For the case of PMV minimisation (blue line) the thermal comfort (Fig. 8e, solid lines) is achieved at the fastest rate but this results in the lowest efficiency. The results of combined cost function case (green lines) fall between previous two extreme cases. Figure 8b, d show that the performance of superheat temperature control is satisfactory, and it could be further improved by applying more complex crosscoupling control.
Comparison of DPoptimised responses in Fig. 7 and the control system results in Fig. 8 indicates qualitative differences between the two solutions. This is especially pronounced in the COP maximisation case (red lines), in which the DP keeps the cooling capacity low to slowly bring the cabin air temperature to target value, whereas the superimposed controller commands relatively high cooling capacity and brings the cabin temperature to the target value faster. This is explained by the fixed parameters of superimposed cabin air temperature controller, i.e. same cabin air temperature (and cooling capacity demand) response for all allocation weighting coefficient settings. In order to bring the control system performance closer to DP results, the superimposed cabin air temperature controller bandwidth should be tuned in correlation with allocation cost function setting, i.e. the superimposed controller should be made slower for the COP maximisation case.
Figure 9 shows the comparative control system responses for three values of superimposed controller integral gains K_{I} and the combinedcriteria cost function (K_{PMV} = 0.5, K_{COP} = 1). The cabin air temperature response (Fig. 9a, dashed lines) is faster for higher integral gain K_{I}, which is connected with higher cooling capacity demand effort in that case (Fig. 9b). This results in faster thermal comfort achievement but deteriorates efficiency (see Fig. 9c and also Fig. 9d). The increased cooling capacity demand is optimally satisfied with lower evaporator outlet air mass flow (Fig. 9e), which enables lower evaporator air outlet temperature (Fig. 9a, solid lines).
For the case of lowest K_{I} (red line), the cabin air temperature response is slowest (Fig. 9a), and the cooling capacity demand effort is weakest (Fig. 9b). The weak cooling capacity demand is met by means of high evaporator air outlet temperature (Fig. 9a) and high blower fan air mass flow (Fig. 9e), which results in higher efficiency, but deteriorates the thermal comfort (Fig. 9c). Performance of moderate/nominal superimposed controller tuning (green line) falls between previous two tunings in terms of cost function indices (Fig. 9c) and control inputs (Fig. 9a–e). The overall control system behaviour is closer to the DP results (cf. Figs. 7, 9) than the previously considered case illustrated in Fig. 8.
Table 3 contains performance indices related to simulation results of cooldown scenario for various combinations of control allocation weighting coefficients and cabin air temperature controller tunings. The considered indices include the energy consumption E_{com} = ∫P_{com}dt and the following two thermal comfort criteria: (1) the cumulative absolute value of PMV, i.e. C_{1} = ∫PMVdt, and (2) the cumulative absolute value of those PMV values greater than a threshold (set to 0.22, herein), i.e. C_{2} = ∫PMVdt if PMV > 0.22. The criterion C_{2} is considered to be more suitable for transient evaluation as it allows the PMV to slightly deviate from the ideal value of zero in steadystate conditions.
The best overall performance in terms of efficiency is achieved in the case of slow superimposed cabin air temperature controller tuning and efficiencyoriented allocation cost. In this case the energy consumption is reduced by 25% compared to the selected nominal setting (blue line in Table 3). However, the bestefficiency setting results in the worst thermal comfort: the indices C_{1} and C_{2} are higher by 81% and 130% compared to the nominal setting. Keeping the slow superimposed controller tuning and changing the allocation cost towards the comfortoriented case reduces the thermal comfort indices, but it in turn significantly increases the energy consumption. The best performance in terms of thermal comfort is achieved in the case of fast superimposed controller tuning and comfortoriented allocation cost, where the comfort index C_{2} is 33% lower than in the nominal case, with only 13% more energy consumption. In the case of moderate controller tuning, the combined allocation cost appears to be a reasonable choice, as its performance falls approximately in the middle of those obtained for the two extreme cases.
6 Conclusion
A hierarchical thermal comfort control strategy, including an optimised HVAC control input allocation algorithm, has been developed and compared with globally optimal dynamic programmingbased control trajectory optimisation results. The control strategy verification results are given for a cooldown scenario, and they show that it is possible to tune the strategy for a favourable tradeoff between thermal comfort and HVAC efficiency, and achieve the behaviour that is comparable to the globally optimal solution. More specifically, along with tuning the allocation cost function weighting coefficients, the superimposed cabin air temperature controller bandwidth should be adjusted. For reducing the energy consumption, the superimposed controller should be made slower and the allocation should primarily be focused on efficiency, while for gaining the thermal comfort the superimposed controller should be tuned for fast response with the allocation adjusted for the combined comfort/efficiency setting.
Implementing the proposed control strategy in a fully electric vehicle would allow the designer to predetermine the tradeoff between thermal comfort and efficiency depending on the driving conditions, or to allow the driver to adjust the tradeoff based on his/her preference. A higher driving range would be achieved with slower superimposed controller and efficiencyoriented allocation at the expense of reduced thermal comfort. Therefore, such tuning may be reserved for rangecritical scenarios, i.e. when the battery charge is not anticipated to be sufficient for given driving cycle. In extremely hot conditions or when precooling the vehicle while being charged, the driver would opt for thermal comfortoriented setting based on fast tuning of superimposed controller. Finally, a balanced efficiency/comfort tuning would be appropriate in most of the driving scenarios and a variety of ambient conditions.
The ongoing work includes extending the control trajectory optimisation tool with (1) additional statevariables to take into account slower HVAC dynamics that that may be characteristic for HVAC system architectures used in electric vehicles, and (2) additional control variables that may improve the system performance. Similarly, optimising the allocation maps taking into account additional HVAC control inputs and corresponding tuning of the superimposed controller deserves further research. Finally, a thorough multiobjective parameter optimisation of lowlevel controllers taking into account the coupled HVAC dynamics should be considered as a final refinement of the overall control strategy.
Abbreviations
 A :

Area (m^{2})
 a _{ v } :

EXV opening area (–)
 c _{ p } :

Specific heat capacity at constant pressure (J/kg K)
 F :

Subintegral function (–)
 G :

Transfer function (–)
 J :

Cost function (–)
 k :

Scaling factor (–)
 K :

Weighting coefficient/controller gain (–)
 m :

Mass (kg)
 \(\dot{m}\) :

Mass flow (kg/s)
 P :

Power (W)
 r :

Weighting coefficient (–)
 \(\dot{Q}\) :

Heat flow (W)
 T :

Temperature (°C)
 u :

Control inputs (–)
 V :

Volume (m^{3})
 v :

Velocity (m/s)
 x, x :

State variable (–)
 α :

Heat transfer coefficient (W/m^{2}K)
 ρ :

Density (kg/m^{3})
 ω :

Compressor speed (rad/s)
 Φ:

Terminal condition cost (–)
 Δ:

Difference
 a :

Ambient air
 air :

Cabin air
 b :

Body
 c :

Cabin air/condenser
 ca :

Condenser air side
 com :

Compressor
 ea :

Evaporator air side
 I :

Integral
 lim :

Constraint penalization
 met :

Metabolic
 mv :

Air mass flow to vehicle velocity
 P :

Proportional
 R :

Reference
 sol :

Solar
 SH :

Superheat
 tf :

Terminal condition penalization
 veh :

Vehicle
References
Amini MR, Wang H, Gong X, LiaoMcPherson D, Kolmanovsky I, Sun J (2019) Cabin and battery thermal management of connected and automated HEVs for improved energy efficiency using hierarchical model perdictive control. IEEE Trans Control Syst Technol. https://doi.org/10.1109/TCST.2019.2923792
ASHRAE Standard, “Thermal environmental conditions for human occupancy”, ANSI/ASHRAE Standard 55, Rev. 2017
Bell, I.H., Wronski, J., Quoilin, S., Lemort, V. (2014) Pure and Pseudopure Fluid Thermophysical Property Evaluation and the OpenSource Thermophysical Property Library CoolProp. Ind Eng Chem Res. 53(6):2498–2508. https://doi.org/10.1021/ie4033999
Bellman RE, Dreyfus SE (1962) Applied dynamic programming. Princeton University Press, Princeton
Cvok I, Ratković I, Deur J (2020) Optimization of control parameters of vehicle airconditioning system for maximum efficiency. SAE Technical Paper 2020011242. https://doi.org/10.4271/2020011242
Drage P, Hinteregger M, Zotter G, Šimek M (2019) Cabin conditioning for electric vehicles. ATZ Worldw 121(2):44–49. https://doi.org/10.1007/s3831101802092
Farzaneh Y, Tootoonchi AA (2008) Controlling automobile thermal comfort using optimized fuzzy controller. Appl Therm Eng 28(14):1906–1917. https://doi.org/10.1016/j.applthermaleng.2007.12.025
Fayazbakhsh MA, Bahrami M (2013) Comprehensive modeling of vehicle air conditioning loads using heat balance method. SAE Technical Paper 2013011507. https://doi.org/10.4271/2013011507
Gobbi M (2013) A k, k–ε optimality selection based multi objective genetic algorithm with applications to vehicle engineering. Optim Eng 14(2):345–360. https://doi.org/10.1007/s1108101191858
Guermi M, Neffati A, Caux S, Ngueveu S (2014) Management of distributed power in hybrid electric vehicles based on D.P. or fuzzy logic. Optim Eng 15(4):993–1012. https://doi.org/10.1007/s1108101392355
Guzella L, Sciaretta A (2007) Vehicle propulsion systems. Springer, Berlin
Isermann R (1981) Digital control systems. Springer, Berlin
Jensen JM, Tummescheit H (2002) Moving boundary models for dynamics simulations of twophase flows. In: 2nd international model conference, pp 235–244
Johansen TA, Fossen TI (2013) Control allocation—a survey. Automatica 49(5):1087–1103. https://doi.org/10.1016/j.automatica.2013.01.035
Marshall G, Mahony C, Rhodes M, Daniewicz S, Tsolas N, Thompson S (2019) Thermal management of vehicle cabins, external surfaces, and onboard electronics: an overview. Engineering 5(5):954–969. https://doi.org/10.1016/j.eng.2019.02.009
Paffumi E, Otura M, Centurelli M, Casellas R, Brenner A, Steffen J (2019) Energy consumption, driving range and cabin temperature performances at different ambient conditions in support to the design of a usercentric efficient electric vehicle: the QUIET project. In: 14th SDEWES conference, Dubrovnik
Ranogajec V, Deur J, Ivanović V, Tseng HE (2019) Multiobjective parameter optimizaton of control profiles for automatic transmission doubletransition shifts. Control Eng Pract 93(1):104183. https://doi.org/10.1016/j.conengprac.2019.104183
Rao A (2014) Trajectory Optimization: a survey. In: Waschl H, Kolmanovsky I, Steinbuch M, del Re L (eds) Optimization and optimal control in automotive systems, vol 455. Springer, Cham, pp 3–21
Rasmussen BP, Shenoy B (2012) Dynamic modeling for vapor compression systems—part II: simulation tutorial. HVAC&R Res 18(5):956–973. https://doi.org/10.1080/10789669.2011.582917
Ratković I, Cvok I, Soldo V, Deur J (2019) Controloriented modelling of vapour compression cycle including modelorder reduction and analysis tools. In: 14th SDEWES conference, Dubrovnik
Sinoquet D, Rousseau G, Milhau Y (2011) Design optimization and optimal control strategy for hybrid vehicles. Optim Eng 12(1):199–213. https://doi.org/10.1007/s1108100991008
Škugor B, Cipek M, Deur J (2014) Control variables optimization and feedback control strategy design for the blended operating regime of an extended range electric vehicle. SAE Int J Altern Powertrains 3(1):152–162. https://doi.org/10.4271/2014011898
Yan X, Felming J, Lot R (2018) A/C energy management and vehicle cabin thermal comfort control. IEEE Trans Veh Technol 67(11):11238–11242. https://doi.org/10.1109/TVT.2018.2869030
Zhang Q, Canova M (2016) Mild hybrid technique using the automotive airconditioning system. Proc Inst Mech Eng Part D J Automob Eng 230(10):1392–1402. https://doi.org/10.1177/0954407015610253
Zhang T, Gao C, Gao Q, Wang G, Liu MH, Guo Y, Xiao C, Yan YY (2015) Status and development of electric vehicle integrated thermal management from BTM to HVAC. Appl Therm Eng 88:398–409. https://doi.org/10.1016/j.applthermaleng.2015.02.001
Zhang Q, Stockar S, Canova M (2016) Energyoptimal control of an automotive air conditioning system for ancillary load reduction. IEEE Trans Control Syst Technol 24(1):67–80. https://doi.org/10.1109/TCST.2015.2418322
Zhang Q, Meng Y, Greiner C, Soto C et al (2017) Air conditioning system performance and vehicle fuel economy tradeoffs for a hybrid electric vehicle. SAE Technical Paper 2017010171. https://doi.org/10.4271/2017010171
Zhang Z, Wang J, Feng X, Chang L, Chen Y, Wang X (2018) The solutions to electric vehicle air conditioning systems: a review. Renew Sustain Energy Rev 91:443–463. https://doi.org/10.1016/j.rser.2018.04.005
Acknowledgements
It is gratefully acknowledged that this work has been supported through QUIET project (Qualifying and implementing a usercentric designed and efficient electric vehicle), which has received funding from the European Union’s Horizon 2020 Research and Innovation Programme under Grant Agreement No. 769826. In addition, the research work of the first author has been partly supported by the Croatian Science Foundation through the “Young researchers’ career development project – training of new doctoral students”.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Cvok, I., Škugor, B. & Deur, J. Control trajectory optimisation and optimal control of an electric vehicle HVAC system for favourable efficiency and thermal comfort. Optim Eng 22, 83–102 (2021). https://doi.org/10.1007/s1108102009515w
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s1108102009515w