원시데이터 수집 시스템
선정목록으로

Multi-Agent Reinforcement Learning Based Actuator Control for EV HVAC Systems

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Seong-Soon Joo — MakinaRocks, Seoul, Republic of Korea
  2. Dongmin Lee — MakinaRocks, Seoul, Republic of Korea
  3. Minseop Kim — MakinaRocks, Seoul, Republic of Korea
  4. Tae-Ho Lee — MakinaRocks, Seoul, Republic of Korea
  5. Sanghyeok Choi — MakinaRocks, Seoul, Republic of Korea
  6. Seungju Kim — MakinaRocks, Seoul, Republic of Korea
  7. Jeyeol Lee — MakinaRocks, Seoul, Republic of Korea
  8. Joongjae Kim — Hanon Systems, Deajeon, Republic of Korea
  9. Yongsub Lim — MakinaRocks, Seoul, Republic of Korea
  10. Jeong-Hoon Lee — Hanon Systems, Deajeon, Republic of Korea
DOI
10.1109/access.2022.3227450
저널
IEEE Access
발행년도
2022
발행기관
Institute of Electrical and Electronics Engineers
피인용수
12
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2022.3227450
토픽
Electric and Hybrid Vehicle Technologies
OpenAlex ID
W4313147547

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

While electric vehicles (EVs) continue to draw more attention as an alternative to traditional fossil fuel vehicles, the relatively short driving range of EVs is often pointed out as their biggest drawback. In terms of energy consumption, one of the most energy-intensive systems in EVs is the heating, ventilation, and air conditioning (HVAC) system. Most HVAC systems use On/Off or PID control for the actuators, but these control methods have low efficiency and are difficult to apply in multiple-input multiple-output systems. In this paper, we propose a novel multi-agent deep reinforcement learning (MADRL) method to efficiently control the low-level actuators of the EV HAVC systems. Through this method, multiple objectivs such as setpoint temperature, subcooling and efficiency can be considered simultaneously by giving independent rewards for each actuator agent. The proposed method is evaluated via a actual vehicle simulator, and experimental results show that the MADRL-based method consumes only 53% of the energy consumption of PID control on average in a transient phase.

본문 71,739자

본문 펼치기
Received 6 October 2022, accepted 29 November 2022, date of publication 7 December 2022, date of current version 25 January 2023. _Digital Object Identifier 10.1109/ACCESS.2022.3227450_ # Multi-Agent Reinforcement Learning Based Actuator Control for EV HVAC Systems SUNGHO JOO <sup>1</sup>, DONGMIN LEE <sup>1</sup>, MINSEOP KIM <sup>1</sup>, TAEHO LEE 1, SANGHYEOK CHOI1, SEUNGJU KIM <sup>1</sup>, JEYEOL LEE <sup>1</sup>, JOONGJAE KIM 2, YONGSUB LIM1, AND JEONGHOON LEE 2 1MakinaRocks, Seoul 06626, Republic of Korea 2Hanon Systems, Deajeon 34325, Republic of Korea Corresponding author: Jeonghoon Lee (jlee@hanonsystems.com) ABSTRACT While electric vehicles (EVs) continue to draw more attention as an alternative to traditional fossil fuel vehicles, the relatively short driving range of EVs is often pointed out as their biggest drawback. In terms of energy consumption, one of the most energy-intensive systems in EVs is the heating, ventilation, and air conditioning (HVAC) system. Most HVAC systems use On/Off or PID control for the actuators, but these control methods have low efficiency and are difficult to apply in multiple-input multiple-output systems. In this paper, we propose a novel multi-agent deep reinforcement learning (MADRL) method to efficiently control the low-level actuators of the EV HAVC systems. Through this method, multiple objectivs such as setpoint temperature, subcooling and efficiency can be considered simultaneously by giving independent rewards for each actuator agent. The proposed method is evaluated via a actual vehicle simulator, and experimental results show that the MADRL-based method consumes only 53% of the energy consumption of PID control on average in a transient phase. INDEX TERMS Multi-agent reinforcement learning, energy consumption efficiency, HVAC, EV, RL. NOMENCLATURE Abbreviation COP Coefficient of Performance. DOS Degree of subcool. EV Electric Vehicle. EXV Electric eXpansion Valve. HVAC Heating, Ventilation, and Air Conditioning. MADRL Multi-Agent Deep Reinforcement Learning. MARL Multi-Agent Reinforcement Learning. MG Markov Game. MIMO Multiple-Input Multiple-Output. PID Proportional-Integral-Derivative. RL Reinforcement Learning. SAC Soft Actor-Critic. SC Subcooling. The associate editor coordinating the review of this manuscript and approving it for publication was Christopher H. T. Lee . Variables _β_ Importance ratio in single agent reward function. _�u_ <sup>_i_</sup> _t_ Change of control value of _i_ <sup>_th_</sup> actuator at time t. _δ_ Weight of time penalty. _�_ <sup>_target_</sup> Target DOS. _�t_ DOS at time t. _λ_ Range of convergence of temperature. _πθ_ <sup>_i_</sup> policy of _i_ <sup>_th_</sup> actuator at time t. _a_ <sup>_i_</sup> _t_ Action value of _i_ <sup>_th_</sup> actuator at time t. _Ct_ Binary flag of the convergence of temperature. _L�_ Lower bound of change of control value. _Li_ Lower bound of operating range of _i_ <sup>_th_</sup> actuator. _M_ 1 Limit of convergence time in transient phase. _M_ 2 Limit of convergence time in steady phase. _πθ_ <sup>_i_</sup> policy of _i_ <sup>_th_</sup> actuator at time t. _ρ_ Coefficient of reward function. _a_ <sup>_i_</sup> _t_ Action value of _i_ <sup>_th_</sup> actuator at time t. _N_ Time of convergence. _rt_ <sup>_�_</sup> Reward function of subcool at time t. _rt_ <sup>_�_</sup> Reward function of subcool at time t. _rt_ <sup>_Comp_</sup> Reward function of compressor at time t. _rt_ <sup>_Comp_</sup> Reward function of compressor at time t. _rt_ <sup>_EXV_</sup> Reward function of EXV at time t. _rt_ <sup>_EXV_</sup> Reward function of EXV at time t. _rt_ <sup>_Temp_</sup> Reward function of temperature at time t. _rt_ <sup>_Temp_</sup> Reward function of temperature at time t. _rt_ <sup>_Work_</sup> Reward function of work at time t. _rt_ <sup>_Work_</sup> Reward function of work at time t. _s_ <sup>_i_</sup> _t_ State of _i_ <sup>_th_</sup> actuator at time t. _s_ <sup>_i_</sup> _t_ State of _i_ <sup>_th_</sup> actuator at time t. _T_ <sup>_target_</sup> Target temperature. _Tt_ Temperature at time t. _u_ <sup>_i_</sup> _t_ Control value of _i_ <sup>_th_</sup> _u_ <sup>_i_</sup> _t_ Control value of _i_ <sup>_th_</sup> actuator at time t. _U�_ Upper bound of change of control value. _Ui_ Upper bound of operating range of _i_ <sup>_th_</sup> actuator. I. INTRODUCTION One of the biggest drawbacks of current electric vehicles (EVs) is their relatively short driving range compared to traditional fossil fuel vehicles. The simplest way to improve the short driving range is to increase battery capacity, and a significant amount of related research is underway [1]. Another approach is to improve the efficiency of the energy-consuming systems in EVs [2], [3], [4], [5]. One of the most energy-intensive systems in EVs is the heating, ventilation, and air conditioning (HVAC) system, which is a complex nonlinear thermo-fluid dynamics system composed of a variety of components such as a compressor, heat exchangers, and electric expansion valves (EXVs) to control vehicle climate conditions. The importance of the efficient control of the HVAC system in EVs is greater than that of conventional vehicles as the proportion of energy consumption by the HVAC system is larger in EVs [3]. Most HVAC systems use On/Off control and PID control [6], [7], [8]. On/Off control is simple but has problems such as low efficiency and a shortening of the lifespan of the components. PID control, also widely used for its simple implementation, does not require the dynamics of the target system and therefore can be applied to both linear and nonlinear systems. However, PID control involves a number of issues. First, in most cases, it is difficult to use PID control in multiple-input multiple-output (MIMO) systems as each control output is coupled with a single feature, which makes it hard to reflect complex objectives with multiple features in PID control. Second, PID control requires a setpoint that is typically based on human expertise and therefore might not be optimal. In particular, determination of the target degree of subcool (DOS), which greatly influences the efficiency of the system [9], [10], depends on the prior experience of humans. Further details about subcooling are explained in Section II. Third, since PID control is a type of feedback control that relies on errors from the current observation of the system, it is difficult to consider the entire trajectory. As a result, if the coefficients are not tuned well, oscillation can occur in the system. Recently, approaches based on reinforcement learning (RL) to HVAC control have been studied. RL methods are designed to maximize the reward of the global trajectory [11] and are widely applied to various control problems. In HVAC systems, the policies of RL control a set of actuators, satisfying the multi-objective of the MIMO system via reward engineering [12], [13]. In Refs. [12], [13], the classical RL method SARSA has been applied to vehicle HVAC systems, showing promising performance compared to conventional control methods. However, the classical tabular RL method is inadequate for a large continuous system because of the curse of dimensionality [11]. In building HVAC systems, RLbased control has shown promising efficiency and generalization performance compared to baseline algorithms [14], [15], [16], [17], [18], [19], [20]. However, Refs. [14] and [18] can be used only for the discrete control problem, and while Refs. [15], [17], [18] propose a high-level control that outputs the desired setpoint temperature, the efficiency of the low-level subsystem actuator control to reach the setpoint temperature is not considered. Therefore, there is room for improving control at the low-level. Otherwise, the control methods proposed in [19] and [20] apply to the HVAC systems of buildings and are not applicable to vehicle HVAC systems. In this paper, to address the above mentioned challenges, we propose a novel control method based on multi-agent deep reinforcement learning (MADRL) for the EV HVAC system, with the following features. First, our method is based on a multi-agent architecture, which enables the use of actuator-specific reward functions to minimize the energy consumption of the MIMO system. Second, using the novel reward functions, our method finds the setpoints needed for feedback control without human expertise. Third, our method achieves more energy-efficient control than conventional methods in terms of the entire trajectory while achieving comparable target convergence performance. To the best of our knowledge, this research is the first attempt to use deep reinforcement learning for the continuous control of low-level subsystem actuators in the EV HVAC system. The remaining sections are as follows. In Section II, we introduce our problem’s objective functions, the concept of subcooling, and deep reinforcement learning. In Section III, we explain our MADRL-based method including state representation, action representation, and reward functions. In Section IV, we show that our proposed method outperforms the grid search and conventional PID control in efficiency while meeting a target temperature. As a training environment, we employed the commercial simulation software GT-SUITE <sup>⃝R</sup> [21], which is widely used for industrial vehicle HVAC modeling. Conclusion and further works are provided in the last section. II. PROBLEM STATEMENTS AND PRELIMINARIES _A._ _PROBLEM STATEMENTS_ The HVAC system provides a cool or warm airflow into the cabin through a variety of heat exchanges for passengers’ thermal comfort during driving. The heat exchangers FIGURE 1. Phases of control in the HVAC system. (e.g., evaporator, heater core, low temperature radiator, etc.) transport thermal energy that is converted into the change in cabin air temperature. The HVAC system has multiple modes depending on the usage for high performance and efficiency. Each mode adopts a different circuit design by closing or opening multi-way valves. Because of such distinct circuit design, each mode involves a different set of actuators, and therefore, every mode has its own specific objective and constraints. 1) OBJECTIVE In this paper, we consider the cabin air conditioning (A/C) mode, which is used when the cabin demands lowtemperature air. The actuators involved in this mode are the compressor and one EXV. The objective of the mode is to meet the given setpoint of the air temperature from the evaporator while minimizing the work. Regarding the work, only that done by the compressor is considered, since other work such as cooling fan work or blower work are relatively small. To be more specific, the objective can be divided into two parts: before and after reaching the target temperature, as shown in Fig. 1. Before reaching the target temperature (we call this stage the transient phase), the system operates to find the optimal trajectory of the control inputs, which minimizes the weighted sum of the total work done and time taken until the convergence of the temperature. The system should reach the target temperature within a given time: FIGURE 2. Pressure-enthalpy diagram for the vapor-compression cycle. work. The system becomes steady by fixing the inputs of the actuators to certain values. While there can be multiple input combinations that maintain the same target temperature, each of them may differ in efficiency. Therefore, in the steady phase, the objective is to find the optimal combination of control inputs rather than finding the trajectory. This optimal combination should satisfy Eq. (2): s.t. | _Tt_ - _T_ <sup>_target_</sup> | ≤ _λ,_ ∀ _t_ ∈{ _N_ + 1 _, . . ., M_ 2} (2) 2) USE OF SUBCOOLING A liquid is subcooled when it exists at a temperature below its normal condensing point. Fig. 2 shows that subcooling (SC) exists to the upper left of the saturation line in the pressure-enthalpy diagram. In HVAC systems, condenser SC has a significant effect on the coefficient of performance (COP) [22]. In other words, maintaining the DOS at the target level is equivalent to achieving a certain level of efficiency. In conventional control methods, an EXV is controlled to reach the desired DOS using PID control or model predictive control to improve the COP [9], [10], [23], [24]. Our method is first validated to control the EXV to meet the target DOS provided by experts as an auxiliary target of efficiency. In the steady phase, the system is expected to reach not only the target temperature but also the optimal DOS. The objective function of the steady phase can be modified as follows: min _M_ 2 _t_ = _N_ +1 _Wt_ min min _N_ _t_ =1 _Wt_ + _δN_ _M_ 2 _t_ = _N_ +1 _Wt_ s.t. | _TN_ −1 − _T_ <sup>_target_</sup> | ≤ _λ,_ | _TN_ - _T_ <sup>_target_</sup> | ≤ _λ,_ _N_ ≤ _M_ 1 (1) where _δ_ determines the weight of the time penalty and _λ_ is the range of convergence of the temperature. After reaching the target temperature (we call this stage the steady phase), the system operates to maintain the temperature within the desired range while conducting minimum s.t. | _Tt_ - _T_ <sup>_target_</sup> | ≤ _λ,_ | _�t_ - _�_ <sup>_target_</sup> | ≤ _λ,_ ∀ _t_ ∈{ _N_ + 1 _, . . ., M_ 2} (3) However, as stated in [23], finding the optimal DOS is difficult and often requires numerous assumptions. Moreover, if the system is newly introduced or updated, finding the optimal DOS requires trial and error. In such cases when value function _V_ <sup>_π_</sup> ( _s_ ) of a policy _π_ is the expected cumulative reward starting from the state _s_ upon executing _π_ : _V_ <sup>_π_</sup> ( _s_ ) ≜ E _π_ - ∞ _τ_ = _t_ _γ_ <sup>_τ_</sup> <sup>−</sup> <sup>_t_</sup> _r_ ( _sτ_ _, aτ_ ) | _st_ = _s_ (7) Next, the Q-function _Q_ <sup>_π_</sup> ( _s, a_ ) of a policy _π_ is the expected return starting from state _s_, taking action _a_, and then following _π_ : _Q_ <sup>_π_</sup> ( _s, a_ ) ≜ E _π_ - ∞ _τ_ = _t_ _γ_ <sup>_τ_</sup> <sup>−</sup> <sup>_t_</sup> _r_ ( _sτ_ _, aτ_ ) | _st_ = _s, at_ = _a_ (8) FIGURE 3. Slew rate constraint. the target DOS is unknown, our method can be trained to directly minimize the work. Details are further discussed in Section IV. 3) CONSTRAINTS Due to physical limits and safety issues, the compressor has a limit on the available changes in actuation per time, which is called the slew rate constraint. The slew rate constraint can be expressed as Eq. 4, where _u_ <sup>1</sup> _t_ <sup>and</sup> <sup>_u_</sup> <sup>2</sup> _t_ <sup>are the control values</sup> of the compressor and EXV at time step _t_, respectively: 2) SOFT ACTOR-CRITIC Recently, deep neural networks have been widely used to train the policy or value function of RL algorithms [25], [26], [27], [28]. In this work, we deployed soft actor-critic (SAC) [29], which is a state-of-the-art model-free RL algorithm for continuous control domains. SAC has a high sample efficiency, as the algorithm is trained based on maximum entropy [30] with an actor-critic architecture [31]. Moreover, SAC tends to converge more stably and requires less hyperparameter tuning than other RL algorithms. In SAC, the goal of the agent is to maximize not only the expected sum of the rewards from the current policy _π_ but also the expected entropy of the policy: _L�_ ≤ _�u_ <sup>1</sup> _t_ <sup>≤</sup> <sup>_U�,_</sup> ∀ _t_ (4) max E _π_ _π_ - _π_ (· | _st_ - <sup>��</sup> (9) - ∞ _t_ =0 _γ_ <sup>_t_</sup> <sup>�</sup> _r_ ( _st_ _, at_ ) + _αH_ Also, each actuator’s operating range has physical limits. This constraint is shown in Eq. 5. _L_ 1 ≤ _u_ <sup>1</sup> _t_ <sup>≤</sup> <sup>_U_</sup> <sup>1</sup> <sup>_,_</sup> ∀ _t_ _L_ 2 ≤ _u_ <sup>2</sup> _t_ <sup>≤</sup> <sup>_U_</sup> <sup>2</sup> <sup>_,_</sup> ∀ _t_ (5) _B._ _PRELIMINARIES_ 1) REINFORCEMENT LEARNING We formulate the HVAC control problem as a Markov decision process [11] with a tuple of states ( _S, A, p, r, γ_ ), where _S_ is the continuous state space, _A_ is the continuous action space, _p_ : _S_ × _A_ × _S_ → R≥0 is the unknown state transition dynamics that denotes the probability density of the next state _s_ <sup>′</sup> ∈ _S_ given _s_ ∈ _S_ and _a_ ∈ _A_, and _r_ : _S_ × _A_ → R is a reward function. _γ_ ∈ [0 _,_ 1) is a discount factor of future rewards, and _π_ ( _a_ | _s_ ) is a stochastic policy of action _a_ given state _s_ ∈ _S_ . The agent chooses action _at_ based on policy _π_ ( _at_ | _st_ ) for every time step given state _st_ and reaches the next state _st_ +1 following the stochastic transition dynamics _p_ ( _st_ +1| _st_ _, at_ ). The goal of RL is to maximize the expected cumulative reward from the current policy _π_ for every time step: where _H_ - _π_ (· | _st_ )� = E _a_ ∼ _π_ [− log - _π_ ( _a_ | _s_ )�]. The critic, which is the soft _Q_ -function _Qθ_ of a policy _πφ_, is trained by minimizing the critic objective (Eq. 10), while the actor _πφ_ is updated by minimizing the actor objective (Eq. 11), - _π_ (· | _st_ )� - _π_ ( _a_ | _s_ ) where _H_ - = E _a_ ∼ _π_ [− log _Qθ_ ( _st_ _, at_ ) _JQ_ ( _θ_ ) ≜ E( _st_ _,at_ )∼ _D_ - <u>1</u> 2 - <sup>�</sup> 2 <sup>�</sup> (10) _r_ ( _st_ _, at_ ) + _γ_ E _st_ +1 _Vθ_ ˆ( _st_ +1) - <sup>�</sup> (11) _Jπ_ ( _φ_ ) ≜ E _st_ ∼ _D_ E _at_ ∼ _πφ_ _α_ log _πφ_ ( _at_ | _st_ ) − _Qθ_ ( _st_ _, at_ ) where _θ_ <sup>ˆ</sup> is the set of parameters of the target network. For a better exploration, the temperature coefficient _α_ is automatically adjusted for the maximum entropy policy by minimizing the _α_ objective, (12) _J_ ( _α_ ) ≜ E _at_ ∼ _πt_ - _α_ log _πt_ ( _at_ | _st_ ) − _αH_ 0 max E _π_ _π_ - ∞ _t_ =0 _γ_ <sup>_t_</sup> _r_ ( _st_ _, at_ ) (6) where _H_ 0 is the desired minimum expected entropy threshold. 3) MULTI-AGENT RL Multi-agent reinforcement learning (MARL) is widely studied in control systems with multiple components [32], [33], [34], [35], [36], [37]. MARL enables a more delicate design of the action and reward functions compared to single-agent Using the policy function _π_ ( _a_ | _s_ ), the state value function _V_ or action value function _Q_ (or _Q_ -function) is obtained to approximate the expected cumulative reward. The state appropriate feedback. In other words, EXV control requires long-term exploration, in which the agent learns to meet the target DOS after the convergence of the target temperature. In the case of single-agent RL, the agent outputs control values of both compressor and EXV from a single neural network. Also, the reward is a single scalar value unified from _rt_ <sup>1</sup> <sup>and</sup> <sup>_r_</sup> _t_ <sup>2</sup> <sup>(Eq. 13).</sup> _t_ <sup>1</sup> <sup>and</sup> <sup>_r_</sup> _t_ <sup>2</sup> _t_ <sup>2</sup> <sup>(Eq. 13).</sup> _t_ <sup>1</sup> <sup>+</sup> <sup>_βr_</sup> _t_ <sup>2</sup> _t_ <sup>2</sup> <sup>_,_</sup> _β_ ∈ [0 _,_ 1] (13) FIGURE 4. Agent diagram. RL algorithms. To define our MARL problem, we introduce a Markov game (MG) [32], [34], [38], [39]. The MG is a framework that generalizes the Markov decision process for multiple agents interacting simultaneously in a shared environment. MG is defined with the tuple ( _N_ _, S,_ { _A_ <sup>_i_</sup> } _, p,_ { _r_ <sup>_i_</sup> }), where _N_ denotes the number of interacting agents ( _N_ _>_ 1), _S_ is the continuous state space, _A_ : _A_ <sup>1</sup> × - · · × _A_ <sup>_N_</sup> is the joint action space which is the collection of the continuous action spaces of individual agents _i_ ∈{1 _, . . ., N_ }, _p_ : _S_ × _A_ × _S_ → R+ is the unknown state transition probability, and _r_ : _r_ <sup>1</sup> × - · · × _r_ <sup>_N_</sup> is the reward function. In MARL, joint action _a_ : _a_ <sup>1</sup> ×· · ·× _a_ <sup>_N_</sup> and joint policy _π_ ( _a_ | _s_ ) = _�iπ_ <sup>_i_</sup> ( _a_ <sup>_i_</sup> | _s_ <sup>_i_</sup> ) are defined with the collection of the actions and policies of individual agents. A MARL agent chooses joint action _at_ based on joint policy _π_ ( _at_ | _st_ ) for every time step given state _st_ and reaches the next state _st_ +1 following stochastic transition dynamics _p_ ( _st_ +1| _st_ _, at_ ). The goal of MARL is same as the goal of RL (Eq. 6). III. METHODS _A._ _MULTI-AGENT IN THE HVAC SYSTEM_ As mentioned in Section II-A, our model has two different objectives, Eq. 1 for the transient phase and Eq. 2 for the steady phase. Each objective is optimized by its own agent, namely a transient agent for the transient phase and a steady agent for the steady phase. Each agent is composed of a compressor agent and an EXV agent, which are responsible for the corresponding actuators of the system. With an identical architecture for the compressor and EXV agents (Fig. 4), the transient and steady agents are trained for their respective phase using their own novel reward functions. Each reward function reflects the objectives defined in Eq. 1 and Eq. 3. The compressor agent contains a policy network _πθ_ <sup>1</sup> <sup>whose</sup> primary objective is to find the optimal control value of the compressor to meet the target temperature. Similarly, the EXV agent contains a policy network _πθ_ <sup>2</sup> <sup>whose</sup> <sup>primary</sup> objective is to find the optimal control value of the EXV to meet the target DOS. In general, the compressor has a larger influence on the system than the EXV. Before the compressor converges, most of the features including compressor work, temperature, and SC predominantly depend on the compressor. Only after the target temperature is reached and the compressor converges can the EXV agent observe the change in SC that is induced solely by itself. Then it becomes possible to control the EXV agent to meet the target DOS with Besides the common features, the EXV agent receives additional information, _Ct_, which is a binary flag indicating whether the target temperature is reached. _Ct_, as given by Eq. 16, is 1 when the error of the temperature is below _λ_ _rt_ <sup>_single_</sup> _t_ <sup>_single_</sup> = (1 − _β_ ) _rt_ <sup>1</sup> In this case, the agent tends to learn to control the more dominant component, which is the compressor, while struggling with the less dominant component, the EXV. One possible solution to address this issue is to adjust each reward’s relative importance with a ratio constant, _β_ . Unfortunately, finding the right value of _β_ requires extensive hyperparameter searching with exponentially growing costs for increasing numbers of actuators. By splitting each actuator into independent agents, the relative magnitude of the reward is no longer an issue. Likewise, this structure can be easily expanded to HVAC systems with more actuators by simply adding more agents. _B._ _STATE REPRESENTATION_ The compressor and EXV agents share most of their important features from system observations. Common features are as follows. [ _Tt_ −1 _, Tt_ _, �t_ −1 _, �t_ _, Tt_ - _T_ <sup>_target_</sup> _, �t_ - _�_ <sup>_target_</sup> _, u_ <sup>1</sup> _t_ <sup>1</sup> _t_ −1 <sup>_, u_</sup> <sup>2</sup> _t_ <sup>2</sup> _t_ −1 <sup>]</sup> (14) Here, _Tt_ −1 _, Tt_ _, �t_ −1 _, �t_ are observed values of the temperature and SC of the current and previous time steps, respectively. As the HVAC system reacts gradually rather than instantly, information of the previous time steps is required for the agents to decide the next action. This nature of the HVAC system can be easily inferred from a mathematical modeling of each system component, where most of the dynamics are differential equations with time [40], [41]. In the above equation, the current error of temperature and SC are denoted by _Tt_ - _T_ <sup>_target_</sup> and _�t_ - _�_ <sup>_target_</sup> . The agents can decide the magnitude and direction of the action based on the current error. Moreover, the control values of the previous step are also included as ( _u_ <sup>1</sup> _t_ −1 <sup>_, u_</sup> <sup>2</sup> _t_ −1 <sup>).</sup> <sup>To</sup> <sup>make</sup> <sup>the</sup> <sup>most</sup> <sup>of</sup> the information available, each agent’s current state contains the other agent’s action that was taken one step before. The control values of different actuators are normalized with their upper and lower limits for a relative scale, as follows. _u_ <sup>1</sup> _t_ −1 <sup>←</sup> _u_ <sup>1</sup> _<u>t</u>_ <u>−1</u> <sup>−</sup> <sup>_L_</sup> <sup>1</sup> _U_ 1 − _L_ 1 _u_ <sup>2</sup> _t_ −1 <sup>←</sup> _u_ <sup>2</sup> _<u>t</u>_ <u>−1</u> <sup>−</sup> <sup>_L_</sup> <sup>2</sup> _U_ 2 − _L_ 2 (15) previous control value _u_ <sup>1</sup> _t_ <sup>1</sup> _t_ −1 <sup>to get the next control value</sup> <sup>_u_</sup> _t_ <sup>1.</sup> FIGURE 5. Compressor action mapping function. (a) Naive approach and (b) proposed approach. for two consecutive action steps and otherwise 0. The reward changes depending on _Ct_, and thus _Ct_ provides a clear understanding of the status. More details about the reward function are explained in Section IV-D. 1 _,_ if | _Tt_ - _T_ <sup>_target_</sup> | _< λ_ and | _Tt_ −1 − _T_ <sup>_target_</sup> | _< λ_ 0 _,_ otherwise <sup>1</sup> _t_ <sup>,</sup> <sup>_a_</sup> <sup>2</sup> _t_ <sup>2</sup> _t_ <sup>is</sup> <sup>directly</sup> <sup>rescaled</sup> <sup>to</sup> <sup>_u_</sup> _t_ <sup>2</sup> previous control value _u_ <sup>1</sup> _t_ −1 <sup>to get the next control value</sup> <sup>_u_</sup> _t_ <sup>1.</sup> In this way, we can assure that the control value always stays in the allowed range. One notable thing to address is that the mapping function is asymmetric. When _a_ <sup>1</sup> _t_ <sup>is</sup> <sup>rescaled</sup> <sup>with</sup> <sup>an</sup> <sup>affine</sup> <sup>transfor-</sup> mation to the change in the control value, the allowed range of increment and decrement can differ [Fig. 5(a)]. If _a_ <sup>1</sup> _t_ <sup>is</sup> rescaled uniformly in this range, the portion of either increment or decrement can be relatively larger than the other, which can be problematic for the training process. Specifically, the agent collects training data with a random policy in the early stages of the training. The distribution of the training data can be biased towards either increment or decrement if the range is unbalanced, and this can greatly influence the training time and quality. To address this issue, the action value is rescaled differently depending on its sign. Positive action values always increase the control value within the allowed range, while negative action values work in the opposite way [Fig. 5(b)]. While _a_ <sup>1</sup> _t_ <sup>is</sup> <sup>rescaled</sup> <sup>to</sup> <sup>_�u_</sup> <sup>1</sup> _t_ <sup>,</sup> <sup>_a_</sup> <sup>2</sup> _t_ <sup>is</sup> <sup>directly</sup> <sup>rescaled</sup> <sup>to</sup> <sup>_u_</sup> _t_ <sup>2</sup> using the operating range of the EXV component. The slew rate is not considered in this case. The EXV mapping function is as follows. While _a_ <sup>1</sup> _t_ <sup>1</sup> _t_ <sup>is</sup> <sup>rescaled</sup> <sup>to</sup> <sup>_�u_</sup> <sup>1</sup> _t_ <sup>,</sup> _Ct_ =    (16) To sum up, the state of each agent is as follows: _s_ <sup>1</sup> _t_ <sup>=</sup> <sup>[</sup> <sup>_Tt_</sup> <sup>−1</sup> <sup>_, Tt_</sup> <sup>_, �t_</sup> <sup>−1</sup> <sup>_, �t_</sup> <sup>_, Tt_</sup> <sup>−</sup> <sup>_T target_</sup> <sup>_,_</sup> _�t_ - _�_ <sup>_target_</sup> _, u_ <sup>1</sup> _t_ −1 <sup>_, u_</sup> <sup>2</sup> _t_ −1 <sup>]</sup> _u_ <sup>2</sup> _t_ <sup>2</sup> _t_ <sup>=</sup> <sup>0</sup> <sup>_._</sup> <sup>5</sup> <sup>_a_</sup> <sup>2</sup> _t_ <sup>0</sup> <sup>_._</sup> <sup>5</sup> <sup>_a_</sup> <sup>2</sup> _t_ <sup>· (</sup> <sup>_U_</sup> <sup>2 −</sup> <sup>_L_</sup> <sup>2)</sup> + 0 _._ 5( _U_ 2 + _L_ 2) (20) _s_ <sup>2</sup> _t_ <sup>=</sup> <sup>[</sup> <sup>_Tt_</sup> <sup>−1</sup> <sup>_, Tt_</sup> <sup>_, �t_</sup> <sup>−1</sup> <sup>_, �t_</sup> <sup>_, Tt_</sup> <sup>−</sup> <sup>_T target_</sup> <sup>_,_</sup> _�t_ - _�_ <sup>_target_</sup> _, u_ <sup>1</sup> _t_ −1 <sup>_, u_</sup> <sup>2</sup> _t_ −1 <sup>_, Ct_</sup> <sup>]</sup> (17) _D._ _REWARD FUNCTION_ The reward function is designed to enable multi-objective control in the current MIMO system. As described in Fig. 4, two different control agents are trained, one for each corresponding phase. The objectives of each phase are expressed as reward components. _C._ _ACTION REPRESENTATION_ The action values ( _a_ <sup>1</sup> _t_ <sup>_, a_</sup> <sup>2</sup> _t_ <sup>)</sup> <sup>of</sup> <sup>1</sup> _t_ <sup>_, a_</sup> <sup>2</sup> _t_ The action values ( _a_ <sup>1</sup> _t_ <sup>_, a_</sup> <sup>2</sup> _t_ <sup>)</sup> <sup>of</sup> <sup>the</sup> <sup>policy</sup> <sup>networks</sup> <sup>(Eq.</sup> <sup>18),</sup> which are in the [−1, 1] range, are converted to control values via mapping functions. For clarity, we call the output of the agent as the action value and the input of the actuator as the control value. _a_ <sup>1</sup> _t_ _a_ <sup>2</sup> _t_ <sup>1</sup> _t_ <sup>=</sup> <sup>_π_</sup> _θ_ <sup>1</sup> <sup>2</sup> _t_ <sup>=</sup> <sup>_π_</sup> _θ_ <sup>2</sup> _θ_ <sup>1(</sup> <sup>_s_</sup> _t_ <sup>1</sup> _θ_ <sup>2(</sup> <sup>_s_</sup> _t_ <sup>2</sup> _t_ <sup>2) ∈</sup> <sup>[−1</sup> <sup>_,_</sup> <sup>1]</sup> (18) _t_ <sup>1) ∈</sup> <sup>[−1</sup> <sup>_,_</sup> <sup>1]</sup> 1) REWARD FUNCTION FOR THE TRANSIENT AGENT The reward function for the transient agent in Eq. 21 is based on Eq. 1 from Section II. The reward function has two components, _rt_ <sup>_Temp_</sup> and _rt_ <sup>_Work_</sup> . The compressor agent and EXV agent receive rewards composed of a temperature reward and work reward. In the transient phase, the convergence of SC is not considered; hence, the only termination condition for the transient phase is the convergence of temperature. The reward function of the compressor and EXV agents is _rt_ <sup>1</sup> <sup>and</sup> _rt_ <sup>2, respectively. Note that the</sup> <sup>_ρ_</sup> <sup>variables determine the shape</sup> As each actuator needs a different control value, different mapping functions are applied. For the compressor agent, the action value _a_ <sup>1</sup> _t_ <sup>is mapped to the control value</sup> <sup>_u_</sup> <sup>1</sup> _t_ <sup>considering</sup> two types of constraints. The first constraint (Eq. 5) is the operating range of the component, which is the maximum and minimum rpm value of the compressor. The other constraint (Eq. 4) is the slew rate, which is the allowed change of rpm per second for the safety of the component. The compressor mapping function is as follows: _rt_ <sup>_Temp_</sup> = −( _ρ_ 1 + _ρ_ 3) + _ρ_ 1 _e_ <sup>−</sup> <sup>_ρ_</sup> <sup>2·(</sup> <sup>_Tt_</sup> <sup>−</sup> <sup>_T target_</sup> <sup>)2</sup> + _ρ_ 3 _e_ <sup>−</sup> <sup>_ρ_</sup> <sup>4·(</sup> <sup>_Tt_</sup> <sup>−</sup> <sup>_T target_</sup> <sup>)2</sup> _t_ <sup>_Temp_</sup> and _rt_ <sup>_Work_</sup> _rt_ <sup>2, respectively. Note that the</sup> <sup>_ρ_</sup> <sup>variables determine the shape</sup> and scale of the reward function. <sup>1</sup> _t_ −1 <sup>_,_</sup> if _a_ <sup>1</sup> _t_ _urange_ = �min( _U_ 1 _, u_ <sup>1</sup> _t_ min( _U_ 1 _, u_ <sup>1</sup> _t_ −1 <sup>+</sup> <sup>_U�_</sup> <sup>) −</sup> <sup>_u_</sup> <sup>1</sup> _t_ −1 <sup>_,_</sup> if _a_ <sup>1</sup> _t_ <sup>_>_</sup> <sup>0</sup> _u_ <sup>1</sup> _t_ −1 <sup>−</sup> <sup>max(</sup> <sup>_L_</sup> <sup>1</sup> <sup>_, u_</sup> <sup>1</sup> _t_ −1 <sup>+</sup> <sup>_L�_</sup> <sup>)</sup> <sup>_,_</sup> if _a_ <sup>1</sup> _t_ <sup>_<_</sup> <sup>0</sup> <sup>1</sup> _t_ −1 <sup>−</sup> <sup>max(</sup> <sup>_L_</sup> <sup>1</sup> <sup>_, u_</sup> <sup>1</sup> _t_ <sup>1</sup> _t_ −1 <sup>+</sup> <sup>_U�_</sup> <sup>) −</sup> <sup>_u_</sup> <sup>1</sup> _t_ <sup>1</sup> _t_ −1 <sup>+</sup> <sup>_L�_</sup> <sup>)</sup> <sup>_,_</sup> if _a_ <sup>1</sup> _t_ <sup>1</sup> _t_ <sup>_<_</sup> <sup>0</sup> - _Wt_ - 4000 _u_ <sup>1</sup> _t_ <sup>1</sup> _t_ <sup>=</sup> <sup>_u_</sup> <sup>1</sup> _t_ <sup>1</sup> _t_ −1 <sup>+</sup> <sup>_a_</sup> _t_ <sup>1</sup> _t_ <sup>1</sup> <sup>·</sup> <sup>_urange_</sup> (19) _ρ_ <u>1</u> + _ρ_ <u>3</u> _rt_ <sup>_Work_</sup> = −( _ρ_ 1 + _ρ_ 3) + 500 − 4000 - _rt_ <sup>_Temp_</sup> _rt_ <sup>_Temp_</sup> + _rt_ <sup>_Work_</sup> - _ρ_ 5 _,_ if _t_ = _M_ 1 and _Ct_ = 0 _rt_ <sup>_Temp_</sup> + _rt_ <sup>_Work_</sup> _,_ otherwise _t_ <sup>_Temp_</sup> + _rt_ <sup>_Work_</sup> _t_ <sup>_Temp_</sup> + _rt_ <sup>_Work_</sup> _t_ <sup>_Work_</sup> _,_ otherwise The compressor action value _a_ <sup>1</sup> _t_ <sup>is</sup> <sup>first</sup> <sup>rescaled</sup> <sup>to</sup> <sup>the</sup> domain of an actuator control value using the slew rate and the operating range. The rescaled value is then added to the _rt_ <sup>1</sup> <sup>=</sup> _t_ <sup>2</sup> <sup>=</sup> <sup>_r_</sup> _t_ <sup>_Work_</sup> _rt_ <sup>2</sup> _t_ <sup>_Work_</sup> (21) FIGURE 6. Reward function of the transient agent with a target temperature of 4 <sup>◦</sup> C, showing (left) the temperature reward and (right) the work reward. The _rt_ <sup>_Temp_</sup> The _rt_ <sup>_Temp_</sup> component is related to the convergence of tem perature to the target value. As _Tt_ approaches _T_ <sup>_target_</sup>, _rt_ <sup>_Temp_</sup> _t_ converges to 0. In contrast, _rt_ <sup>_Temp_</sup> converges to −( _ρ_ 1 + converges to 0. In contrast, _rt_ <sup>_Temp_</sup> converges to −( _ρ_ 1 + _ρ_ 3) as _Tt_ gets further away from _T_ <sup>_target_</sup> . Otherwise, the _rt_ <sup>_Work_</sup> component is related to the work done by the compressor and linearly decreases as the work _Wt_ increases. _Wt_ is linearly mapped to [−( _ρ_ 1 + _ρ_ 3), 0] using its minimum and maximum values, which are 500 W and 4000 W. The reason for mapping temperature and work rewards to the same range is to prevent any reward from being overly dominant. In a multi-objective problem, an imbalance between reward components may cause some objectives to be ignored in training (Fig. 6). Each agent’s reward function is designed to satisfy the objectives of the transient phase (Eq. 1). In the compressor agent case, the reward _rt_ <sup>1</sup> <sup>consists of a sum of</sup> <sup>_r_</sup> _t_ <sup>_Temp_</sup> and _rt_ <sup>_Work_</sup> in order to reach the target temperature while minimizing the work. To reflect the time constraint, the agent receives a large negative penalty _ρ_ 5 if the model fails to reach the target temperature by the end of the episode. On the other hand, _rt_ <sup>2</sup> <sup>is the same as</sup> <sup>_r_</sup> _t_ <sup>_Work_</sup> . The EXV only takes the work reward because SC is not considered in the transient phase and the EXV control value has only a subtle influence on the change in temperature. It is worth noting that the objective of the transient phase is to meet the target temperature, not the target SC. One important thing to address in the transient phase is the sign of the rewards. Contrary to the steady phase, every reward in the transient phase has a negative value. With a negative reward, the total episode reward decreases as the length of the episode increases. Therefore, negative rewards force the agent to balance between terminating the episode early and minimizing the work, which paves the way to achieve our objective function in Eq. 1. This property of negative rewards is used to reflect the objective of faster convergence. 2) REWARD FUNCTION FOR THE STEADY AGENT The reward function for the steady agent in Eq. 22 is based on Eq. 3 from Section II. This reward function is designed to be two-fold due to the trajectory of the temperature. As the steady phase comes after the transient phase (Fig. 1), the steady agent should be trained not only in the steady phase but also in the transient phase, and thus should have two The shapes of the temperature and work reward for the steady agent are the same as the model for the transient agent. They are only translated to positive values. Here, _rt_ <sup>_Temp_</sup> converges to _ρ_ 1+ _ρ_ 3 as _Tt_ approaches _T_ <sup>_target_</sup> and converges to 0 otherwise. And _rt_ <sup>_Work_</sup> is linearly mapped to [0, _ρ_ 1+ _ρ_ 3] using _t_ <sup>1</sup> <sup>consists of a sum of</sup> <sup>_r_</sup> _t_ <sup>_Temp_</sup> _t_ <sup>_Temp_</sup> and _rt_ <sup>_Work_</sup> FIGURE 7. Subcool reward function for steady phase with a target degree of subcool − 10 <sup>◦</sup> C. reward functions. When the temperature is far from its target ( _Ct_ = 0, transient phase), the reward function is designed to reach the target temperature as fast as possible to enter the steady phase. Then after reaching the target temperature ( _Ct_ = 1, steady phase), the reward function changes to meet the objectives of the steady phase (Eq. 3). Compared to the transient agent, an additional reward component _rt_ <sup>_�_</sup> <sup>is</sup> used for the convergence of the target SC in this case. Also, the sign of both reward components for the steady agent is positive, for the following reasons. As the objective of the steady phase is to maintain the target temperature and SC in a stable manner, the steady agent should be enhanced to stay in the desired state as long as possible. With a positive reward, we can compensate the agent as much as necessary. Note that composing the two reward functions of this agent with a single sign is important; if negative and positive rewards are mingled, the agent will struggle to understand the true effect of the action. Therefore, the positive reward for the steady agent’s transient phase is applied, differing from the negative reward for the transient agent. _rt_ <sup>_Temp_</sup> = _ρ_ 1 _e_ <sup>−</sup> <sup>_ρ_</sup> <sup>2·(</sup> <sup>_Tt_</sup> <sup>−</sup> <sup>_T target_</sup> <sup>)2</sup> + _ρ_ 3 _e_ <sup>−</sup> <sup>_ρ_</sup> <sup>4·(</sup> <sup>_Tt_</sup> <sup>−</sup> <sup>_T target_</sup> <sup>)2</sup> _t_ <sup>2</sup> <sup>is the same as</sup> <sup>_r_</sup> _t_ <sup>_Work_</sup> _ρ_ <u>1</u> + _ρ_ <u>3</u> _rt_ <sup>_Work_</sup> = 500 − 4000 - _Wt_ - 4000 _rt_ <sup>_�_</sup> <sup>=</sup> <sup>_ρ_</sup> <sup>1</sup> <sup>_e_</sup> <sup>−</sup> <sup>_ρ_</sup> <sup>2·(</sup> <sup>_�t_</sup> <sup>−</sup> <sup>_�target_</sup> <sup>)2</sup> + _ρ_ 3 _e_ <sup>−</sup> <sup>_ρ_</sup> <sup>4·(</sup> <sup>_�t_</sup> <sup>−</sup> <sup>_�target_</sup> <sup>)2</sup> _rt_ <sup>1</sup> <sup>=</sup> - _rt_ <sup>_Temp_</sup> _rt_ <sup>_Temp_</sup> _,_ if _Ct_ = 0 _rt_ <sup>_Temp_</sup> + _rt_ <sup>_Work_</sup> _,_ if _Ct_ = 1 _t_ <sup>_Temp_</sup> + _rt_ <sup>_Work_</sup> _t_ <sup>_Work_</sup> _,_ if _Ct_ = 1 _rt_ <sup>2</sup> <sup>=</sup> - _rt_ <sup>_Work_</sup> _rt_ <sup>_Work_</sup> _,_ if _Ct_ = 0 _rt_ <sup>_�,_</sup> if _Ct_ = 1 _t_ (22) _t_ <sup>_�,_</sup> if _Ct_ = 1 FIGURE 8. Reward function of the steady agent with a target temperature of 4 <sup>◦</sup> C, showing (left) the temperature reward and (right) the work reward. TABLE 1. Model hyperparameter table. <u>Algorithm 1</u> <u>Training Algorithm</u> 1: for each component _i_ do 2: Initialize critic network parameters _θ_ 1 <sup>_i_</sup> <sup>_, θ_</sup> 2 <sup>_i_</sup> <sup>and</sup> <sup>actor</sup> network parameter _φ_ <sup>_i_</sup> 3: Initialize target critic network parameters _θ_ <sup>¯</sup> 1 <sup>_i_</sup> Initialize target critic network parameters _θ_ <sup>¯</sup> 1 <sup>_i_</sup> ← _θ_ 1 <sup>_i_</sup> <sup>_,_</sup> <sup>_θ_</sup> <sup>¯</sup> 2 <sup>_i_</sup> <sup>←</sup> <sup>_θ_</sup> 2 <sup>_i_</sup> the minimum and maximum values of _Wt_ . Similar to _rt_ <sup>_Temp_</sup>, _rt_ <sup>_�_</sup> <sup>converges to</sup> <sup>_ρ_</sup> <sup>1</sup> <sup>+</sup> <sup>_ρ_</sup> <sup>3 as</sup> <sup>_�t_</sup> <sup>reaches</sup> <sup>_�target_</sup> <sup>and converges to</sup> _θ_ 1 <sup>_i_</sup> <sup>_,_</sup> <sup>_θ_</sup> <sup>¯</sup> 2 <sup>_i_</sup> <sup>←</sup> <sup>_θ_</sup> 2 <sup>_i_</sup> 4: Initialize alpha _α_ <sup>_i_</sup> _rt_ <sup>_�_</sup> <sup>converges to</sup> <sup>_ρ_</sup> <sup>1</sup> <sup>+</sup> <sup>_ρ_</sup> <sup>3 as</sup> <sup>_�t_</sup> <sup>reaches</sup> <sup>_�target_</sup> <sup>and converges to</sup> 0 otherwise (Fig. 7). Before reaching the target temperature ( _Ct_ = 0), _rt_ <sup>1</sup> <sup>is</sup> <sup>the</sup> <sup>same</sup> <sup>as</sup> <sup>_r_</sup> _t_ <sup>_Temp_</sup> . After reaching the target temperature ( _Ct_ = 1), the compressor agent receives both _rt_ <sup>_Temp_</sup> and _rt_ <sup>_Work_</sup> . The reason for adding _rt_ <sup>_Work_</sup> when _Ct_ = 1 is to train the steady agent to keep the temperature in the desired range (| _�T_ | _<_ _λ_ ). As _rt_ <sup>_Work_</sup> is positive, _rt_ <sup>1</sup> <sup>is always</sup> much higher when the temperature is in the desired range, from which we can be assured that the convergence of the temperature has a higher priority than efficiency. In this case, _rt_ <sup>2</sup> <sup>is</sup> <sup>the</sup> <sup>same</sup> <sup>as</sup> <sup>_r_</sup> _t_ <sup>_Work_</sup> before reaching the target temperature. After reaching target temperature, the EXV agent receives _rt_ <sup>_�_</sup> <sup>, with which it is trained to reach the</sup> target SC. When the target SC is unknown, the EXV agent can be trained with _rt_ <sup>_Work_</sup> after reaching the target temperature ( _Ct_ = 1). Here, the EXV agent is trained to find the action that minimizes the work while maintaining the temperature. As a byproduct, the resultant SC can be used as a target SC value. An agent trained without target SC is validated in Section IV-2. 5: Initialize experience replay memory _M_ <sup>_i_</sup> 6: end for _t_ <sup>1</sup> <sup>is</sup> <sup>the</sup> <sup>same</sup> <sup>as</sup> <sup>_r_</sup> _t_ <sup>_Temp_</sup> 7: for each iteration do 8: Obtain the state _s_ <sup>1</sup> 0 _φ_ <sup>1(</sup> <sup>_a_</sup> _t_ <sup>1</sup> _t_ <sup>_Temp_</sup> and _rt_ <sup>_Work_</sup> _t_ <sup>_Work_</sup> . The reason for adding _rt_ <sup>_Work_</sup> 8: Obtain the state _s_ <sup>1</sup> 0 <sup>_, s_</sup> <sup>2</sup> 0 9: for each environment step do 10: Obtain control actions _a_ <sup>1</sup> _t_ <sup>1</sup> _t_ ∼ _πφ_ <sup>1</sup> _t_ <sup>1</sup> | _s_ <sup>1</sup> _t_ <sup>1</sup> _t_ <sup>)</sup> <sup>_, a_</sup> _t_ <sup>2</sup> <sup>2</sup> _t_ <sup>)</sup> _t_ <sup>1(</sup> <sup>_s_</sup> _t_ <sup>1</sup> <sup>_,_</sup> _t_ <sup>_Work_</sup> is positive, _rt_ <sup>1</sup> 11: Calculate rewards _rt_ <sup>1</sup> 11: Calculate rewards _rt_ <sup>1(</sup> <sup>_s_</sup> _t_ <sup>1</sup> <sup>_, a_</sup> <sup>1</sup> _t_ <sup>)</sup> <sup>_, r_</sup> _t_ <sup>2(</sup> <sup>_s_</sup> _t_ <sup>2</sup> <sup>_, a_</sup> <sup>2</sup> _t_ <sup>)</sup> 12: Obtain new states _s_ <sup>1</sup> _t_ +1 <sup>∼</sup> <sup>_p_</sup> <sup>(</sup> <sup>_s_</sup> <sup>1</sup> _t_ +1 <sup>|</sup> <sup>_s_</sup> _t_ <sup>1</sup> Obtain control actions _a_ <sup>1</sup> _t_ ∼ _πφ_ <sup>1(</sup> <sup>_a_</sup> _t_ <sup>1</sup> | _s_ <sup>1</sup> _t_ <sup>)</sup> <sup>_, a_</sup> _t_ <sup>2</sup> ∼ _πφ_ <sup>2(</sup> <sup>_a_</sup> _t_ <sup>2</sup> <sup>|</sup> <sup>_s_</sup> <sup>2</sup> _t_ <sup>)</sup> _φ_ <sup>2(</sup> <sup>_a_</sup> _t_ <sup>2</sup> _t_ <sup>2</sup> <sup>|</sup> <sup>_s_</sup> <sup>2</sup> _t_ _t_ <sup>1</sup> <sup>_, a_</sup> <sup>1</sup> _t_ <sup>1</sup> _t_ <sup>)</sup> <sup>_, r_</sup> _t_ <sup>2</sup> <sup>_s_</sup> <sup>1</sup> _t_ +1 <sup>|</sup> <sup>_s_</sup> _t_ <sup>1</sup> <sup>_,_</sup> _t_ <sup>2(</sup> <sup>_s_</sup> _t_ <sup>2</sup> _t_ <sup>2</sup> <sup>_, a_</sup> <sup>2</sup> _t_ _t_ <sup>1</sup> <sup>_, a_</sup> <sup>1</sup> _t_ <sup>1</sup> _t_ <sup>)</sup> <sup>_, s_</sup> <sup>2</sup> _t_ Obtain new states _s_ <sup>1</sup> _t_ +1 <sup>∼</sup> <sup>_p_</sup> <sup>(</sup> <sup>_s_</sup> <sup>1</sup> _t_ +1 <sup>|</sup> <sup>_s_</sup> _t_ <sup>1</sup> <sup>_, a_</sup> <sup>1</sup> _t_ <sup>)</sup> <sup>_, s_</sup> <sup>2</sup> _t_ +1 <sup>∼</sup> _p_ ( _s_ <sup>2</sup> _t_ +1 <sup>|</sup> <sup>_s_</sup> _t_ <sup>2</sup> <sup>_, a_</sup> <sup>2</sup> _t_ <sup>)</sup> <sup>2</sup> _t_ +1 <sup>|</sup> <sup>_s_</sup> _t_ <sup>2</sup> <sup>_,_</sup> _t_ <sup>2</sup> <sup>_, a_</sup> <sup>2</sup> _t_ <sup>1</sup> _t_ +1 <sup>∼</sup> <sup>_p_</sup> <sup>(</sup> <sup>_s_</sup> <sup>1</sup> _t_ + In this case, _rt_ <sup>2</sup> _t_ <sup>2</sup> <sup>is</sup> <sup>the</sup> <sup>same</sup> <sup>as</sup> <sup>_r_</sup> _t_ <sup>_Work_</sup> _p_ ( _s_ <sup>2</sup> _t_ +1 <sup>|</sup> <sup>_s_</sup> _t_ <sup>2</sup> <sup>_, a_</sup> <sup>2</sup> _t_ <sup>)</sup> 13: for each component _i_ do 14: _M_ <sup>_i_</sup> ← _M_ <sup>_i_</sup> ∪ ( _s_ <sup>_i_</sup> _t_ <sup>_, ai_</sup> _t_ <sup>_, r_</sup> _t_ <sup>_i_</sup> 14: _M_ <sup>_i_</sup> ← _M_ <sup>_i_</sup> ∪ ( _s_ <sup>_i_</sup> _t_ <sup>_, ai_</sup> _t_ <sup>_, r_</sup> _t_ <sup>_i, si_</sup> _t_ +1 <sup>)</sup> 15: if _Msize_ ≥ _Bsize_ then 16: Randomly sample _k_ transitions from experience replay memory _M_ <sup>_i_</sup> <sup>_i_</sup> _t_ <sup>_, ai_</sup> _t_ <sup>_i_</sup> _t_ <sup>_, r_</sup> _t_ <sup>_i_</sup> _t_ <sup>_i, si_</sup> _t_ _j_ <sup>_i_</sup> <sup>←</sup> <sup>min</sup> _θ_ <sup>_i JQ_</sup> <sup>(</sup> <sup>_θ_</sup> _j_ <sup>_i_</sup> 17: Update _θj_ <sup>_i_</sup> _j_ <sup>_i_</sup> <sup>) for</sup> <sup>_j_</sup> <sup>∈</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> 18: Update _φ_ <sup>_i_</sup> ← min _φi Jπ_ ( _φ_ <sup>_i_</sup> ) 19: Update _α_ <sup>_i_</sup> ← min _αi J_ ( _α_ <sup>_i_</sup> ) _j_ <sup>_i_</sup> <sup>←</sup> <sup>_τθ_</sup> _j_ <sup>_i_</sup> 20: Update _θ_ <sup>¯</sup> _j_ <sup>_i_</sup> _j_ <sup>_i_</sup> <sup>+ (1 −</sup> <sup>_τ_</sup> <sup>) ¯</sup> <sup>_θ_</sup> _j_ <sup>_i_</sup> _E._ _MODEL ARCHITECTURE AND TRAINING PROCESS_ Fig. 9 illustrates our MADRL training framework for the HVAC system control. First, both compressor and EXV agents receive the tuple ( _st_ _, at_ _, st_ +1) by interacting with the HVAC simulator. Using the tuple, the reward functions of the compressor and EXV agents calculate _rt_ <sup>1</sup> <sup>and</sup> <sup>_r_</sup> 2 <sup>_t_</sup> <sup>, respectively,</sup> and store the transition ( _st_ _, at_ _, rt_ _, st_ +1) in their experience replay memory. Then, a mini-batch of k transitions are randomly sampled from each experience replay memory and given to each network. The networks output the current action value, current Q-value, and target Q-value for each agent. These outputs are passed to multiple loss functions that calculate actor loss, critic loss, and _α_ loss. The parameters of each network are updated using the gradient of the corresponding loss. After the training, in the inference, the actor network is separated and takes the state as an input and outputs control values for the compressor and EXV. Both the compressor and EXV agents are based on SAC [29]. The network architecture of our model is as 20: Update _θ_ <sup>¯</sup> _j_ <sup>_i_</sup> <sup>←</sup> <sup>_τθ_</sup> _j_ <sup>_i_</sup> <sup>+ (1 −</sup> <sup>_τ_</sup> <sup>) ¯</sup> <sup>_θ_</sup> _j_ <sup>_i_</sup> <sup>for</sup> <sup>_j_</sup> <sup>∈</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> 21: end if 22: end for 23: end for 24: <u>end for</u> follows. Both agents have identical structures except for the size of their inputs. As stated in Section III-B, the EXV agent receives an additional state _Ct_ . Similar to the original SAC paper, our model uses twin Q-networks with a target smoothing coefficient _τ_ of 0.01. Both the actor and critic of the agents are fully connected networks with 2 hidden layers with 50 neurons and use ReLU as the activation function. The learning rate _η_ is 0.0003 for the critic, actor, and entropy. For the stability of the training, the gradient is clipped at 5. Also, the Adam optimizer [42] is used to update the parameters. More details about the model hyperparameters are given in Table 1. The pseudocode of the training process is described in Algorithm 1. The MADRL training algorithm first starts by initializing the neural networks. In line 2, the parameters of FIGURE 9. MADRL training framework. the actor and critic networks use Xavier initialization. Then the parameters of the target critic network are synchronized with the critic network. Also, the coefficient of entropy _α_ and experience replay memory M are initialized. The training process consists of multiple nested loops, where the outer loop denotes the training episode for each iteration, the second loop denotes the training step of each episode, and the innermost loop denotes the training of each component. In line 8, the initial states _s_ <sup>1</sup> 0 <sup>_, s_</sup> <sup>2</sup> 0 <sup>are</sup> obtained from the HVAC simulator. In lines 10–12, using the current state _st_, the action, reward, and next state are obtained, which forms the transition sample ( _st_ _, at_ _, rt_ _, st_ +1) for every time step. In line 14, the transition sample is stored in the replay memory, and in lines 15–19, a mini-batch is randomly sampled from the replay memory and the networks are updated. In line 20, the target critic network is soft-updated with hyperparameter _τ_ . IV. EXPERIMENTS _A._ _EXPERIMENTAL SETUP_ In this section, the MADRL-based control algorithm is validated for the EV HVAC system. The HVAC system is formulated with the commercial software GT-SUITE <sup>⃝R</sup> [21], which has been widely employed by vehicle manufacturers and component suppliers. As one of the key aims of this research is to facilitate our implementation in an industrial setup, it is natural to choose a widely used industrial simulator. In our experiment, the vehicle thermal system circuit is implemented as explained in Section II. For experiments, the thermal system circuit requires additional conditions such as vehicle speed and ambient temperature; these conditions are chosen here based on a common scenario using the A/C circuit. In particular, the target evaporator outlet temperature, which is the main control objective, is set within a range TABLE 2. Experimental conditions. of 4−12 <sup>◦</sup> C with an interval of 2 degrees. The time step unit is 3 seconds, and one episode has 200 time steps. For each setpoint temperature experiment, RL agents are trained 500 episodes each. Details of the conditions are summarized in Table 2. _B._ _EXPERIMENTAL RESULTS_ As explained in Section III, the transient and steady agents of the MADRL-based control model are trained separately. In this section, we evaluate our model in terms of the temperature convergence and the work efficiency. Also, we show that our method works well without a target DOS and can even find an effective target DOS. Additionally, we compare the MADRL-based control model with conventional PID control. 1) CONVERGENCE AND EFFICIENCY EVALUATION The performance of temperature convergence is evaluated differently for each phase. In the transient phase, the ability to reach the target temperature within a limited time is tested (Fig. 10). The time limit ( _tlimit_ ) is 40 steps, equivalent to 120 s. For every target temperature, the transient agent succeeds to reach the target within the given time. In the steady phase, the ability to reach both target temperature and SC is evaluated. Fig. 11 shows the case when the target temperature is 6 <sup>◦</sup> C; the rest of the experimental results are presented in Fig. 12. FIGURE 10. Evaluation of transient agent in transient phase. TABLE 3. Ratio of work done between different methods in the transient phase (until _Ct_ = 1). The target DOS corresponding to the target temperatures is obtained by domain experts. In Fig. 11, we can see that the trajectory of the MADRL control model with a SC target converges to the target temperature and the target SC. As a result, the control values reach almost the same control values as PID control by the end. For every experiment in Fig. 12, the agents succeed to reach the target temperature and target SC with less than 0.5 <sup>◦</sup> C error. In terms of efficiency, we evaluate the work done by each control model in each phase. In Table 3, the work done by the MADRL control model is compared with PID control for the transient phase. Comparing the result of the transient agent FIGURE 11. Comparison of MADRL steady agent and PID control trajectory for 6 <sup>◦</sup> C. and PID control, the MADRL control model significantly improves the efficiency. The transient agent generally shows better performance in the lower temperature zone where the FIGURE 12. Evaluation of steady agent with subcool target, without subcool target and PID control in steady phase: red dash line is RL control without subcool, blue dot line is PID control, solid black line is RL control with subcool, and black dash dot line is target subcool. TABLE 4. Time steps of each method in the transient phase (until _Ct_ = 1). Final refers to the final settling time. cooling load is greater than in the high temperature zone. In particular, when the target temperature is 4 <sup>◦</sup> C, the transient agent consumes only 11% of the energy compared to that by PID control. Such performance improvement is largely due to faster convergence. As shown in Fig. 10, Fig. 12, and Table 4, PID control converges to the target temperature more slowly than the transient agent. One of the reasons for this slow convergence is an overshoot that is easily observable in the TABLE 5. Comparison of work in the steady phase. PID control. The overshoot of control is observable not only in the temperature but also in the SC. The overshoot of SC also contributes to the inefficiency of the system, where the proper SC promises a better COP. Conversely, the trajectories of the transient agent show little or no overshoot. When we compare the work done between the steady agent and the transient agent in Table 3, the transient agent shows better efficiency, indicating that the reward functions are working as intended. As the transient agent is penalized if the work done by the compressor is high, the transient agent TABLE 6. Grid search result. utilizes the compressor more mildly to use less work. Lastly, in the steady phase, the steady agent trained with the SC target is compared with PID control in Table 5. Specifically, the work values are estimated based on the average of the last 10 steps of the trajectory in the steady phase. The steady agent shows a similar performance compared to PID control. This result is consistent with the trajectory of both methods, as they converge to the same temperature and DOS. 2) TRAINING THE MADRL MODEL WITHOUT A SUBCOOLING TARGET As mentioned in Section III, conventional PID control requires a target DOS for feedback control, whereas the MADRL-based control model can be trained without a target DOS. Without a SC target, the agent is expected to reach the target temperature while minimizing the work. Since the target DOS is only used in the steady phase, this experiment is only for the steady agent. We first validate if the model successfully reaches the target temperature. In Fig. 12, for every case, the agent reaches the target temperature successfully. In Table 5, we compare the work done by the MADRL control model trained without a SC target and that by PID control. Our model shows comparable efficiency for all cases, averaging 99% efficiency compared to PID control. Especially when the target temperature is 4 <sup>◦</sup> C, the MADRL control model outperforms by 8%. Also, it is worth noting that the model converges to SC similar to PID control in most cases. Even when the converged DOS differ, the control model shows reasonable efficiency, varying by less than 5% from the PID control results even in the worst case. The DOS targets used in this work are optimal values found by domain experts, and finding them requires wide experience and numerous heuristics. If the DOS targets are not optimal, the performance gap between PID control and our method will be even greater. For further validation, we conducted a brief grid search (Table 6). The grid search is executed by maintaining a fixed set of actions until observations converge. The resolutions of the actions are 1000 rpm and 0.2 mm for the compressor and EXV, respectively. Each grid search result is grouped by the final temperature. In the results, each group contains a final temperature value differing less than 1 <sup>◦</sup> C from the target temperatures of our experiment. In Table 5, the best grid search results are selected that satisfy the convergence condition (| _�T_ | ≤ 0 _._ 5). Compared to the grid search results, both the MADRL control model and PID control achieve greater efficiency for all target temperatures. In fact, the grid search results show that finding the appropriate DOS for each temperature is difficult. For target temperatures of 4 and 6 <sup>◦</sup> C, less than 3 combinations of actions are found to reach the desired temperature. Applying a finer resolution would result in better performance but also increase the cost of computation. Moreover, if the number of actuators increases, the cost increases exponentially. V. CONCLUSION In this paper, we proposed a MADRL-based control method for an EV HVAC system. The key conclusions of this work are as follows: First, through the multi-agent architecture, various objectives such as temperature, subcooling and efficiency can be simultaneously set. Second, the proposed method reduce the energy consumption in the transient phase to 53% of the PID control. Third, experiment show that it is possible to control with a similar level of efficiency without optimal setpoint subcooling only through the reward function. Furthermore, the converged SC values can be used as new setpoints. Our study was validated in the A/C mode under a simulated environment. In future research, we will validate our model in the heat pump mode with more actuators. Also, we expect to generalize our model in a real EV with minimum tuning. ACKNOWLEDGMENT _(Sungho_ _Joo,_ _Dongmin_ _Lee,_ _and_ _Minseop_ _Kim_ _contributed_ _equally to this work.)_ REFERENCES [1] W. Chang, M. Lukasiewycz, S. Steinhorst, and S. Chakraborty, ‘‘Dimensioning and configuration of EES systems for electric vehicles with boundary-conditioned adaptive scalarization,’’ in _Proc._ _Int._ _Conf._ _Hardw./Softw. Codesign Syst. Synth._, Sep. 2013, pp. 1–10. [2] J. Pouladi, M. B. B. Sharifian, and S. Soleymani, ‘‘Determining charging load of PHEVs considering HVAC system and analyzing its probabilistic impacts on residential distribution network,’’ _Electr._ _Power_ _Syst._ _Res._, vol. 141, pp. 300–312, Dec. 2016. [3] K. Vatanparvar and M. A. Al Faruque, ‘‘Battery lifetime-aware automotive climate control for electric vehicles,’’ in _Proc. 52nd Annu. Design Autom._ _Conf._, Jun. 2015, pp. 1–6. [4] T. Zhang, C. Gao, Q. Gao, G. Wang, M. Liu, Y. Guo, C. Xiao, and Y. Y. Yan, ‘‘Status and development of electric vehicle integrated thermal management from BTM to HVAC,’’ _Appl._ _Thermal_ _Eng._, vol. 88, pp. 398–409, Sep. 2015. [5] E. Paffumi, M. Otura, M. Centurelli, R. Casellas, A. Brenner, and A. Jahn, ‘‘Energy consumption, driving range and cabin temperature performances at different ambient conditions in support to the design of a user-centric efficient electric vehicle: The quiet project,’’ in _Proc. 14th SDEWES Conf._, Dubrovnik, Croatia, 2019, pp. 1–6. [6] H. Nasution and M. N. W. Hassan, ‘‘Potential electricity savings by variable speed control of compressor for air conditioning systems,’’ _Clean_ _Technol. Environ. Policy_, vol. 8, no. 2, pp. 105–111, May 2006. [7] J. D. Zhang, G. H. Qin, B. Xu, H. S. Hu, and Z. X. Chen, ‘‘Study on automotive air conditioner control system based on incremental-PID,’’ _Adv._ _Mater. Res._, vols. 129–131, pp. 17–22, Aug. 2010. [8] B. C. Ng, I. Z. M. Darus, H. M. Kamar, M. N. M. Lazin, and M. Hussein, ‘‘Dynamic modeling of an automotive air conditioning system and an auto tuned PID controller using extremum seeking algorithm,’’ in _Proc._ _IEEE_ _Symp. Comput. Informat. (ISCI)_, Apr. 2013, pp. 92–97. [9] G. Pottker and P. S. Hrnjak, ‘‘Effect of condenser subcooling of the performance of vapor compression systems: Experimental and numerical investigation,’’ Tech. Rep., 2012. [10] L. Xu and P. S. Hrnjak, ‘‘Potential of controlling subcooling in residential A/C system,’’ Tech. Rep., 2014. [11] R. S. Sutton and A. G. Barto, _Reinforcement_ _Learning:_ _An_ _Introduction_ . Cambridge, MA, USA: MIT Press, 2018. [12] M. J. Kasbi, B. Sallans, and G. Russ, ‘‘A new approach in controlling the compressor of the vehicle air conditioning system,’’ in _Proc. IEEE Intell._ _Vehicles Symp._, Jun. 2006, pp. 484–491. [13] J. Brusey, D. Hintea, E. Gaura, and N. Beloe, ‘‘Reinforcement learning based thermal comfort control for vehicle cabins,’’ _Mechatronics_, vol. 50, pp. 413–421, Apr. 2018. [14] T. Wei, Y. Wang, and Q. Zhu, ‘‘Deep reinforcement learning for building HVAC control,’’ in _Proc._ _54th_ _Annu._ _Design_ _Autom._ _Conf._, Jun. 2017, pp. 1–6. [15] Y. Wang, V. Kirubakaran, and H. Biao, ‘‘A long-short term memory recurrent neural network based reinforcement learning controller for office heating ventilation and air conditioning systems,’’ _Processes_, vol. 5, no. 3, p. 46, Sep. 2017. [16] N. K. Dhar, N. K. Verma, and L. Behera, ‘‘Adaptive critic-based event triggered control for HVAC system,’’ _IEEE Trans. Ind. Informat._, vol. 14, no. 1, pp. 178–188, Jan. 2018. [17] Y. Chen, L. K. Norford, H. W. Samuelson, and A. Malkawi, ‘‘Optimal control of HVAC and window systems for natural ventilation through reinforcement learning,’’ _Energy Buildings_, vol. 169, pp. 195–205, Jun. 2018. [18] Z. Zhang, A. Chong, Y. Pan, C. Zhang, S. Lu, and K. PohLam, ‘‘A deep reinforcement learning approach to using whole building energy model for HVAC optimal control,’’ in _Proc._ _Building_ _Perform._ _Anal._ _Conf._, vol. 3, 2018, pp. 22–23. [19] G. Gao, J. Li, and Y. Wen, ‘‘DeepComfort: Energy-efficient thermal com fort control in buildings via reinforcement learning,’’ _IEEE Internet Things_ _J._, vol. 7, no. 9, pp. 8472–8484, Sep. 2020. [20] L. Yu, Y. Sun, Z. Xu, C. Shen, D. Yue, T. Jiang, and X. Guan, ‘‘Multi-agent deep reinforcement learning for HVAC control in commercial buildings,’’ _IEEE Trans. Smart Grid_, vol. 12, no. 1, pp. 407–419, Jan. 2021. [21] _GT-SUITE_ <sup>®</sup>, Gamma Technologies, Westmont, IL, USA, 2020. [22] J. Glos, F. Solc, and P. Vaclavek, ‘‘Model-based electronic expansion valve feed-forward control for electrified automotive vapor compression refrigeration system,’’ in _Proc. 46th Annu. Conf. IEEE Ind. Electron. Soc._, Oct. 2020, pp. 2050–2056. [23] E. Hervas-Blasco, M. Pitarch, E. Navarro-Peris, and J. M. Corberán, ‘‘Study of different subcooling control strategies in order to enhance the performance of a heat pump,’’ _Int._ _J._ _Refrig._, vol. 88, pp. 324–336, Apr. 2018. [24] M. Pitarch, E. Hervas-Blasco, E. Navarro-Peris, J. Gonzálvez-Maciá, and J. M. Corberán, ‘‘Evaluation of optimal subcooling in subcritical heat pump systems,’’ _Int. J. Refrig._, vol. 78, pp. 18–31, Jun. 2017. [25] V. Mnih, K. Kavukcuoglu, D. Silver, A. A. Rusu, J. Veness, M. G. Bellemare, A. Graves, M. Riedmiller, A. K. Fidjeland, and G. Ostrovski, ‘‘Human-level control through deep reinforcement learning,’’ _Nature_, vol. 518, no. 7540, pp. 529–533, 2015. [26] V. Mnih, A. P. Badia, M. Mirza, A. Graves, T. Lillicrap, T. Harley, D. Silver, and K. Kavukcuoglu, ‘‘Asynchronous methods for deep reinforcement learning,’’ in _Proc. Int. Conf. Mach. Learn._, 2016, pp. 1928–1937. [27] T. P. Lillicrap, J. J. Hunt, A. Pritzel, N. Heess, T. Erez, Y. Tassa, D. Silver, and D. Wierstra, ‘‘Continuous control with deep reinforcement learning,’’ 2015, _arXiv:1509.02971_ . [28] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, ‘‘Proxi mal policy optimization algorithms,’’ 2017, _arXiv:1707.06347_ . [29] T. Haarnoja, A. Zhou, K. Hartikainen, G. Tucker, S. Ha, J. Tan, V. Kumar, H. Zhu, A. Gupta, P. Abbeel, and S. Levine, ‘‘Soft actor-critic algorithms and applications,’’ 2018, _arXiv:1812.05905_ . [30] B. D. Ziebart, _Modeling Purposeful Adaptive Behavior With the Principle_ _of Maximum Causal Entropy_ . Pittsburgh, PA, USA: Carnegie Mellon Univ., 2010. [31] I. Grondman, L. Busoniu, G. A. D. Lopes, and R. Babuska, ‘‘A survey of actor-critic reinforcement learning: Standard and natural policy gradients,’’ _IEEE_ _Trans._ _Syst.,_ _Man,_ _Cybern.,_ _C,_ _Appl._ _Rev._, vol. 42, no. 6, pp. 1291–1307, Nov. 2012. [32] P. Hernandez-Leal, B. Kartal, and E. Taylor, ‘‘A survey and critique of multiagent deep reinforcement learning,’’ _Auto. Agents Multi-Agent Syst._, vol. 33, pp. 750–797, Oct. 2019. [33] T. T. Nguyen, N. D. Nguyen, and S. Nahavandi, ‘‘Deep reinforce ment learning for multiagent systems: A review of challenges, solutions, and applications,’’ _IEEE_ _Trans._ _Cybern._, vol. 50, no. 9, pp. 3826–3839, Sep. 2020. [34] S. Gronauer and K. Diepold, ‘‘Multi-agent deep reinforcement learning: A survey,’’ _Artif. Intell. Rev._, vol. 55, pp. 895–943, Feb. 2022. [35] B. Baker, I. Kanitscheider, T. Markov, Y. Wu, G. Powell, B. McGrew, and I. Mordatch, ‘‘Emergent tool use from multi-agent autocurricula,’’ 2019, _arXiv:1909.07528_ . [36] C. Berner, G. Brockman, B. Chan, V. Cheung, P. Dębiak, C. Dennison, D. Farhi, Q. Fischer, S. Hashme, and C. Hesse, ‘‘Dota 2 with large scale deep reinforcement learning,’’ 2019, _arXiv:1912.06680_ . [37] O. Vinyals et al., ‘‘Grandmaster level in StarCraft II using multi-agent reinforcement learning,’’ _Nature_, vol. 575, no. 7782, pp. 350–354, 2019. [38] L. Busoniu, R. Babuska, and S. B. De, ‘‘A comprehensive survey of multiagent reinforcement learning,’’ _IEEE Trans. Syst., Man, Cybern., C,_ _Appl. Rev._, vol. 38, no. 2, pp. 156–172, Feb. 2008. [39] M. L. Littman, ‘‘Markov games as a framework for multi-agent rein forcement learning,’’ in _Machine_ _Learning_ _Proceedings_ . Amsterdam, The Netherlands: Elsevier, 1994, pp. 157–163. [40] Q. Zhang, S. Stockar, and M. Canova, ‘‘Energy-optimal control of an automotive air conditioning system for ancillary load reduction,’’ _IEEE_ _Trans. Control Syst. Technol._, vol. 24, no. 1, pp. 67–80, Jan. 2016. [41] Y. Xie, Z. Liu, K. Li, J. Liu, Y. Zhang, D. Dan, C. Wu, P. Wang, and X. Wang, ‘‘An improved intelligent model predictive controller for cooling system of electric vehicle,’’ _Appl._ _Thermal_ _Eng._, vol. 182, Jan. 2021, Art. no. 116084. [42] D. P. Kingma and J. Ba, ‘‘Adam: A method for stochastic optimization,’’ 2014, _arXiv:1412.6980_ . SUNGHO JOO received the B.S. and M.S. degrees in mechanical engineering from Seoul National University (SNU), where he studied the application and analysis of deep learning into physics-based simulations. As part of his graduate studies in the Simulation-Driven Structure Design Laboratory, SNU, he conducted research on deep learning-based industrial image alignment with the Samsung Semiconductor Laboratory. He is currently a Machine Learning Engineer with MakinaRocks. His main research interest includes applications of machine learning in real world problems. DONGMIN LEE received the B.S. degree in computer science and engineering from Hanyang University. He is currently a Machine Learning Engineer with MakinaRocks. Prior to joining MakinaRocks, he worked as a Research Assistant Intern at the Robot Learning Laboratory and the Biointelligence Laboratory, Seoul National University. He is currently interested in applying machine learning technology and MLOps technology to real world problems. MINSEOP KIM received the B.S. and M.S. degrees in computer science from Sogang University. He is currently a Machine Learning Research Engineer with MakinaRocks. Prior to joining MakinaRocks, he was employed at a Biotech Startup as a Research Intern, developing robot control algorithms with reinforcement learning. He is currently interested in solving issues in various sectors by applying reinforcement learning to realworld environments. TAEHO LEE received the B.S. degree in electronics and communications engineering and the M.S. degree in computer science from Hanyang University, in 2013 and 2015, respectively. Among his ten year research career, he has been working as a Senior Machine Learning Research Engineer with MakinaRocks, since 2021. Prior to MakinaRocks, he worked as a Machine Learning Specialist at the Technical University of Denmark and as a Senior Researcher at the AI Laboratory of LG Electronics until he moved to Denmark. His research interests include at the intersection of machine learning, scientific simulation, and control. SANGHYEOK CHOI is currently pursuing the bachelor’s degree in industrial engineering and business administration from Seoul National University. He is currently a Machine Learning Research Engineer Intern with MakinaRocks. His current research interests include machine learning, reinforcement learning, and their applications to real world problems. SEUNGJU KIM is currently pursuing the master’s degree in automotive engineering from Hanyang University. He is currently a Machine Learning Research Engineer Intern with MarkinaRocks. His current research interests include reinforcement learning, distributed learning, and deep dynamics modeling. JEYEOL LEE received the B.Sc. and M.Sc. degrees in computer engineering from Dankook University, in 2016 and 2018, respectively. He is currently a Machine Learning Engineer with MakinaRocks and also leads the Robot Offline-Programming Team. His current research interests include reinforcement learning, metaheuristic optimization, and robotics. JOONGJAE KIM received the B.S. degree in electrical engineering from Purdue University. He was an electrical engineer at Hyundai Heavy Industry. He is currently a Senior Research Engineer with Hanon Systems Company. He is focusing on applying AI technologies into vehicle thermal energy management system control. YONGSUB LIM received the Ph.D. degree from the School of Computing, KAIST. He continued his work as a Postdoctoral Researcher at the Data Mining Laboratory, Seoul National University. He is currently a Co-Founder and a Chief Data Scientist with MakinaRocks. Leading the ML Solution Team, he is focusing on developing machine learning technology to solve challenging problems in industry and MLOps technology for continuous deployment and operation. Prior to MakinaRocks, he was a Data Scientist at SK Telecom specializing in advanced analytics and machine learning for industrial data. JEONGHOON LEE received the B.S. and M.S. degrees in mechanical engineering from Hanyang University, Seoul, and the Ph.D. degree from the School of Mechanical and Aerospace Engineering, KAIST, where he studied thermal comfort evaluation inside a passenger vehicle compartment using 3-D image reconstruction. He is a Technical Fellow with Hanon Systems Company and played a leading role in applying CO2 sensors, humidity sensors, and external variable compressor control to mass production in vehicles. He is currently focusing on industrial artificial intelligence, as well as simulation and test using domain knowledge-based AI dynamics modeling and embedding it into control units.

섹션 본문 65문단 · 36,661자

(제목 없음)

1While electric vehicles (EVs) continue to draw more attention as an alternative to traditional fossil fuel vehicles, the relatively short driving range of EVs is often pointed out as their biggest drawback. In terms of energy consumption, one of the most energy-intensive systems in EVs is the heating, ventilation, and air conditioning (HVAC) system. Most HVAC systems use On/Off or PID control for the actuators, but these control methods have low efficiency and are difficult to apply in multiple-input multiple-output systems. In this paper, we propose a novel multi-agent deep reinforcement learning (MADRL) method to efficiently control the low-level actuators of the EV HAVC systems. Through this method, multiple objectivs such as setpoint temperature, subcooling and efficiency can be considered simultaneously by giving independent rewards for each actuator agent. The proposed method is evaluated via a actual vehicle simulator, and experimental results show that the MADRL-based method consumes only 53% of the energy consumption of PID control on average in a transient phase.INDEX TERMSMulti-agent reinforcement learning, energy consumption efficiency, HVAC, EV, RL.NOMENCLATURE

2The associate editor coordinating the review of this manuscript and approving it for publication was Christopher H. T. Lee .

Variables β

3Importance ratio in single agent reward function.

I. INTRODUCTION

4One of the biggest drawbacks of current electric vehicles (EVs) is their relatively short driving range compared to traditional fossil fuel vehicles. The simplest way to improve the short driving range is to increase battery capacity, and a significant amount of related research is underway [1]. Another approach is to improve the efficiency of the energy-consuming systems in EVs [2], [3], [4], [5]. One of the most energy-intensive systems in EVs is the heating, ventilation, and air conditioning (HVAC) system, which is a complex nonlinear thermo-fluid dynamics system composed of a variety of components such as a compressor, heat exchangers, and electric expansion valves (EXVs) to control vehicle climate conditions. The importance of the efficient control of the HVAC system in EVs is greater than that of conventional vehicles as the proportion of energy consumption by the HVAC system is larger in EVs [3]. Most HVAC systems use On/Off control and PID control [6], [7], [8]. On/Off control is simple but has problems such as low efficiency and a shortening of the lifespan of the components. PID control, also widely used for its simple implementation, does not require the dynamics of the target system and therefore can be applied to both linear and nonlinear systems. However, PID control involves a number of issues. First, in most cases, it is difficult to use PID control in multiple-input multiple-output (MIMO) systems as each control output is coupled with a single feature, which makes it hard to reflect complex objectives with multiple features in PID control. Second, PID control requires a setpoint that is typically based on human expertise and therefore might not be optimal. In particular, determination of the target degree of subcool (DOS), which greatly influences the efficiency of the system [9], [10], depends on the prior experience of humans. Further details about subcooling are explained in Section II. Third, since PID control is a type of feedback control that relies on errors from the current observation of the system, it is difficult to consider the entire trajectory. As a result, if the coefficients are not tuned well, oscillation can occur in the system.

5Recently, approaches based on reinforcement learning (RL) to HVAC control have been studied. RL methods are designed to maximize the reward of the global trajectory [11] and are widely applied to various control problems. In HVAC systems, the policies of RL control a set of actuators, satisfying the multi-objective of the MIMO system via reward engineering [12], [13]. In Refs. [12], [13], the classical RL method SARSA has been applied to vehicle HVAC systems, showing promising performance compared to conventional control methods. However, the classical tabular RL method is inadequate for a large continuous system because of the curse of dimensionality [11]. In building HVAC systems, RLbased control has shown promising efficiency and generalization performance compared to baseline algorithms [14], [15], [16], [17], [18], [19], [20]. However, Refs. [14] and [18] can be used only for the discrete control problem, and while Refs. [15], [17], [18] propose a high-level control that outputs the desired setpoint temperature, the efficiency of the low-level subsystem actuator control to reach the setpoint temperature is not considered. Therefore, there is room for improving control at the low-level. Otherwise, the control methods proposed in [19] and [20] apply to the HVAC systems of buildings and are not applicable to vehicle HVAC systems.

6In this paper, to address the above mentioned challenges, we propose a novel control method based on multi-agent deep reinforcement learning (MADRL) for the EV HVAC system, with the following features. First, our method is based on a multi-agent architecture, which enables the use of actuator-specific reward functions to minimize the energy consumption of the MIMO system. Second, using the novel reward functions, our method finds the setpoints needed for feedback control without human expertise. Third, our method achieves more energy-efficient control than conventional methods in terms of the entire trajectory while achieving comparable target convergence performance. To the best of our knowledge, this research is the first attempt to use deep reinforcement learning for the continuous control of low-level subsystem actuators in the EV HVAC system.

7The remaining sections are as follows. In Section II, we introduce our problem's objective functions, the concept of subcooling, and deep reinforcement learning. In Section III, we explain our MADRL-based method including state representation, action representation, and reward functions. In Section IV, we show that our proposed method outperforms the grid search and conventional PID control in efficiency while meeting a target temperature. As a training environment, we employed the commercial simulation software GT-SUITE R [21], which is widely used for industrial vehicle HVAC modeling. Conclusion and further works are provided in the last section.

II. PROBLEM STATEMENTS AND PRELIMINARIES

8A. PROBLEM STATEMENTS

9The HVAC system provides a cool or warm airflow into the cabin through a variety of heat exchanges for passengers' thermal comfort during driving. The heat exchangers VOLUME 11, 2023 (e.g., evaporator, heater core, low temperature radiator, etc.) transport thermal energy that is converted into the change in cabin air temperature.

10The HVAC system has multiple modes depending on the usage for high performance and efficiency. Each mode adopts a different circuit design by closing or opening multi-way valves. Because of such distinct circuit design, each mode involves a different set of actuators, and therefore, every mode has its own specific objective and constraints.

1) OBJECTIVE

11In this paper, we consider the cabin air conditioning (A/C) mode, which is used when the cabin demands lowtemperature air. The actuators involved in this mode are the compressor and one EXV. The objective of the mode is to meet the given setpoint of the air temperature from the evaporator while minimizing the work. Regarding the work, only that done by the compressor is considered, since other work such as cooling fan work or blower work are relatively small.

12To be more specific, the objective can be divided into two parts: before and after reaching the target temperature, as shown in Fig. 1. Before reaching the target temperature (we call this stage the transient phase), the system operates to find the optimal trajectory of the control inputs, which minimizes the weighted sum of the total work done and time taken until the convergence of the temperature. The system should reach the target temperature within a given time:

13where δ determines the weight of the time penalty and λ is the range of convergence of the temperature. After reaching the target temperature (we call this stage the steady phase), the system operates to maintain the temperature within the desired range while conducting minimum work. The system becomes steady by fixing the inputs of the actuators to certain values. While there can be multiple input combinations that maintain the same target temperature, each of them may differ in efficiency. Therefore, in the steady phase, the objective is to find the optimal combination of control inputs rather than finding the trajectory. This optimal combination should satisfy Eq. (2):

2) USE OF SUBCOOLING

14A liquid is subcooled when it exists at a temperature below its normal condensing point. Fig. 2 shows that subcooling (SC) exists to the upper left of the saturation line in the pressure-enthalpy diagram. In HVAC systems, condenser SC has a significant effect on the coefficient of performance (COP) [22]. In other words, maintaining the DOS at the target level is equivalent to achieving a certain level of efficiency. In conventional control methods, an EXV is controlled to reach the desired DOS using PID control or model predictive control to improve the COP [9], [10], [23], [24]. Our method is first validated to control the EXV to meet the target DOS provided by experts as an auxiliary target of efficiency. In the steady phase, the system is expected to reach not only the target temperature but also the optimal DOS. The objective function of the steady phase can be modified as follows:

15However, as stated in [23], finding the optimal DOS is difficult and often requires numerous assumptions. Moreover, if the system is newly introduced or updated, finding the optimal DOS requires trial and error. In such cases when the target DOS is unknown, our method can be trained to directly minimize the work. Details are further discussed in Section IV.

3) CONSTRAINTS

16Due to physical limits and safety issues, the compressor has a limit on the available changes in actuation per time, which is called the slew rate constraint. The slew rate constraint can be expressed as Eq. 4, where u 1 t and u 2 t are the control values of the compressor and EXV at time step t, respectively:

17Also, each actuator's operating range has physical limits. This constraint is shown in Eq. 5.

18B. PRELIMINARIES

1) REINFORCEMENT LEARNING

19We formulate the HVAC control problem as a Markov decision process [11] with a tuple of states (S, A, p, r, γ ), where S is the continuous state space, A is the continuous action space, p : S × A × S → R ≥0 is the unknown state transition dynamics that denotes the probability density of the next state s ∈ S given s ∈ S and a ∈ A, and r : S × A → R is a reward function. γ ∈ [0, 1) is a discount factor of future rewards, and π(a|s) is a stochastic policy of action a given state s ∈ S. The agent chooses action a t based on policy π(a t |s t ) for every time step given state s t and reaches the next state s t+1 following the stochastic transition dynamics p(s t+1 |s t , a t ).

20The goal of RL is to maximize the expected cumulative reward from the current policy π for every time step:

21Using the policy function π(a|s), the state value function V or action value function Q (or Q-function) is obtained to approximate the expected cumulative reward. The state value function V π (s) of a policy π is the expected cumulative reward starting from the state s upon executing π:

22Next, the Q-function Q π (s, a) of a policy π is the expected return starting from state s, taking action a, and then following π:

23Recently, deep neural networks have been widely used to train the policy or value function of RL algorithms [25], [26], [27], [28]. In this work, we deployed soft actor-critic (SAC) [29], which is a state-of-the-art model-free RL algorithm for continuous control domains. SAC has a high sample efficiency, as the algorithm is trained based on maximum entropy [30] with an actor-critic architecture [31]. Moreover, SAC tends to converge more stably and requires less hyperparameter tuning than other RL algorithms.

24In SAC, the goal of the agent is to maximize not only the expected sum of the rewards from the current policy π but also the expected entropy of the policy:

25where H π(· | s t ) = E a∼π [− log π(a|s) ]. The critic, which is the soft Q-function Q θ of a policy π φ , is trained by minimizing the critic objective (Eq. 10), while the actor π φ is updated by minimizing the actor objective (Eq. 11),

26whereθ is the set of parameters of the target network. For a better exploration, the temperature coefficient α is automatically adjusted for the maximum entropy policy by minimizing the α objective,

27where H 0 is the desired minimum expected entropy threshold.

3) MULTI-AGENT RL

28Multi-agent reinforcement learning (MARL) is widely studied in control systems with multiple components [32], [33], [34], [35], [36], [37]. MARL enables a more delicate design of the action and reward functions compared to single-agent VOLUME 11, 2023 RL algorithms. To define our MARL problem, we introduce a Markov game (MG) [32], [34], [38], [39]. The MG is a framework that generalizes the Markov decision process for multiple agents interacting simultaneously in a shared environment. MG is defined with the tuple (N ,

29where N denotes the number of interacting agents (N > 1), S is the continuous state space, A : A 1 × · · · × A N is the joint action space which is the collection of the continuous action spaces of individual agents i ∈ {1, . . . , N }, p : S × A × S → R + is the unknown state transition probability, and r : r 1 × · · · × r N is the reward function. In MARL, joint action a : a 1 × · · · × a N and joint policy π(a|s) = i π i (a i |s i ) are defined with the collection of the actions and policies of individual agents. A MARL agent chooses joint action a t based on joint policy π(a t |s t ) for every time step given state s t and reaches the next state s t+1 following stochastic transition dynamics p(s t+1 |s t , a t ). The goal of MARL is same as the goal of RL (Eq. 6).

A. MULTI-AGENT IN THE HVAC SYSTEM

30As mentioned in Section II-A, our model has two different objectives, Eq. 1 for the transient phase and Eq. 2 for the steady phase. Each objective is optimized by its own agent, namely a transient agent for the transient phase and a steady agent for the steady phase. Each agent is composed of a compressor agent and an EXV agent, which are responsible for the corresponding actuators of the system. With an identical architecture for the compressor and EXV agents (Fig. 4), the transient and steady agents are trained for their respective phase using their own novel reward functions. Each reward function reflects the objectives defined in Eq. 1 and Eq. 3.

31The compressor agent contains a policy network π 1 θ whose primary objective is to find the optimal control value of the compressor to meet the target temperature. Similarly, the EXV agent contains a policy network π 2 θ whose primary objective is to find the optimal control value of the EXV to meet the target DOS. In general, the compressor has a larger influence on the system than the EXV. Before the compressor converges, most of the features including compressor work, temperature, and SC predominantly depend on the compressor. Only after the target temperature is reached and the compressor converges can the EXV agent observe the change in SC that is induced solely by itself. Then it becomes possible to control the EXV agent to meet the target DOS with appropriate feedback. In other words, EXV control requires long-term exploration, in which the agent learns to meet the target DOS after the convergence of the target temperature.

32In the case of single-agent RL, the agent outputs control values of both compressor and EXV from a single neural network. Also, the reward is a single scalar value unified from r 1 t and r 2 t (Eq. 13).

33In this case, the agent tends to learn to control the more dominant component, which is the compressor, while struggling with the less dominant component, the EXV. One possible solution to address this issue is to adjust each reward's relative importance with a ratio constant, β. Unfortunately, finding the right value of β requires extensive hyperparameter searching with exponentially growing costs for increasing numbers of actuators. By splitting each actuator into independent agents, the relative magnitude of the reward is no longer an issue. Likewise, this structure can be easily expanded to HVAC systems with more actuators by simply adding more agents.

B. STATE REPRESENTATION

34The compressor and EXV agents share most of their important features from system observations. Common features are as follows.

35Here, T t−1 , T t , t−1 , t are observed values of the temperature and SC of the current and previous time steps, respectively. As the HVAC system reacts gradually rather than instantly, information of the previous time steps is required for the agents to decide the next action. This nature of the HVAC system can be easily inferred from a mathematical modeling of each system component, where most of the dynamics are differential equations with time [40], [41].

36In the above equation, the current error of temperature and SC are denoted by T t − T target and t − target . The agents can decide the magnitude and direction of the action based on the current error. Moreover, the control values of the previous step are also included as (u 1 t−1 , u 2 t−1 ). To make the most of the information available, each agent's current state contains the other agent's action that was taken one step before. The control values of different actuators are normalized with their upper and lower limits for a relative scale, as follows.

37Besides the common features, the EXV agent receives additional information, C t , which is a binary flag indicating whether the target temperature is reached. C t , as given by Eq. 16, is 1 when the error of the temperature is below λ for two consecutive action steps and otherwise 0. The reward changes depending on C t , and thus C t provides a clear understanding of the status. More details about the reward function are explained in Section IV-D.

38To sum up, the state of each agent is as follows:

C. ACTION REPRESENTATION

39The action values (a 1 t , a 2 t ) of the policy networks (Eq. 18), which are in the [−1, 1] range, are converted to control values via mapping functions. For clarity, we call the output of the agent as the action value and the input of the actuator as the control value.

40As each actuator needs a different control value, different mapping functions are applied. For the compressor agent, the action value a 1 t is mapped to the control value u 1 t considering two types of constraints. The first constraint (Eq. 5) is the operating range of the component, which is the maximum and minimum rpm value of the compressor. The other constraint (Eq. 4) is the slew rate, which is the allowed change of rpm per second for the safety of the component. The compressor mapping function is as follows:

41The compressor action value a 1 t is first rescaled to the domain of an actuator control value using the slew rate and the operating range. The rescaled value is then added to the previous control value u 1 t−1 to get the next control value u 1 t . In this way, we can assure that the control value always stays in the allowed range.

42One notable thing to address is that the mapping function is asymmetric. When a 1 t is rescaled with an affine transformation to the change in the control value, the allowed range of increment and decrement can differ [ Fig. 5(a)]. If a 1 t is rescaled uniformly in this range, the portion of either increment or decrement can be relatively larger than the other, which can be problematic for the training process. Specifically, the agent collects training data with a random policy in the early stages of the training. The distribution of the training data can be biased towards either increment or decrement if the range is unbalanced, and this can greatly influence the training time and quality. To address this issue, the action value is rescaled differently depending on its sign. Positive action values always increase the control value within the allowed range, while negative action values work in the opposite way [ Fig. 5

43While a 1 t is rescaled to u 1 t , a 2 t is directly rescaled to u 2 t using the operating range of the EXV component. The slew rate is not considered in this case. The EXV mapping function is as follows.

D. REWARD FUNCTION

44The reward function is designed to enable multi-objective control in the current MIMO system. As described in Fig. 4, two different control agents are trained, one for each corresponding phase. The objectives of each phase are expressed as reward components.

1) REWARD FUNCTION FOR THE TRANSIENT AGENT

45The reward function for the transient agent in Eq. 21 is based on Eq. 1 from Section II. The reward function has two components, r Temp t and r Work t . The compressor agent and EXV agent receive rewards composed of a temperature reward and work reward. In the transient phase, the convergence of SC is not considered; hence, the only termination condition for the transient phase is the convergence of temperature. The reward function of the compressor and EXV agents is r 1 t and r 2 t , respectively. Note that the ρ variables determine the shape and scale of the reward function. The r Temp t component is related to the convergence of temperature to the target value. As T t approaches T target , r Temp t converges to 0. In contrast, r Temp t converges to −(ρ 1 + ρ 3 ) as T t gets further away from T target . Otherwise, the r Work t component is related to the work done by the compressor and linearly decreases as the work W t increases. W t is linearly mapped to [−(ρ 1 + ρ 3 ), 0] using its minimum and maximum values, which are 500 W and 4000 W. The reason for mapping temperature and work rewards to the same range is to prevent any reward from being overly dominant. In a multi-objective problem, an imbalance between reward components may cause some objectives to be ignored in training (Fig. 6).

46Each agent's reward function is designed to satisfy the objectives of the transient phase (Eq. 1). In the compressor agent case, the reward r 1 t consists of a sum of r . The EXV only takes the work reward because SC is not considered in the transient phase and the EXV control value has only a subtle influence on the change in temperature. It is worth noting that the objective of the transient phase is to meet the target temperature, not the target SC.

47One important thing to address in the transient phase is the sign of the rewards. Contrary to the steady phase, every reward in the transient phase has a negative value. With a negative reward, the total episode reward decreases as the length of the episode increases. Therefore, negative rewards force the agent to balance between terminating the episode early and minimizing the work, which paves the way to achieve our objective function in Eq. 1. This property of negative rewards is used to reflect the objective of faster convergence.

2) REWARD FUNCTION FOR THE STEADY AGENT

48The reward function for the steady agent in Eq. 22 is based on Eq. 3 from Section II. This reward function is designed to be two-fold due to the trajectory of the temperature. As the steady phase comes after the transient phase (Fig. 1), the steady agent should be trained not only in the steady phase but also in the transient phase, and thus should have two reward functions. When the temperature is far from its target (C t = 0, transient phase), the reward function is designed to reach the target temperature as fast as possible to enter the steady phase. Then after reaching the target temperature (C t = 1, steady phase), the reward function changes to meet the objectives of the steady phase (Eq. 3). Compared to the transient agent, an additional reward component r t is used for the convergence of the target SC in this case. Also, the sign of both reward components for the steady agent is positive, for the following reasons. As the objective of the steady phase is to maintain the target temperature and SC in a stable manner, the steady agent should be enhanced to stay in the desired state as long as possible. With a positive reward, we can compensate the agent as much as necessary. Note that composing the two reward functions of this agent with a single sign is important; if negative and positive rewards are mingled, the agent will struggle to understand the true effect of the action. Therefore, the positive reward for the steady agent's transient phase is applied, differing from the negative reward for the transient agent.

49The shapes of the temperature and work reward for the steady agent are the same as the model for the transient agent. They are only translated to positive values. Here, r Temp t converges to ρ 1 +ρ 3 as T t approaches T target and converges to 0 otherwise. And r Work t is linearly mapped to [0, ρ 1 +ρ 3 ] using 7580 VOLUME 11, 2023 the minimum and maximum values of W t . Similar to r Temp t , r t converges to ρ 1 +ρ 3 as t reaches target and converges to 0 otherwise (Fig. 7). Before reaching the target temperature (C t = 0), r 1 t is the same as r Temp t

50. After reaching the target temperature (C t = 1), the compressor agent receives both r Temp t and r Work t . The reason for adding r Work t when C t = 1 is to train the steady agent to keep the temperature in the desired range (| T | < λ). As r Work t is positive, r 1 t is always much higher when the temperature is in the desired range, from which we can be assured that the convergence of the temperature has a higher priority than efficiency.

51In this case, r 2 t is the same as r Work t before reaching the target temperature. After reaching target temperature, the EXV agent receives r t , with which it is trained to reach the target SC. When the target SC is unknown, the EXV agent can be trained with r Work t after reaching the target temperature (C t = 1). Here, the EXV agent is trained to find the action that minimizes the work while maintaining the temperature. As a byproduct, the resultant SC can be used as a target SC value. An agent trained without target SC is validated in Section IV-2. Fig. 9 illustrates our MADRL training framework for the HVAC system control. First, both compressor and EXV agents receive the tuple (s t , a t , s t+1 ) by interacting with the HVAC simulator. Using the tuple, the reward functions of the compressor and EXV agents calculate r 1 t and r t 2 , respectively, and store the transition (s t , a t , r t , s t+1 ) in their experience replay memory. Then, a mini-batch of k transitions are randomly sampled from each experience replay memory and given to each network. The networks output the current action value, current Q-value, and target Q-value for each agent. These outputs are passed to multiple loss functions that calculate actor loss, critic loss, and α loss. The parameters of each network are updated using the gradient of the corresponding loss. After the training, in the inference, the actor network is separated and takes the state as an input and outputs control values for the compressor and EXV.

E. MODEL ARCHITECTURE AND TRAINING PROCESS

52Both the compressor and EXV agents are based on SAC [29]. The network architecture of our model is as the actor and critic networks use Xavier initialization. Then the parameters of the target critic network are synchronized with the critic network. Also, the coefficient of entropy α and experience replay memory M are initialized.

53The training process consists of multiple nested loops, where the outer loop denotes the training episode for each iteration, the second loop denotes the training step of each episode, and the innermost loop denotes the training of each component. In line 8, the initial states s 1 0 , s 2 0 are obtained from the HVAC simulator. In lines 10-12, using the current state s t , the action, reward, and next state are obtained, which forms the transition sample (s t , a t , r t , s t+1 ) for every time step. In line 14, the transition sample is stored in the replay memory, and in lines 15-19, a mini-batch is randomly sampled from the replay memory and the networks are updated. In line 20, the target critic network is soft-updated with hyperparameter τ .

A. EXPERIMENTAL SETUP

54In this section, the MADRL-based control algorithm is validated for the EV HVAC system. The HVAC system is formulated with the commercial software GT-SUITE R [21], which has been widely employed by vehicle manufacturers and component suppliers. As one of the key aims of this research is to facilitate our implementation in an industrial setup, it is natural to choose a widely used industrial simulator. In our experiment, the vehicle thermal system circuit is implemented as explained in Section II. For experiments, the thermal system circuit requires additional conditions such as vehicle speed and ambient temperature; these conditions are chosen here based on a common scenario using the A/C circuit. In particular, the target evaporator outlet temperature, which is the main control objective, is set within a range Table 2.

B. EXPERIMENTAL RESULTS

55As explained in Section III, the transient and steady agents of the MADRL-based control model are trained separately. In this section, we evaluate our model in terms of the temperature convergence and the work efficiency. Also, we show that our method works well without a target DOS and can even find an effective target DOS. Additionally, we compare the MADRL-based control model with conventional PID control.

1) CONVERGENCE AND EFFICIENCY EVALUATION

56The performance of temperature convergence is evaluated differently for each phase. In the transient phase, the ability to reach the target temperature within a limited time is tested (Fig. 10). The time limit (t limit ) is 40 steps, equivalent to 120 s. For every target temperature, the transient agent succeeds to reach the target within the given time. In the steady phase, the ability to reach both target temperature and SC is evaluated. Fig. 11 shows the case when the target temperature is 6 • C; the rest of the experimental results are presented in Fig. 12. The target DOS corresponding to the target temperatures is obtained by domain experts. In Fig. 11, we can see that the trajectory of the MADRL control model with a SC target converges to the target temperature and the target SC. As a result, the control values reach almost the same control values as PID control by the end. For every experiment in Fig. 12, the agents succeed to reach the target temperature and target SC with less than 0.5 • C error.

57In terms of efficiency, we evaluate the work done by each control model in each phase. In Table 3, the work done by the MADRL control model is compared with PID control for the transient phase. Comparing the result of the transient agent cooling load is greater than in the high temperature zone. In particular, when the target temperature is 4 • C, the transient agent consumes only 11% of the energy compared to that by PID control.

58Such performance improvement is largely due to faster convergence. As shown in Fig. 10, Fig. 12, and Table 4, PID control converges to the target temperature more slowly than the transient agent. One of the reasons for this slow convergence is an overshoot that is easily observable in the PID control. The overshoot of control is observable not only in the temperature but also in the SC. The overshoot of SC also contributes to the inefficiency of the system, where the proper SC promises a better COP. Conversely, the trajectories of the transient agent show little or no overshoot.

59When we compare the work done between the steady agent and the transient agent in Table 3, the transient agent shows better efficiency, indicating that the reward functions are working as intended. As the transient agent is penalized if the work done by the compressor is high, the transient agent utilizes the compressor more mildly to use less work. Lastly, in the steady phase, the steady agent trained with the SC target is compared with PID control in Table 5. Specifically, the work values are estimated based on the average of the last 10 steps of the trajectory in the steady phase. The steady agent shows a similar performance compared to PID control. This result is consistent with the trajectory of both methods, as they converge to the same temperature and DOS.

2) TRAINING THE MADRL MODEL WITHOUT A SUBCOOLING TARGET

60As mentioned in Section III, conventional PID control requires a target DOS for feedback control, whereas the MADRL-based control model can be trained without a target DOS. Without a SC target, the agent is expected to reach the target temperature while minimizing the work. Since the target DOS is only used in the steady phase, this experiment is only for the steady agent.

61We first validate if the model successfully reaches the target temperature. In Fig. 12, for every case, the agent reaches the target temperature successfully. In Table 5, we compare the work done by the MADRL control model trained without a SC target and that by PID control. Our model shows comparable efficiency for all cases, averaging 99% efficiency compared to PID control. Especially when the target temperature is 4 • C, the MADRL control model outperforms by 8%. Also, it is worth noting that the model converges to SC similar to PID control in most cases. Even when the converged DOS differ, the control model shows reasonable efficiency, varying by less than 5% from the PID control results even in the worst case. The DOS targets used in this work are optimal values found by domain experts, and finding them requires wide experience and numerous heuristics. If the DOS targets are not optimal, the performance gap between PID control and our method will be even greater.

62For further validation, we conducted a brief grid search ( Table 6). The grid search is executed by maintaining a fixed set of actions until observations converge. The resolutions of the actions are 1000 rpm and 0.2 mm for the compressor and EXV, respectively. Each grid search result is grouped by the final temperature. In the results, each group contains a final temperature value differing less than 1 • C from the target temperatures of our experiment. In Table 5, the best grid search results are selected that satisfy the convergence condition (| T | ≤ 0.5). Compared to the grid search results, both the MADRL control model and PID control achieve greater efficiency for all target temperatures. In fact, the grid search results show that finding the appropriate DOS for each temperature is difficult. For target temperatures of 4 and 6 • C, less than 3 combinations of actions are found to reach the desired temperature. Applying a finer resolution would result in better performance but also increase the cost of computation. Moreover, if the number of actuators increases, the cost increases exponentially.

V. CONCLUSION

63In this paper, we proposed a MADRL-based control method for an EV HVAC system. The key conclusions of this work are as follows: First, through the multi-agent architecture, various objectives such as temperature, subcooling and efficiency can be simultaneously set. Second, the proposed method reduce the energy consumption in the transient phase to 53% of the PID control. Third, experiment show that it is possible to control with a similar level of efficiency without optimal setpoint subcooling only through the reward function. Furthermore, the converged SC values can be used as new setpoints.

64Our study was validated in the A/C mode under a simulated environment. In future research, we will validate our model in the heat pump mode with more actuators. Also, we expect to generalize our model in a real EV with minimum tuning. He is currently a Co-Founder and a Chief Data Scientist with MakinaRocks. Leading the ML Solution Team, he is focusing on developing machine learning technology to solve challenging problems in industry and MLOps technology for continuous deployment and operation. Prior to MakinaRocks, he was a Data Scientist at SK Telecom specializing in advanced analytics and machine learning for industrial data.

ACKNOWLEDGMENT

65JEONGHOON LEE received the B.S. and M.S. degrees in mechanical engineering from Hanyang University, Seoul, and the Ph.D. degree from the School of Mechanical and Aerospace Engineering, KAIST, where he studied thermal comfort evaluation inside a passenger vehicle compartment using 3-D image reconstruction. He is a Technical Fellow with Hanon Systems Company and played a leading role in applying CO2 sensors, humidity sensors, and external variable compressor control to mass production in vehicles. He is currently focusing on industrial artificial intelligence, as well as simulation and test using domain knowledge-based AI dynamics modeling and embedding it into control units. VOLUME 11, 2023

참고문헌 32건

  1. Potential Of Controlling Subcooling In Residential A/C System 2014
  2. A New Approach in Controlling the Compressor of the Vehicle Air Conditioning System IEEE Intelligent Vehicles Symposium · 2006 10.1109/ivs.2006.1689675
  3. Markov games as a framework for multi-agent reinforcement learning Elsevier eBooks · Elsevier BV · 1994 10.1016/b978-1-55860-335-6.50027-1
  4. Study on Automotive Air Conditioner Control System Based on Incremental-PID Advanced materials research · Trans Tech Publications · 2010 10.4028/www.scientific.net/amr.129-131.17
  5. Battery lifetime-aware automotive climate control for electric vehicles 2015 10.1145/2744769.2744804
  6. Dynamic modeling of an automotive air conditioning system and an auto tuned PID controller using extremum seeking algorithm 2013 10.1109/isci.2013.6612382
  7. Effect of the condenser subcooling on the performance of vapor compression systems International Journal of Refrigeration · Elsevier BV · 2014 10.1016/j.ijrefrig.2014.11.003
  8. A Survey of Actor-Critic Reinforcement Learning: Standard and Natural Policy Gradients IEEE Transactions on Systems Man and Cybernetics Part C (Applications and Reviews) · Institute of Electrical and Electronics Engineers · 2012 10.1109/tsmcc.2012.2218595
  9. Status and development of electric vehicle integrated thermal management from BTM to HVAC Applied Thermal Engineering · Elsevier BV · 2015 10.1016/j.applthermaleng.2015.02.001
  10. A Comprehensive Survey of Multiagent Reinforcement Learning IEEE Transactions on Systems Man and Cybernetics Part C (Applications and Reviews) · Institute of Electrical and Electronics Engineers · 2008 10.1109/tsmcc.2007.913919
  11. Human-level control through deep reinforcement learning Nature · Nature Portfolio · 2015 10.1038/nature14236
  12. Potential electricity savings by variable speed control of compressor for air conditioning systems Clean Technologies and Environmental Policy · Springer Science+Business Media · 2006 10.1007/s10098-006-0040-0
  13. Determining charging load of PHEVs considering HVAC system and analyzing its probabilistic impacts on residential distribution network Electric Power Systems Research · Elsevier BV · 2016 10.1016/j.epsr.2016.08.008
  14. Evaluation of optimal subcooling in subcritical heat pump systems International Journal of Refrigeration · Elsevier BV · 2017 10.1016/j.ijrefrig.2017.03.015
  15. Deep Reinforcement Learning for Building HVAC Control 2017 10.1145/3061639.3062224
  16. Adaptive Critic-Based Event-Triggered Control for HVAC System IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tii.2017.2725899
  17. A Long-Short Term Memory Recurrent Neural Network Based Reinforcement Learning Controller for Office Heating Ventilation and Air Conditioning Systems Processes · Multidisciplinary Digital Publishing Institute · 2017 10.3390/pr5030046
  18. Study of different subcooling control strategies in order to enhance the performance of a heat pump International Journal of Refrigeration · Elsevier BV · 2018 10.1016/j.ijrefrig.2018.02.003
  19. Optimal control of HVAC and window systems for natural ventilation through reinforcement learning Energy and Buildings · Elsevier BV · 2018 10.1016/j.enbuild.2018.03.051
  20. Deep Reinforcement Learning for Multiagent Systems: A Review of Challenges, Solutions, and Applications IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tcyb.2020.2977374
  21. Reinforcement learning-based thermal comfort control for vehicle cabins Mechatronics · Elsevier BV · 2017 10.1016/j.mechatronics.2017.04.010
  22. A survey and critique of multiagent deep reinforcement learning Autonomous Agents and Multi-Agent Systems · Springer Science+Business Media · 2019 10.1007/s10458-019-09421-1
  23. Grandmaster level in StarCraft II using multi-agent reinforcement learning Nature · Nature Portfolio · 2019 10.1038/s41586-019-1724-z
  24. DeepComfort: Energy-Efficient Thermal Comfort Control in Buildings Via Reinforcement Learning IEEE Internet of Things Journal · Institute of Electrical and Electronics Engineers · 2020 10.1109/jiot.2020.2992117
  25. Multi-Agent Deep Reinforcement Learning for HVAC Control in Commercial Buildings IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2020 10.1109/tsg.2020.3011739
  26. An improved intelligent model predictive controller for cooling system of electric vehicle Applied Thermal Engineering · Elsevier BV · 2020 10.1016/j.applthermaleng.2020.116084
  27. Model-based Electronic Expansion Valve Feed-forward Control for Electrified Automotive Vapor Compression Refrigeration System IECON 2020 The 46th Annual Conference of the IEEE Industrial Electronics Society · 2020 10.1109/iecon43393.2020.9255028
  28. Multi-agent deep reinforcement learning: a survey Artificial Intelligence Review · Springer Science+Business Media · 2021 10.1007/s10462-021-09996-w
  29. Reinforcement Learning: An Introduction IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 1998 10.1109/tnn.1998.712192
  30. Energy-Optimal Control of an Automotive Air Conditioning System for Ancillary Load Reduction IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2015 10.1109/tcst.2015.2418322
  31. Dimensioning and configuration of EES systems for electric vehicles with boundary-conditioned adaptive scalarization 2013 10.1109/codes-isss.2013.6659013
  32. Modeling purposeful adaptive behavior with the principle of maximum causal entropy 2010 10.1184/r1/6720692.v1