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

SFNAS-DDPG: A Biomass-Based Energy Hub Dynamic Scheduling Approach via Connecting Supervised Federated Neural Architecture Search and Deep Deterministic Policy Gradient

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)

기본 정보

저자
  1. Amirhossein Dolatabadi — Department of Electrical and Computer Engineering, University of Alberta, Edmonton, AB, Canada
  2. Hussein Abdeltawab — Department of Engineering - Wake Forest University, Winston-Salem, NC, USA
  3. Yasser Abdel‐Rady I. Mohamed — Department of Electrical and Computer Engineering, University of Alberta, Edmonton, AB, Canada
DOI
10.1109/access.2024.3352032
저널
IEEE Access
발행년도
2024
발행기관
Institute of Electrical and Electronics Engineers
피인용수
4
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2024.3352032
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W4390692052

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(6) PEM(고분자전해질막)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
biomass-based energy hub, fuel cells (FCs), dynamic scheduling, deep reinforcement learning, biogas production thermodynamics
판단 근거
본 논문은 바이오매스 및 태양광 기반 에너지 허브의 최적 운영을 위한 딥러닝 스케줄링 알고리즘을 다루고 있으며, 시스템 구성 요소로 연료전지(FC)의 동적 효율성을 언급하고 있습니다.
R&D 활용 포인트
수소연료전지(PEMFC) 시스템의 운영 최적화, 연료전지 및 에너지 저장 장치의 동적 제어 알고리즘 개발, 그리고 에너지 관리 시스템(EMS)의 효율 향상을 위한 AI 모델링 연구에 활용 가능합니다.
평가 입력
본문 82,397자 중 30,032자 발췌

초록

The transition to a near-zero-emission power and energy industry for facing up to global warming issues is dominated by the use of renewable energy resources such as bioenergy and solar energy. When these resources are coordinated within an energy hub framework, the system's flexibility is increased and dispatchable energy is provided by enhancing the share of renewable-dominated power. This paper proposes a dynamic scheduling framework for an energy hub with a biomass-solar hybrid renewable system. A hybrid forecasting model based on convolutional neural networks (CNNs) and Gated recurrent units (GRUs) is developed first to capture solar-related uncertainty sensibly, which will provide a great opportunity for the learning-based controller to determine an effective operation strategy in an optimal manner, especially on a cloudy-weather day. Then, a supervised federated neural architecture search (SFNAS) technique has been presented to eliminate the need for manual engineering of deep neural network models and the unnecessary computational burden associated with them. Finally, the deep deterministic policy gradient (DDPG), as an actor-critic deep reinforcement learning (DRL) methodology, enables the biomass-based energy hub to achieve cost-effective dynamic control strategies by addressing the decision-making problem as a highly dynamic continuous state-action model. The major conclusions of the numerical results show the effectiveness of the proposed SFNAS-DDPG method from average operating cost reduction up to 7.31% compared to the conventional DDPG model.

본문 82,397자

본문 펼치기
Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000. _Digital Object Identifier 10.1109/ACCESS.2023.0322000_ ### SFNAS-DDPG: A Biomass-based Energy Hub Dynamic Scheduling Approach via Connecting Supervised Federated Neural Architecture Search and Deep Deterministic Policy Gradient AMIRHOSSEIN DOLATABADI <sup>1</sup>, (Graduate Student Member, IEEE), HUSSEIN ABDELTAWAB <sup>2</sup>, (SENIOR MEMBER, IEEE), AND YASSER ABDEL-RADY I. MOHAMED <sup>1</sup>, (Fellow, IEEE) 1Department of Electrical and Computer Engineering, University of Alberta, Edmonton, AB, T6G 2V4, Canada 2Department of Engineering - Wake Forest University, Winston-Salem, NC 27101, USA Corresponding author: Amirhossein Dolatabadi (e-mail: adolatab@ualberta.ca). This research was supported by funding from the Canada First Research Excellence Fund as part of the University of Alberta’s Future Energy Systems research initiative, and the Alberta Innovates Graduate Student Scholarships for Data-enabled Innovation (GSS-DEI). ABSTRACT The transition to a near-zero-emission power and energy industry for facing up to global warming issues is dominated by the use of renewable energy resources such as bioenergy and solar energy. When these resources are coordinated within an energy hub framework, the system’s flexibility is increased and dispatchable energy is provided by enhancing the share of renewable-dominated power. This paper proposes a dynamic scheduling framework for an energy hub with a biomass-solar hybrid renewable system. A hybrid forecasting model based on convolutional neural networks (CNNs) and Gated recurrent units (GRUs) is developed first to capture solar-related uncertainty sensibly, which will provide a great opportunity for the learning-based controller to determine an effective operation strategy in an optimal manner, especially on a cloudy-weather day. Then, a supervised federated neural architecture search (SFNAS) technique has been presented to eliminate the need for manual engineering of deep neural network models and the unnecessary computational burden associated with them. Finally, the deep deterministic policy gradient (DDPG), as an actor-critic deep reinforcement learning (DRL) methodology, enables the biomass-based energy hub to achieve cost-effective dynamic control strategies by addressing the decision-making problem as a highly dynamic continuous state-action model. The major conclusions of the numerical results show the effectiveness of the proposed SFNAS-DDPG method from average operating cost reduction up to 7.31% compared to the conventional DDPG model. INDEX TERMS Actor-critic deep reinforcement learning, biomass energy, energy hub, federated learning (FL), neural architecture search (NAS). I. INTRODUCTION _A._ _BACKGROUND AND MOTIVATION_ VER the past decade, renewable energy sources (RESs), such as bioenergy and solar, have received # O unprecedented attention and become more prevalent to meet the ambitious goals of policymakers for reducing greenhouse gas emissions by moving towards a more sustainable energy industry. On the other hand, with the popularity of RESs continually increasing, their inherent volatility and intermittency pose a challenge to the integration and utilization of a high-penetration of RESs, and raise operational concerns for energy system operators. In this regard, the importance of coordinated control of interconnected energy infrastructures has been increasingly recognized for facilitating the development of a low-carbon, economically feasible, and renewable-dominated energy supply. This direction has led to the significant recognition of energy hub systems as resilient, reliable, and economical means of redistributing supply and demand among different energy sectors at the local level [1]. Meanwhile, with biomass energy resources being widely distributed and its potential to support multiple forms of energy demands, such as electricity and thermal, the integrated operation of other RESs and biomass can offer a cost-effective alternative compared to utility grid operations. _B._ _LITERATURE SURVEY_ Several recent representative studies have been reported on the optimization of energy hub systems from different perspectives, including optimal design and expansion planning [1], [2], optimal power dispatch [3], [4], energy trading scheme planning [5], [6], voltage-frequency optimization [7], etc. The literature on the integration of biomass energy resources into the energy hub concept is somewhat limited and scattered. Using climate-independent biomass energy, an energy hub can balance the stochastic output of weather-driven renewable RESs. In both [8], [9], the planning problem for a biomass-based energy facility was studied and formulated as a two-stage mixed-integer linear programming (MILP) model. While the authors in [8] focused on the optimal planning of solar and biogas energy for reducing the dependency of the energy hub system on battery storage systems in remote regions, the model proposed in [9] centered on the expansion planning of integrated electric power and biogas delivery networks. In terms of the scheduling and operation of biomass-based multi-carrier energy systems, the existing literature studies the use of biomass energy resources as a solution to the increasing demand for diversified and affordable energy services. In [10], a stochastic optimal operation strategy for an integrated solar and biomass system is proposed by considering the uncertainties in market prices and solar irradiation. Reference [4] assesses an optimal operation strategy for an energy hub with a biogas-solar-wind hybrid renewable system. The approach in [4] is extended by providing a distributed stochastic scheduling framework for the coordinated operation of interconnected biogas-solar-wind systems in [11]. Both [12], [13] propose trading schemes for the biomass-concentrated solar system. Stochastic optimization and information gap decision theory (IGDT) approaches are leveraged to address uncertain factors. Even though some advances were made, the aforementioned works also had three limitations. Firstly, they need to understand the dynamics of components. Developing a dynamic model that can accurately simulate components’ behavior is challenging due to the multitude of factors that influence it. Further, model-based approaches may differ in premises or performance in relation to particular components, so their generalizability may be limited. Secondly, algorithms require explicit knowledge of how uncertainty is represented (for example, RES production’s probability distributions). Finally, a third limitation is the lack of support for an online control mechanism, particularly for large-scale solutions. Specifically, these methods need to perform the optimization by selecting the most optimal solution among a set of possible ones, regardless of the problem size. Alternatively, the disadvantages described above can be overcome through the use of model-free learning-based techniques. Recently, some research has been conducted on applying reinforcement learning (RL) to the energy management problem of multi-carrier energy systems, such as Q-learning (QL) [14], QL-linear programming (LP) [15], and fuzzy QL [16]. The combination of RL and deep neural networks (DNN), as a powerful function approximator, has led to the development of deep reinforcement learning (DRL). Through multiple interpretations, DRL can leverage the growing data collected from a variety of sources, revealing optimum control policies and dealing with uncertainty related to the data. Additionally, DRL is a model-free, self-adaptive method that requires no explicit modeling of probability distributions or constraints on uncertainties. The application of deep Q network (DQN) concepts to energy systems’ control and scheduling has been developed for different scenarios involving the optimization of state and action spaces in high dimensions, e.g., energy storage system [17], industrial Internet of Things (IIoT) [18], electric vehicles (EV) [19], cyber uncertainties [20], and building energy management [21]. Although DQN has been regarded as a considerable improvement over conventional QL in approximating Q-value functions, its performance is suboptimal if the action spaces of the environment are continuous. DQN offers considerable advantages over QL, but its performance can be suboptimal regarding continuous action spaces. There are, for example, only five and seven levels of discrete control actions for lithium-ion batteries and EVs in [22] and [23], respectively. The adoption of a continuous action space is therefore of the utmost importance. This being the case, the deep deterministic policy gradient (DDPG) methodology was introduced and implemented on a few decision-making tasks involved in scheduling and controlling microgrids, including electricity market participation [24], distribution networks [25], voltvar control (VVC), and state of charge (SoC) control [26]. Through using both actor and critic networks, it provides both the benefits of value-based and Monte Carlo policy gradient approaches. Comparatively to the Monte Carlo policy gradient, DDPG uses fewer samples to learn action space selection, resulting in lower computational demands. Furthermore, in contrast to the value-based technique, stochastic policies can be used to address RL problems that involve continuous actions. In the meantime, DNN algorithms have made promising progress in several tasks, including prediction. However, their performance is still heavily influenced by the parameters and architecture of the neural network (the number of layers and the number of nodes, as well as the connectivity between layers). In most cases, it is challenging to evaluate how parameter settings influence the performance of the available models, even when they have a thorough understanding of both machine learning (ML) and deep learning (DL). Furthermore, recent studies in the field emphasize the use of higherlevel models in order to obtain more accurate predictions, increasing the number of parameters included in the model. This has made exploring such large parameter spaces a more challenging undertaking. Neither expert knowledge nor empirical trial and error are always useful in this regard. A neural architecture search (NAS) method finds the optimal network architecture for a given situation by defining a search space, a search strategy, and a performance estimation strategy [27], [28]. NAS-developed network structures have been shown to 2 VOLUME 11 2023 be superior to those constructed by hand in a variety of fields. Over the past few years, the field of NAS has become an active area of research and experienced remarkable success [27], [29], [30]. A Bayesian optimization-based NAS has been used to optimize the structure of DNNs. For example, a new kernel captures the relevant parameters in [31] and a joint optimization of the architecture and hyperparameters is performed using Bayesian optimization in [32]. Recent proposals have attempted to turn NAS problems into RL problems. The NAS problem is addressed using Q-learning in [33], [34]. To improve the search procedure described in [33], [35] uses a predictor. With shared DNN parameters, [36] increases the speed of search procedures. By developing a differentiable representation of the NAS model, gradientbased NAS techniques seek to optimize the parameters of the NAS. The performance of other neural networks is predicted by a neural network in [37], [38]. An approach aimed at reducing training time and memory consumption for NAS is described in [39]. A generalization problem in differentiable architecture search (DARTS) models [40] is addressed in [41] by breaking the problem into sub-problems. Recent years have seen significant interest in evolutionary computation approaches to optimize DNN parameters. DNNs are employed as genotypes and phenotypes in a mutation-only Genetic Algorithm (GA) in [42], [43]. By evolving the cascades of convolutional filters, a GA for classification is presented in [44]. It is noteworthy that evolutionary-based NAS approaches result in neural networks of superior performance, but moderate in size, as shown in [27], [29], [30]. Additionally, privacy concerns are becoming more prevalent, which has led to a growing interest in machine learning approaches that preserve the privacy of users. As a machine learning paradigm, federated learning (FL) deals with concerns about data privacy, particularly when working with distributed and heterogeneous information [45]. Thus, FL combined with NAS is capable of effectively addressing privacy concerns associated with NAS. _C._ _CONTRIBUTION AND PAPER STRUCTURE_ Considering the limitations of previous studies and to fill the research gaps outlined above, this paper is directed toward presenting a dynamic scheduling framework for a biomassbased energy hub. An improved actor-critic DRL algorithm, DDPG, and the supervised federated neural architecture search (SFNAS) are incorporated and employed to form a novel model-free and self-adaptable energy management algorithm for a RES-based multi-carrier energy supply infrastructure. For a diverse and dynamic RES-based energy hub system, these characteristics can facilitate flexible scheduling and coordinated decision-making. The proposed SFNAS tries to investigate the merits and limitations of various NAS methods for learning the architecture and model parameters for a given task. An innovative method is then presented for engaging multiple NAS approaches and improving their individual performance by utilizing a supervising agent to improve their training losses. As a result of repeated inter action with the environment, the DDPG agent is able to gain experience to provide optimal dynamic control signals without the need to model constrained probability distributions or uncertainty sets. Moreover, a forecasting technique based on convolutional neural networks (CNNs) and gated recurrent units (GRUs) has been incorporated into the DDPG decisionmaking framework to achieve decent scheduling results. The major contributions of this paper are summarized as follows: 1) Focusing on the ever-increasing role of biomass energy resources worldwide, the impact of several underlying factors on the cost-benefit analysis of a biomass-based energy hub is investigated using a fully data-driven and model-free actor-critic DRL-based decision-making framework taking into consideration the physical characteristics and thermodynamic effect of temperaturesensitive biogas production at the operation stage. To our best knowledge, such method is rarely investigated before. 2) Based on the FL settings, the proposed SFNAS approach can be used directly to search for the optimal architecture by leveraging training loss reshaping by a supervisor. The test results show that the proposed SFNAS approach achieves faster and smoother convergence than the respective baseline methods. In comparison with the baseline model, the proposed SFNAS approach significantly improves both forecasting RMSE and training time by 10.33% and 9.54%, respectively. 3) A hybrid CNN-GRU solar irradiance forecasting model that captures high levels of abstraction from sky images and numerical measurements was developed and optimized by SFNAS to help the DDPG agent choose the most efficient control policy especially when PV power is highly intermittent on cloudy days. 4) Compared with conventional energy hub scheduling methods, such as stochastic programming (SP) or robust optimization (RO), which require a perfect and detailed understanding of the operational model and parameters of the system, the proposed model-free datadriven energy management framework can overcome potential uncertainties and determine the optimal control decisions by the learning mechanism. 5) The DDPG is a model-free decision-making framework that offers more realistic and cost-effective decisionmaking strategies than existing conventional decisionmaking methodologies like SP and RO, which simplify the scheduling problem with linearized models and piecewise linear curve fitting methods. Ignoring the practical limitations and nonlinear constraints like biogas production thermodynamics, dynamic efficiency of fuel cells, valve admission behavior of power generation systems, and CHPs’ non-convex operation regions makes the results less robust. This paper proceeds as follows. Section II presents the proposed SFNAS algorithm and the hybrid DL-based 2-D CNN-GRU prediction approach. Section III describes the VOLUME 11 2023 3 highly nonlinear, realistic model of the system. Following that, Section IV presents the DDPG-based dynamic scheduling method for the biomass-based multi-carrier energy system. Section V is dedicated to the case studies and simulation results, and finally, conclusions are provided in Section VI. II. SUPERVISED FEDERATED NEURAL ARCHITECTURE SEARCH AND HYBRID 2-D CNN-GRU FORECASTING MODEL In this section, the mathematical representation of the proposed SFNAS, which leverages a supervisor to enhance the performance of multiple NAS agents, is presented. The supervisor (meta-learner) and NAS agents (base learners) are trained using a bi-level optimization strategy. Fig. 1 illustrates the schematic diagram of the proposed SFNAS methodology. _A._ _NAS AGENTS AS BASE-LEARNERS_ 1) Objective By learning the architecture, _ωn_, and parameters, _θn_, of the model, each base learner _i_ optimizes its own model using _momentum-regularized_ NAS technique. ( _ωn, θn_ ) is learned by each base-learner _n_ using a momentum-based gradient descent algorithm as follows. _vn_ := (1 _−_ _λn_ ) _vn_ + _λn∇nJn_ ( _θn, ωn_ ) _θn_ _←_ _θn −_ _αθvn,_ _ωn_ _←_ _ωn −_ _αωvn_ (1) where _αθ_ and _αω_ correspond to the learning rates for _θ_ and _ω_, respectively, and, _vn_ represents the momentum from past steps. When the hyperparameter _λn_ is set to a lower value in the updates, longer gradient updates are maintained (this can be demonstrated by expanding the recursive updates, which are not shown here due to limited space). According to the NAS algorithm used by each base-learner, the training loss varies. Hence, for ease of explanation, the training loss is denoted by _Jn_ ( _θn, ωn_ ). The following definition of _L_ 2regularized mean squared error (MSE) will be used when we assume identical training losses _Jn_ ( _·, ·_ ) for all agents. _Jn_ ( _θn, ωn_ ) := _∥y −_ ˆ _yn∥_ <sup>2</sup> + _L_ 2( _θn_ ) (2) where ˆ _yn_ represents the forecasted value, i.e., the outcome of _n_ -th base-learner’s model with architecture _ωn_ . 2) Model The weights _λn_ that are proportional to _rn_ are estimated by training the meta-learner model with the input states (or the embedding of the inputs). For this purpose, a _N_ -head classifier structure is employed, corresponding to _λn_, _n_ _∈_ _{_ 1 _,_ 2 _, . . ., N_ _}_ . Unlike a typical classification problem, _rn_ s change epoch by epoch, so the target values vary. 3) Selection Procedure The proposed SFNAS methodology includes a model selection procedure that is as follows. min _A_ <sup>[</sup> <sup>_ζ_</sup> <sup>1</sup> <sup>_.N_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>2</sup> <sup>_.T_</sup> <sup>+</sup> <sup>_ζ_</sup> <sup>3</sup> <sup>_.RMSE_</sup> <sup>]</sup> (3) where _N_, _T_, and _RMSE_ are the number of trainable parameters of deep learning model, training time, and the RMSE value for agent _A_, respectively. A FL application designer can determine the importance of the objectives by adjusting _ζ_ 1, _ζ_ 2, and _ζ_ 3. _B._ _HYBRID DEEP 2-D CNN-GRU STRUCTURE_ Meteorological and atmospheric variables greatly influence solar irradiance in solar power generation forecasting. A hybrid SFNAS-based DL model for solar irradiance prediction is presented to analyze a sequence of sky images and meteorological components by employing CNN and GRU structures, respectively. Several numerical meteorological features are employed in the proposed hybrid forecasting framework to enhance its capability to capture complex solar abstractions, including global horizontal irradiance (GHI), calendar features, temperature, relative humidity, and atmospheric pressure. The mathematical details of the hybrid deep CNN-GRU network can be expressed as follows [46]–[48]: 1) CNN Network: Through the use of learnable kernels and inductive bias, CNN convolutional layers provide better generalization capabilities. The mathematical expression for convolutions and pooling are as follows: - + _b_ <sup>_m_</sup> _l_ _z_ <sup>_m_</sup> _l_ <sup>=</sup> <sup>_f_</sup> �� _n∈Nm_ - _z_ <sup>_n_</sup> _l_ <sup>_n_</sup> _l−_ 1 <sup>_⊗_</sup> <sup>_w_</sup> _l_ <sup>_nm_</sup> _l_ (4) _z_ <sup>_m_</sup> _l_ <sup>=</sup> <sup>_f down_</sup> <sup>�</sup> <sup>_m_</sup> _l_ <sup>=</sup> <sup>_f down_</sup> <sup>�</sup> _z_ <sup>_m_</sup> _l−_ 1 _z_ <sup>_m_</sup> _l_ - (5) A max-pooling down-sampling method followed by a fullyconnected layer is used in this paper to extract informative features. _zl_ = _g_ <sup>_f_</sup> ( _ϑlzl−_ 1 + _bl_ ) (6) 2) BLSTM Network: Each LSTM block consists of three multiplicative units: input, output, and forget. Data is written, read, and reset using these gates. The following equations explain how LSTM forward passes work mathematically [49]: _f_ <sup>_′_</sup> _χt_ + _w′h_ _f_ <sup>_′_</sup> _χt_ + _w′h_ _ft_ <sup>_′_</sup> <sup>=</sup> <sup>_σ_</sup> - _w_ <sup>_′_</sup> _χ_ - _w_ <sup>_′_</sup> _χ_ _f_ <sup>_′_</sup> _ht−_ 1 + _b′_ <sup>_f ′_</sup> <sup>�</sup> _z_ <sup>_′_</sup> _ht−_ 1 + _b′_ <sup>_z′_</sup> <sup>�</sup> _z_ <sup>_′_</sup> _t_ <sup>=</sup> <sup>_σ_</sup> - _w_ <sup>_′_</sup> _χz_ - _w_ <sup>_′_</sup> _χ_ _z_ <sup>_′_</sup> _χt_ + _w′h_ _z_ <sup>_′_</sup> _χt_ + _w′h_ (7) (8) (9) (10) _g_ <sup>_′_</sup> _χt_ + _w′h_ _g_ <sup>_′_</sup> _χt_ + _w′h_ _g_ <sup>_′_</sup> _ht−_ 1 + _b′_ <sup>_g′_</sup> <sup>�</sup> _g_ <sup>_′_</sup> _t_ <sup>=</sup> <sup>_tanh_</sup> - _w_ <sup>_′_</sup> _χg_ - _w_ <sup>_′_</sup> _χ_ _o_ <sup>_′_</sup> _χt_ + _w′h_ _o_ <sup>_′_</sup> _χt_ + _w′h_ _o_ <sup>_′_</sup> _ht−_ 1 + _b′_ <sup>_o′_</sup> <sup>�</sup> _o_ <sup>_′_</sup> _t_ <sup>=</sup> <sup>_σ_</sup> - _w_ <sup>_′_</sup> _χ_ - _w_ <sup>_′_</sup> _χ_ _Ct_ <sup>_′_</sup> _t_ <sup>_′_</sup> <sup>=</sup> <sup>_g′_</sup> _t_ <sup>_′_</sup> _t_ <sup>_⊙_</sup> <sup>_i′_</sup> _t_ <sup>_i′_</sup> _t_ <sup>+</sup> <sup>_C_</sup> _t_ <sup>_′_</sup> _t_ <sup>_′_</sup> _−_ 1 <sup>_⊙_</sup> <sup>_f ′_</sup> _t_ <sup>_′_</sup> _t_ (11) _ht_ = _tanh_ ( _C_ <sup>_′_</sup> _t_ <sup>)</sup> <sup>_⊙_</sup> <sup>_o′_</sup> _t_ (12) _t_ <sup>)</sup> <sup>_⊙_</sup> <sup>_o′_</sup> _t_ 4 VOLUME 11 2023 FIGURE 1. Schematic diagram of the proposed SFNAS methodology. - _Ei_ <sup>_c_</sup> _,_ _i_ <sup>_c_</sup> _,_ min <sup>_−_</sup> <sup>_E_</sup> _i_ <sup>_c_</sup> _,t_ _i,t_ - _Ei_ <sup>_c_</sup> _,t_ - _Ei_ <sup>_c_</sup> _,t_ �� _λci_ <sup>sin</sup> - _ρ_ <sup>_c_</sup> _i_ - _ρ_ <sup>_c_</sup> _i_ Gradient vanishing problems can be handled by LSTMs, but future context cannot be taken into account. As a result, BLSTM networks represent data in a much more sophisticated manner than traditional LSTMs because they utilize all the information of the temporal horizon. Following are the outputs generated by BLSTM networks [50]: _Vi_ <sup>_c_</sup> _,t_ - = ���� (17) _i_ <sup>_c_</sup> _,_ max <sup>_.I c_</sup> _i,t_ _i_ <sup>_c_</sup> _,_ min <sup>_.I_</sup> _i_ <sup>_c_</sup> _,_ _i_ <sup>_c_</sup> _,t_ <sup>_≤_</sup> <sup>_E_</sup> _i_ <sup>_c_</sup> _,_ _Ei_ <sup>_c_</sup> _,_ _i_ <sup>_c_</sup> _,t_ <sup>_≤_</sup> <sup>_E_</sup> _i_ <sup>_c_</sup> _,t_ <sup>_c_</sup> _i,t_ (18) _i_ <sup>_c_</sup> <sup>1,</sup> <sup>_α_</sup> _i_ <sup>_c_</sup> <sup>2</sup> where _αi_ <sup>_c_</sup> <sup>1</sup> _i_ <sup>_c_</sup> <sup>2,</sup> <sup>_α_</sup> _i_ <sup>_c_</sup> <sup>3</sup> _i_ <sup>_c_</sup> <sup>3,</sup> <sup>_λ_</sup> _i_ <sup>_c_</sup> _i_ <sup>_c_</sup> <sup>,</sup> <sup>and</sup> <sup>_ρc_</sup> _i_ - _w_ <sup>_′′_</sup> _χ_ <sup>_′′_</sup> _χh_ <sup>_′′_</sup> <sup>_f χt_</sup> <sup>+</sup> <sup>_h_</sup> _t_ <sup>_′′_</sup> <sup>_′′_</sup> _χh_ <sup>_′′_</sup> <sup>_f χt_</sup> <sup>+</sup> <sup>_h_</sup> _t_ <sup>_′′_</sup> _h_ <sup>_′′′′_</sup> <sup>_f_</sup> (13) _h_ <sup>_′′_</sup> _t_ - _w_ <sup>_′′_</sup> _χ_ _t−_ 1 where _αi_ <sup>_c_</sup> <sup>1,</sup> <sup>_α_</sup> _i_ <sup>_c_</sup> <sup>2,</sup> <sup>_α_</sup> _i_ <sup>_c_</sup> <sup>3,</sup> <sup>_λ_</sup> _i_ <sup>_c_</sup> <sup>,</sup> <sup>and</sup> <sup>_ρc_</sup> _i_ <sup>are</sup> <sup>the</sup> <sup>cost</sup> <sup>coefficients</sup> <sup>of</sup> the _i_ <sup>_th_</sup> power-only unit. _I_ <sup>_c_</sup> and _VPE_ <sup>_c_</sup> indicate the commitment status and valve-point effects, respectively. _w_ <sup>_′′_</sup> _h_ _w_ <sup>_′′_</sup> _h_ <sup>_′′_</sup> _h_ <sup>_′′_</sup> _h_ <sup>_′′_</sup> <sup>_f_</sup> <sup>+</sup> <sup>_b_</sup> _h_ <sup>_′′′′_</sup> <sup>_′′_</sup> _h_ <sup>_′′_</sup> _h_ <sup>_′′_</sup> <sup>_f_</sup> <sup>+</sup> <sup>_b_</sup> _h_ <sup>_′′′′_</sup> _h_ <sup>_′′′′_</sup> <sup>_f_</sup> (14) _h_ <sup>_′′_</sup> _t_ _f_ = _tanh_ _f_ = _tanh_ _t−_ 1 _B._ _THERMAL UNITS_ The _k_ <sup>_th_</sup> thermal unit’s operating cost and limits at time _t_ is defined by (19) and (20). _f_ <sup>�</sup> _f_ <sup>�</sup> <sup>_′′_</sup> _t_ <sup>=</sup> <sup>_h′′_</sup> _t_ _o_ <sup>_′′_</sup> <sup>+</sup> <sup>_b_</sup> _o_ <sup>_′′_</sup> _y_ <sup>_′′_</sup> _t_ <sup>_′′_</sup> _t_ <sup>_w_</sup> _o_ <sup>_′′_</sup> _o_ <sup>_′′_</sup> (15) - _Tk_ <sup>_b_</sup> _,_ _k,t_ - _Tk_ <sup>_b_</sup> _,t_ - _Tk_ <sup>_b_</sup> _,_ - = _αk_ <sup>_b_</sup> <sup>1</sup> _k_ <sup>_b_</sup> <sup>1</sup> <sup>_._</sup> _Ck_ <sup>_b_</sup> _,t_ �2 + _αkb_ 2 <sup>_.T_</sup> _k_ <sup>_b_</sup> _,_ _k_ <sup>_b_</sup> _,t_ <sup>+</sup> <sup>_α_</sup> _k_ <sup>_b_</sup> <sup>3</sup> _k_ <sup>_b_</sup> <sup>3</sup> (19) where _h_ <sup>_′′_</sup> _t_ <sup>_′′_</sup> _t_ <sup>is composed of integrating</sup> <sup>_h_</sup> _t_ <sup>_′′_</sup> _t_ _Tk_ <sup>_b_</sup> _k_ <sup>_b_</sup> _,_ min <sup>_.I b_</sup> _k,t_ _f_ and _h′′t_ _f_ and _h′′t_ _b_ . _k_ <sup>_b_</sup> _,_ max <sup>_.I b_</sup> _k_ _k_ <sup>_b_</sup> _,t_ <sup>_≤_</sup> <sup>_T_</sup> _k_ <sup>_b_</sup> _,_ <sup>_b_</sup> _k,t_ <sup>_≤_</sup> <sup>_T_</sup> _k_ <sup>_b_</sup> _,_ <sup>_b_</sup> _k,t_ (20) III. ENVIRONMENT MODEL AND PROBLEM FORMULATION The purpose of this section is to discuss the main structure of the proposed biomass-based energy hub, taking into account nonlinear characteristics of the facility components such as biogas production thermodynamics, dynamic efficiency of fuel cells, valve admission behavior of power generation systems, and CHPs’ non-convex operation regions. _A._ _POWER-ONLY UNITS_ Generally, power-only generation units are modeled by convex quadratic cost functions. Due to valve admission effects, these models do not take into account ripples in production cost; therefore, they cannot provide a practical solution for real-life applications. In this regard, the quadratic cost function is modified to include an absolute sinusoidal term to capture this phenomenon efficiently. Fig. 2 shows the valvepoint effects on the fuel cost of a power-only unit. The total operation cost including valve-point effects can be formulated as follows [51]: where _αi_ <sup>_b_</sup> <sup>1,</sup> <sup>_α_</sup> _i_ <sup>_b_</sup> <sup>2,</sup> <sup>_α_</sup> _i_ <sup>_b_</sup> <sup>3,</sup> <sup>and</sup> <sup>_k_</sup> <sup>_th_</sup> <sup>represent</sup> <sup>the</sup> <sup>cost</sup> <sup>coefficients</sup> and commitment status of the _k_ <sup>_th_</sup> heat-only unit. _i_ <sup>_b_</sup> <sup>1,</sup> <sup>_α_</sup> _i_ <sup>_b_</sup> <sup>2</sup> where _αi_ <sup>_b_</sup> <sup>1</sup> _i_ <sup>_b_</sup> <sup>2,</sup> <sup>_α_</sup> _i_ <sup>_b_</sup> <sup>3</sup> _C._ _CHP UNITS_ Noteworthy is the fact that the electricity and thermal energy produced in CHP units depend on each other, so they cannot be independently adjusted. The cost function of _j_ <sup>_th_</sup> CHP is provided in (21). Convex combinations of extreme points Cost ($) <mark>Power</mark> <mark>(MW)</mark> _i_ <sup>_c_</sup> <sup>3</sup> <sup>+</sup> <sup>_V_</sup> _i_ <sup>_c_</sup> _,t_ - _Ei_ <sup>_c_</sup> _,t_ _i,t_ _Ci_ <sup>_c_</sup> _,t_ - _Ei_ <sup>_c_</sup> _,t_ - = _αi_ <sup>_c_</sup> <sup>1</sup> _i_ <sup>_c_</sup> <sup>1</sup> <sup>_._</sup> FIGURE 2. Valve-point effects on the fuel cost of a power-only unit. �2 + _αic_ 2 <sup>_.E_</sup> _i_ <sup>_c_</sup> _,_ _i_ <sup>_c_</sup> _,t_ <sup>+</sup> <sup>_α_</sup> _i_ <sup>_c_</sup> <sup>3</sup> _i,t_ - _Ei_ <sup>_c_</sup> _,t_ - (16) VOLUME 11 2023 5 represent the power and heat production in CHP units by (22)(25) [52]. <sup>_d_</sup> _j_ <sup>_s_</sup> (21) _Cj_ <sup>_chp_</sup> _,t_ <sup>=</sup> _S_ _s_ =1 _D_ <sup>_s_</sup> _j_ _d_ <sup>_s_</sup> =1 Γ <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_ <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_ <sup>_cd_</sup> _j_ <sup>_s_</sup> <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_ <sup>_x_</sup> _j_ <sup>_d_</sup> <sup>_s_</sup> _E._ _FUEL CELL UNIT_ Fuel cells (FCs) contribute to the energy hub demand by generating electricity, recovering heat, and producing hydrogen. As part of the energy hub consumers’ energy requirements, proton exchange membrane FCs are considered to supply some of their demand (since the by-product heat can be captured and used by these FCs, they can also be considered CHP systems). Hydrogen can be produced from the difference between the maximum capacity and the electrical output when the thermal load is low. The energy hub produces electricity by converting hydrogen from FCs into electricity and storing it in hydrogen reservoirs. Note that, the hydrogen reservoirs are used as a backup fuel for the hydrogen engine. The main fuel is hydrogen produced by reforming natural gas. In the _l_ <sup>_th_</sup> FC unit, the amount of recovered thermal power, _Tl_ <sup>_fc_</sup> _,t_ <sup>, can be determined as follows:</sup> _D_ <sup>_s_</sup> _j_ _d_ <sup>_s_</sup> =1 _D_ <sup>_s_</sup> _j_ _d_ <sup>_s_</sup> =1 _j_ _Ej_ <sup>_chp_</sup> _,t_ <sup>=</sup> _Ej_ <sup>_chp_</sup> _,t_   Γ <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_ <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_ <sup>_yd_</sup> _j_ <sup>_s_</sup> _j_ _Tj_ <sup>_chp_</sup> _,t_ = _Tj_ <sup>_chp_</sup> _,t_ _S_ _s_ =1 _S_ _s_ =1   Γ <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_   (22)   (23) _D_ <sup>_s_</sup> _j_ _d_ <sup>_s_</sup> =1 _Tl_ <sup>_fc_</sup> _,t_ _l_ <sup>_fc_</sup> _,t_ <sup>=</sup> <sup>_TER_</sup> _l_ <sup>_fc_</sup> _,t_ Γ <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_ _j_ <sup>_s_</sup> _,t_ (24) <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_ <sup>=</sup> <sup>_V_</sup> _j_ <sup>_s_</sup> _,t_ _l,t_ (31) _l_ <sup>_fc_</sup> _,t_ <sup>_._</sup> - _El_ <sup>_fc_</sup> _,t_ <sup>_,e_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,e_</sup> <sup>+</sup> <sup>_<u>E</u>_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,h_</sup> 0 _≤_ Γ <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_ <sup>_≤_</sup> <sup>1</sup> (25) _El_ <sup>_fc_</sup> _,t_ <sup>_,T_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,T_</sup> = _El_ <sup>_fc_</sup> _,t_ <sup>_,e_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,e_</sup> <sup>+</sup> <sup>_<u>E</u>_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,h_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,h_</sup> (32) where _D_ <sup>_s_</sup> _j_ where _D_ <sup>_s_</sup> _j_ <sup>denotes</sup> <sup>the</sup> <sup>total</sup> <sup>number</sup> <sup>of</sup> <sup>corner</sup> <sup>points</sup> <sup>for</sup> <sup>the</sup> _j_ <sup>_th_</sup> CHP in sub-region _s_ and the coefficient Γ <sup>_d_</sup> _j,_ <sup>_s_</sup> _t_ <sup>should satisfy</sup> constraints (24) and (25); - _xchp_ <sup>_d_</sup> <sup>_s_</sup> <sup>_, yd_</sup> _chp_ <sup>_s_</sup> - represents the electricity <sup>_I fc_</sup> _l,t_ <sup>_≤_</sup> <sup>_E_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,e_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,e_</sup> <sup>+</sup> <sup>_<u>E</u>_</sup> _~~l~~_ <sup>_fc_</sup> _,t_ <sup>_,h_</sup> _~~l~~_ <sup>_fc_</sup> _,t_ <sup>_,h_</sup> <sup>_≤_</sup> <sup>_E_</sup> _l_ <sup>_fc_</sup> _,_ _l_ <sup>_fc_</sup> _,_ max <sup>_.I_</sup> _l_ <sup>_fc_</sup> _,t_ _l_ <sup>_fc_</sup> _,t_ (33) - _xchp_ <sup>_d_</sup> <sup>_s_</sup> _xchp_ <sup>_d_</sup> <sup>_s_</sup> <sup>_, yd_</sup> _chp_ <sup>_s_</sup> _chp_ constraints (24) and (25); - _xchp_ <sup>_d_</sup> <sup>_s_</sup> <sup>_, yd_</sup> _chp_ <sup>_s_</sup> - represents the electricity and thermal generations related to the corner point _d_ <sup>_s_</sup> ; _Vj_ <sup>_s_</sup> _,t_ <sup>is</sup> a binary variable indicating operation in the _s_ <sup>_th_</sup> subregion. _El_ <sup>_fc_</sup> _,_ _l_ <sup>_fc_</sup> _,_ min <sup>_.I fc_</sup> _l,t_ _D._ _BIOMASS-BASED BOILER UNITS_ The _m_ <sup>_th_</sup> Biomass-based boiler’s operating cost is modeled in (26). Based on the energy conservation rules, the thermal energy produced by the biomass-based boiler is calculated by (27)-(29), while it is restricted within acceptable limits by constraint (30) [8]. where _<u>E</u>_ <sup>_fc,h_</sup>, _E_ <sup>_fc,e_</sup>, and _TER_ <sup>_fc_</sup> are equivalent electric power for hydrogen production, electrical output power, and the thermal to electrical power ratio, respectively. The amount of stored hydrogen and charged/discharged hydrogen can be formulated as follows: _T_ 2 <sup>_in_</sup> _l,t_ <sup>_in_</sup> _l,t_ <sup>=</sup> <sup>_<u>E</u>_</sup> <sup>_fc_</sup> _l,t_ <sup>_,h_</sup> _l,dch_ _T_ 2 _Tl_ <sup>_fc_</sup> _,t_ _l_ <sup>_fc_</sup> _,t_ <sup>=</sup> <sup>_T_</sup> <sup>2</sup> <sup>_T_</sup> _l_ <sup>_fc_</sup> _,t_ _l_ <sup>_fc_</sup> _,t−_ 1 <sup>+</sup> - _ηl_ <sup>_T_</sup> _,ch_ <sup>2</sup> <sup>_T_</sup> _l,t_ - _T_ 2 _outl,t_ <sup>�</sup> _ηl_ <sup>_T_</sup> _,dch_ <sup>2</sup> <sup>_T_</sup> _l_ <sup>_T_</sup> _,ch_ <sup>2</sup> <sup>_T_</sup> <sup>_.T_</sup> <sup>2</sup> _l_ <sup>_in_</sup> _,t_ - _−_ (34) <sup>_fc_</sup> _l,t_ <sup>_,h_</sup> <sup>_.ψE_</sup> <sup>2</sup> <sup>_T_</sup> (35) _m_ <sup>_bm_</sup> (26) _m_ <sup>_bm_</sup> _, t_ <sup>_.α_</sup> _m_ <sup>_bm_</sup> _Cm_ <sup>_bm_</sup> _, t_ - _Tm_ <sup>_bm_</sup> _, t_ - _Tm_ <sup>_bm_</sup> _, t_ - = _Tm_ <sup>_bm_</sup> _, t_ _T_ 2 <sup>_out_</sup> _l,t_ _fc,h_ _l,t_ <sup>_.ψE_</sup> <sup>2</sup> <sup>_T_</sup> (36) _T_ 2 <sup>_out_</sup> _l,t_ <sup>=</sup> <sup>_E_</sup> _m_ <sup>_bm_</sup> _,_ _t_ <sup>=</sup> <sup>_<u>ϑbm. ς</u>_</sup> <sup>_bm. VOLbm_</sup> _T_ <sup>_bm_</sup> _<u>κ</u>_ <sup>_bm_</sup> 1 _−_ <u>�</u> _THR_ <sup>_bm_</sup> <sup>_. πbm_</sup> <sup><u>�</u></sup> _−_ _HR_ <sup>_bm_</sup> <sup>_. πbm_</sup> <sup><u>�</u></sup> _−_ 1 + _κ_ <sup>_bm_</sup> _Tm_ <sup>_bm_</sup> _,_ _THR_ <sup>_bm_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_≤_</sup> <sup>_T_</sup> <sup>2</sup> <sup>_T_</sup> _l_ <sup>_fc_</sup> _,_ _l_ <sup>_fc_</sup> _,_ max (37) _T_ 2 _Tl_ <sup>_fc_</sup> _,_ _Tl_ <sup>_fc_</sup> _,_ min <sup>_≤_</sup> <sup>_T_</sup> <sup>2</sup> <sup>_T_</sup> _l_ <sup>_fc_</sup> _,t_ _HR_ (27) _κ_ <sup>_bm_</sup> = _α_ 1 <sup>_bmeα_</sup> 2 <sup>_bm_</sup> <sup>_. IVS_</sup> + _α_ 3 <sup>_bm_</sup> (28) _T_ 2 <sup>_out_</sup> _l,_ <sup>_out_</sup> _l,_ min <sup>_.I T_</sup> _l,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,dch_</sup> <sup>_in_</sup> _l,_ min <sup>_.I T_</sup> _l,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,ch_</sup> 2 <sup>_in_</sup> _l,t_ <sup>_≤_</sup> <sup>_T_</sup> <sup>2</sup> _l_ <sup>_in_</sup> _,_ _T_ 2 <sup>_in_</sup> _l,_ <sup>_I T_</sup> _l,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,ch_</sup> _≤_ _T_ 2 <sup>_in_</sup> _l,t_ _l_ <sup>_in_</sup> _,_ max <sup>_.I_</sup> _l_ <sup>_T_</sup> _,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,ch_</sup> _l_ <sup>_T_</sup> _,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,ch_</sup> (38) <sup>_out_</sup> _l,t_ <sup>_≤_</sup> <sup>_T_</sup> <sup>2</sup> _l_ <sup>_out_</sup> _,_ <sup>_T_</sup> _l,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,dch_</sup> _≤_ _T_ 2 <sup>_out_</sup> _l,t_ _l_ <sup>_out_</sup> _,_ max <sup>_.I_</sup> _l_ <sup>_T_</sup> _,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,dch_</sup> _l_ <sup>_T_</sup> _,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,dch_</sup> (39) _Tm_ <sup>_bm_</sup> _, t_ _m_ <sup>_bm_</sup> _, t_ <sup>=</sup> <sup>_ϖ_</sup> _m_ <sup>_bm_</sup> _, t_ _m_ <sup>_bm_</sup> _, t_ <sup>_.CV bm.η_</sup> _m_ <sup>_bm_</sup> _m_ <sup>_bm_</sup> (29) _Il_ <sup>_T_</sup> _,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,ch_</sup> _Il_ <sup>_T_</sup> _,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,ch_</sup> + _Il_ <sup>_T_</sup> _,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,dch_</sup> _l_ <sup>_T_</sup> _,t_ <sup>2</sup> <sup>_T_</sup> <sup>_,dch_</sup> _≤_ 1 (40) _Tm_ <sup>_bm_</sup> _,_ _m_ <sup>_bm_</sup> _,_ min <sup>_.I bm_</sup> _m, t_ <sup>_bm_</sup> _m, t_ <sup>_≤_</sup> <sup>_T_</sup> _m_ <sup>_bm_</sup> _, t_ _m_ <sup>_bm_</sup> _, t_ <sup>_≤_</sup> <sup>_T_</sup> _m_ <sup>_bm_</sup> _,_ _m_ <sup>_bm_</sup> _,_ max <sup>_.I bm_</sup> _m, t_ <sup>_bm_</sup> _m, t_ (30) where _ψ_ <sup>_E_</sup> <sup>2</sup> <sup>_T_</sup>, _T_ 2 <sup>_in/out_</sup>, and _T_ 2 _T_ indicate the hydrogen (kg) to electric power (kW) ratio, equivalent charged/discharged hydrogen, and stored hydrogen. Most existing studies on FC consider its efficiency to be constant, whereas it can vary according to the amount of electricity produced. Based on Fig. 4, the thermal to electrical power ratio and the efficiency are functions of the part load ratio variable [53]. Equation (41) gives the total operating cost of the FC unit. where _αm_ <sup>_bm_</sup> _m_ <sup>_bm_</sup> <sup>,</sup> <sup>_ϖ_</sup> _m_ <sup>_bm_</sup> <sup>,</sup> _m_ <sup>_bm_</sup> <sup>,</sup> <sup>_CV bm_</sup> <sup>,</sup> <sup>and</sup> <sup>_η_</sup> _m_ <sup>_bm_</sup> where _αm_ <sup>_bm_</sup> <sup>,</sup> <sup>_ϖ_</sup> _m_ <sup>_bm_</sup> <sup>,</sup> <sup>_CV bm_</sup> <sup>,</sup> <sup>and</sup> <sup>_η_</sup> _m_ <sup>_bm_</sup> <sup>denote</sup> <sup>the</sup> <sup>the</sup> <sup>cost</sup> <sup>coeffi-</sup> cient, mass of injected biomass feedstock, calorific value of biomass feedstock, and efficiency of the _m_ <sup>_th_</sup> biomass-based boiler, respectively; _κ_ <sup>_bm_</sup> is the sability and process rate kinetic parameter; _π_ <sup>_bm_</sup> is the thermophilic and mesophilic digestion’s micro-organism growth rate; _ϑ_ <sup>_bm_</sup>, _ς_ <sup>_bm_</sup>, _THR_ <sup>_bm_</sup> <sup>and</sup> <sup>_VOLbm_</sup> <sup>rep-</sup> micro-organism growth rate; _ϑ_ <sup>_bm_</sup>, _ς_ <sup>_bm_</sup>, _THR_ <sup>_bm_</sup> <sup>and</sup> <sup>_VOLbm_</sup> <sup>rep-</sup> resent biogas biochemical potential, influent volatile solid concentration, hydraulic retention time and digester’s volume, respectively. The nonlinear relationship between biogas production and temperature is illustrated in Fig. 3. - _El_ <sup>_fc_</sup> _<u>,t</u>_ <sup>_,T_</sup> _<u>l</u>_ <sup>_fc_</sup> _<u>,t</u>_ <sup>_,T_</sup> <sup>_π_</sup> _<u>t</u>_ <sup>_ng_</sup> _<u>t</u>_ _ηl_ <sup>_fc_</sup> _,t_ _l,t_ = _l,t_ _Cl_ <sup>_fc_</sup> _, t_ - _El_ <sup>_fc_</sup> _,t_ <sup>_,e_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,e,_</sup> <sup>_<u>e</u>_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,h_</sup> _l,t_ - _Cl_ <sup>_fc,OM_</sup> _l_ <sup>_fc,OM_</sup> _.El_ <sup>_fc_</sup> _,t_ <sup>_,T_</sup> _l,t_ (41) + - _Cl_ <sup>_fc,p_</sup> _l_ <sup>_fc,p_</sup> _<u>.E</u>_ <sup>_fc_</sup> _l,t_ <sup>_,h_</sup> + 6 VOLUME 11 2023 FIGURE 3. Nonlinear relationship between biogas production and temperature. _F._ _POWER BALANCE_ During each time interval _t_, the amount of electrical and thermal power produced and consumed should be equal, as stated in (42) and (43). not require discretization, which is computationally expensive, it allows for more effective exploration of the action space. Therefore, obtaining an optimum control decision requires fewer iterations than other techniques regardless of the type of problem encountered. And more importantly, the multi-carrier energy system’s infrastructure is controlled more smoothly than when they are regulated at a discrete level. DDPG assesses the cost-benefit of selecting a control signal over a given period, _at_ _∈At_, while making decisions in each state of the system using Q-value, _Q_ ( _st_ _, at_ ). According to the Bellman equation, the Q-value of any action, _at_, at state _st_ can be calculated based on the optimal action’s Q-value at state _st_ +1 as follows. _l,t_ (42) _i∈NC_ _k∈NB_ _Ei_ <sup>_c_</sup> _,_ _j∈NCHP_ _i_ <sup>_c_</sup> _,t_ <sup>+</sup> _Ej_ <sup>_chp_</sup> _,t_ - _El_ <sup>_fc_</sup> _,t_ <sup>_.e_</sup> _j∈NCHP_ _j_ <sup>_chp_</sup> _,t_ <sup>+</sup> <sup>�</sup> _l∈NFC_ _l_ <sup>_fc_</sup> _,t_ <sup>_.e_</sup> <sup>+</sup> <sup>_E_</sup> <sup>¯</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,h_</sup> _t_ <sup>_bes_</sup> + _Et_ <sup>_pv_</sup> _t_ + _Et_ <sup>_bes_</sup> _t_ <sup>_pv_</sup> + _Et_ <sup>_grid_</sup> _t_ <sup>_grid_</sup> = _Et_ <sup>_l_</sup> _Tk_ <sup>_b_</sup> _k_ <sup>_b_</sup> _,t_ <sup>+</sup> _Tj_ <sup>_chp_</sup> _,t_ _j_ <sup>_chp_</sup> _,t_ <sup>+</sup> <sup>�</sup> _l∈NFC_ _Tl_ <sup>_fc_</sup> _,t_ _t_ <sup>_bt_</sup> = _Tt_ <sup>_l_</sup> _t_ <sup>_l_</sup> <sup>+</sup> <sup>_T sv_</sup> _t_ _t_ + _m∈NBM_ _Tm_ <sup>_bm_</sup> _,t_ _m_ <sup>_bm_</sup> _,t_ <sup>+</sup> <sup>_T_</sup> _t_ <sup>_bt_</sup> (43) where _E_ <sup>_grid_</sup>, _E_ <sup>_bes_</sup>, and _E_ <sup>_l_</sup> indicate the amount of power exchange with the upstream network, the amount of power charged/discharged, and the electrical demand, respectively. _T_ <sup>_l_</sup>, _T_ <sup>_bt_</sup>, and _T_ <sup>_sv_</sup> represent the thermal demand, thermal power charged/discharged, and the slack variable [54], respectively. Detailed information on electrical and thermal storage systems is available in [3]. _G._ _OBJECTIVE FUNCTION_ In the dynamic scheduling problem for biomass-based energy hub, the objective is to minimize the system operating cost, as stated in (44). where _γ_ _∈_ [0 _,_ 1] and _R_ represent the discount factor and reward function, respectively. The energy hub operator, however, does not have any information about either the most effective action at state _st_ +1 or what its value would be over time. The DDPG method addresses this challenge by implementing two separate DNNs. The most beneficial action at state _st_ +1 is estimated by the actor network, _µ_ ( _st |θ_ <sup>_µ_</sup> ), while the critic network, _Q_ - _st_ _, at_ �� _θQ_ �, has the responsibility of estimating _Q_ ( _st_ _, at_ ) = _R_ ( _st_ _, at_ ) + _γ_ E - _at_ +1max _∈At_ +1 <sup>_Q_</sup> <sup>(</sup> <sup>_st_</sup> <sup>+1</sup> <sup>_, at_</sup> <sup>+1)</sup> (45) + <sup>�</sup> _j∈NCHP_    - _st_ _, at_ _Ci_ <sup>_c_</sup> _,t_ _i_ <sup>_c_</sup> _,t_ <sup>+</sup> <sup>�</sup> _k∈NB_ _Ck_ <sup>_b_</sup> _k_ <sup>_b_</sup> _,t_ <sup>+</sup> _m∈NBM_ _Cm_ <sup>_bm_</sup> _,t_    _i∈NC_ _OC_ = _t∈NT_ + <sup>�</sup> network, _Q_ - _st_ _, at_ �� _θQ_ �, has the responsibility of estimating the Q-value of action _at_ at state _st_ . The actor and critic network weight vectors, _θ_ <sup>_µ_</sup> and _θ_ <sup>_Q_</sup>, are continuously updated based on the observed rewards at each time step during the training process. Using the trained networks, the Q-value can be derived as follows: _t_ (44) _Cj_ <sup>_chp_</sup> _,t_ _j_ <sup>_chp_</sup> _,t_ <sup>+</sup> <sup>�</sup> _l∈NFC_ _Cl_ <sup>_fc_</sup> _,_ _l_ <sup>_fc_</sup> _,t_ <sup>+</sup> <sup>_C_</sup> _t_ <sup>_grid_</sup> IV. DEEP DETERMINISTIC POLICY GRADIENT ALGORITHM This section discusses the main structure of the proposed optimal control strategy using the actor-critic DRL algorithm. Since DDPG provides continuous action spaces and does �� _θQ_ �� (46) - _st_ +1 _, µ_ ( _st_ +1 _|θ_ <sup>_µ_</sup> ) _Q_ ( _st_ _, at_ ) _≈R_ ( _st_ _, at_ ) + _γ_ E - _Q_ VOLUME 11 2023 7 Par <mark>t load ra</mark> tio FIGURE 4. An illustration of the FC unit’s dynamic performance curve. Actor networks respond to sampled states of a system by taking action. Then, the two networks can be simultaneously trained according to the received reward. The _st_ and max _Q_ - _st_ _, at_ �� _θQ_ - serve as the input and the output for the ac where _N_ is the size of the mini-batch, and _Yi_ represents the measured value function as follows. (49) ��� _θµ′_ ���� _θQ′_ - _st_ +1 _, µ_ _st_ +1 max _Q_ - _st_ _, at_ �� _θQ_ - serve as the input and the output for the ac _a_ tor network, while the critic network takes ( _st_ _, at_ ), where _at_ = _µ_ ( _st |θ_ <sup>_µ_</sup> ), and _Rt_ as the input and the output, respectively. A replay buffer consisting of samples from different time steps, ( _st_ _, at_ _, Rt_ _, st_ +1), is employed to reduce correlation-induced errors during updating the networks. Copies of the original actor and critic networks, the target networks, are taken and gradually updated to make the training process more stable. Moreover, the actor network is enhanced with a correlated stochastic noise signal to improve exploration during the training process. The most commonly used random noises are Ornstein-Uhlenbeck and Gaussian noises. An OrnsteinUhlenbeck noise can be used to simulate time-related noise data. The Ornstein-Uhlenbeck process is useful for solving physical control problems that are inertia-driven. Through this perturbation, the DDPG agent is more able to explore and achieve faster convergence as a result. The signal Ω is modeled by employing the Ornstein-Uhlenbeck procedure, as stated in (47). _Yi_ = _R_ ( _st_ _, at_ ) + _Q_ max _Q_ _a_ - _st_ _, at_ Meanwhile, the actor network needs to be trained by (50). _∇θµL_ ( _θ_ <sup>_µ_</sup> ) = <sup><u>1</u></sup> _N_ _i∈N_ �� _θQ_ - _∇θµµ_ ( _si |θ_ <sup>_µ_</sup> ) (50) _∇aQ_ - _si, µ_ ( _si |θ_ <sup>_µ_</sup> ) The final step in the process involves gradually updating the target networks with the smoothing factor _τ_, as stated in (51) and (52). _θ_ <sup>_µ′_</sup> = (1 _−_ _τ_ ) _θ_ <sup>_µ′_</sup> + _τθ_ <sup>_µ_</sup> (51) _θ_ <sup>_Q′_</sup> = (1 _−_ _τ_ ) _θ_ <sup>_Q′_</sup> + _τθ_ <sup>_Q_</sup> (52) In the dynamic dispatch problem of the multi-carrier energy system, the state and action vectors can be defined by (53) and (54), respectively. _t_ <sup>_pv, π_</sup> _t_ <sup>_e_</sup> _t_ <sup>_e, π_</sup> _t_ <sup>_ng_</sup> _t_ <sup>_ng, SoC_</sup> _t_ <sup>_bes_</sup> _t_ <sup>_bes_</sup> _, SoCt_ <sup>_bt_</sup> _t_ <sup>_bt_</sup> <sup>_, E_</sup> _t_ <sup>_l_</sup> _t_ <sup>_l, T_</sup> _t_ <sup>_l_</sup> _t_ - _Et_ <sup>_pv_</sup> _t_ <sup>_pv,_</sup> <sup>ˆ</sup> <sup>_E_</sup> _t_ <sup>_pv_</sup> _i_ <sup>_c_</sup> _,t_ <sup>_, E_</sup> _j_ <sup>_chp_</sup> _,t_ (53) _κTs_ + Ω <sup>_σ_</sup> _n_ - _Ts_ (47) Ω <sup>_t_</sup> = Ω <sup>_t−_</sup> <sup>1</sup> + Ω <sup>_mean_</sup> _−_ Ω <sup>_t−_</sup> <sup>1�</sup> _st_ = _at_ = - _Ei_ <sup>_c_</sup> _,_ _j_ <sup>_chp_</sup> _,t_ <sup>_, T_</sup> _k_ <sup>_b_</sup> _,_ _l_ <sup>_fc_</sup> _,t_ <sup>_,h, E_</sup> _t_ <sup>_bes_</sup> _t_ <sup>_bes_</sup> _, Tt_ <sup>_bt_</sup> _t_ _k_ <sup>_b_</sup> _,t_ <sup>_, T_</sup> _m_ <sup>_bm_</sup> _,t_ _m_ <sup>_bm_</sup> _,t_ <sup>_, E_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,e_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,e, E_</sup> _l_ <sup>_fc_</sup> _,t_ <sup>_,h_</sup> (54) where Ω _σ_ and Ω _mean_ denote the variance of the noise model and the mean value, respectively. _κ_ and _n_ _∈_ [0 _,_ 1] represent the mean attraction constant and a uniformly generated random number, respectively. The critic network is trained using _L_ - _θ_ <sup>_Q_</sup> <sup>�</sup> as the loss function. - _θ_ <sup>_Q_</sup> <sup>�</sup> as the loss function. _i∈N_ _ℑ_ ( _st_ _, at_ _, ωt_ ) governs the transition from state _st_ to state _st_ +1. It’s not just the decision-making signal _at_ that determines transitions, but also environmental uncertainty, _ωt_, that influences them. There are several exogenous factors, including energy consumption habits and solar irradiance, that influence the alignment of probabilistic models within this context. By learning the transition implicitly from collected data samples, a DRL approach can overcome this challenge without the need for statistical models. �� _θQ_ - _−Yi_ �2 (48) = <sup><u>1</u></sup> _N_ - _Q_ - _si, µ_ ( _si |θ_ <sup>_µ_</sup> ) _L_ - _θ_ <sup>_Q_</sup> <sup>�</sup> 8 VOLUME 11 2023 A DDPG reward is calculated by the agent by adjusting the parameters as follows: _R_ ( _st_ _, at_ ) = _−_ ( _OCt_ + _Ct_ <sup>_Penalty_</sup> ) (55) TABLE 1. The characteristics of FC unit. Characteristics Value Characteristics Value _Emax_ <sup>_fc,T_</sup> _max_ <sup>_fc,T_</sup> <sup>(MW)</sup> 1.0 _ηch_ <sup>_T_</sup> <sup>2</sup> <sup>_T_</sup> _ch_ <sup>_T_</sup> <sup>2</sup> <sup>_T_</sup> 0.95 Training with DNN makes DRL-based techniques nonconstrained, ignoring the physical limitations of dynamic scheduling. Therefore, the physical constraints cannot be addressed systemically through this process. Nonetheless, energy systems scheduling need to address security and reliability concerns. For a variable _ℵ∈_ - _ℵ_ <sup>min</sup> _, ℵ_ <sup>max�</sup> a penalty term is added to the reward function to address the constraint violation problem,, as stated in (56) and (57). _πt_ <sup>_ng_</sup> ($/MWh) 40 _C_ <sup>_fc,p_</sup> ($/MWh) 10 <sup>_in_</sup> _max_ <sup>(MW/h)</sup> 0.5 _T_ 2 _Tmax_ <sup>_fc_</sup> _T_ 2 <sup>_in_</sup> _max_ <sup>_fc_</sup> <sup>(MWh)</sup> 2.0 _T_ 2 <sup>_out_</sup> _<u>max</u>_ <sup>(MW/h)</sup> 0.5 _C_ <sup>_fc,OM_</sup> ($/MWh) 10 _C_ <sup>_Penalty_</sup> = _ℵi∈Nℵi_ _ℑi.Penaltyℵi_ (56) _Penaltyℵ_ = ln ��� _ℵ−ℵ_ min� + _|ℵ−ℵ_ max _|_ 2 _._ ( _ℵ_ <sup>max</sup> _−ℵ_ <sup>min</sup> ) (57) TABLE 2. The characteristics of energy storage units. Characteristics Value Characteristics Value _E_ <sup>_bes_</sup> 0.8 _T_ <sup>_bt_</sup> 4 _η_ <sup>_bes_</sup> 0.9 _η_ <sup>_bt_</sup> 0.6 _E_ <sup>_bes,ch_</sup> 0.4 _T_ <sup>_bt,ch_</sup> 1 _E_ <sup>_bes,dch_</sup> 0.4 _T_ <sup>_bt,dch_</sup> 1 _B._ _COMPARATIVE RESULTS AND ANALYSIS_ In this subsection, the SFNAS algorithm is employed to identify the most accurate architectures for the solar irradiance forecasting task. The CNN and LSTM/BLSTM/GRU networks’ hyperparameters significantly affect the model’s performance in a complicated manner. However, trying to model the complex interactions between the hyperparameters or manually examining a large number of possible architectures is challenging and time-consuming. To overcome these limitations, the SFNAS algorithm is proposed and implemented to efficiently select the networks’ architectures. Algorithm 2 shows the procedure of the proposed SFNAS methodology. The goal is to find optimized models that are capable of better solar irradiance forecasting given the baseline structure of the model discussed in the Section II. For this purpose, we seek to optimize the following parameters of the representation network, shown in Fig. 5: _•_ Number of convolutional layers in the CNN network ( _N_ <sup>_C_</sup> ) _•_ Number of hidden units in the first LSTM/BLSTM/GRU layer ( _N_ <sup>_B_</sup> <sup>1</sup> ) _•_ Number of hidden units in the second LSTM/BLSTM/GRU layer ( _N_ <sup>_B_</sup> <sup>2</sup> ) _•_ Number of hidden units in the third LSTM/BLSTM/GRU layer ( _N_ <sup>_B_</sup> <sup>3</sup> ) Based on our previous work [5], we find that _N_ <sup>_B_</sup> <sup>1</sup> and _N_ <sup>_B_</sup> <sup>2</sup> with fewer than 100 hidden units are likely to exhibit underfitting, while overfitting occurs when the number is greater than 400. To reduce the number of genotype representations from the range 100 to 400, we divide the range by 25 before exploring the two LSTM/BLSTM/GRU layers. In order to translate genotype to phenotype, a multiplier, 25, is assigned to the genotype. According to our previous knowledge, bounds are also set for the other parameters. Our experiments were conducted using the parameters listed in Table 3 as the lower and upper bounds. V. NUMERICAL STUDY _A._ _DATA AND CONFIGURATION_ The biomass-based energy hub shown in Fig. 5 is used as a case study to evaluate the effectiveness of the proposed SFNAS-DDPG dynamic scheduling approach. The proposed SFNAS-DDPG strategy involves scheduling and operating a multi-source multi-product facility that participates in the energy market as a coupled multi-carrier energy supply. The energy loads and prices are adapted from [55], [56], respectively. Based on a test case presented in [57], the economic data and operational constraints for the generation plants are derived and scaled. The maximum capacities of heatonly, PV, and power-only units are 2.695 MWth, 0.75 MW, and 1.25 MW, respectively. Moreover, the data of the 0.6 MWth biomass-based boiler and the 1 MW FC units are taken from [12], [53], respectively. Other data corresponding to the available units are listed in Tables 1 and 2. Both the sky images and numerical time series data are obtained from the Solar Radiation Research Laboratory (SRRL) dataset of the National Renewable Energy Laboratory (NREL), located in Colorado [58]. Based on the FL settings, the SFNAS approach is used directly to search for the optimal architecture of the forecasting network using supervisory training loss reshaping. As a representation network, the output of the CNNGRU model is concatenated with the states of the energy hub before being fed into an actor network. For the critic and actor networks, learning rates of 0.001 and 0.0001 are selected, respectively. The mini-batch of random experience and the discount factor have been selected as 0.95 and 64, respectively. The parameters of the noise model are taken from [26]. Algorithm 1 demonstrates the training process of making control decisions using the proposed SFNAS-DDPG methodology. The training process of the proposed technique is performed by Keras library and TensorFlow as the backend on a workstation with an NVIDIA GeForce GTX 1070 GPU and 32 GB of RAM. VOLUME 11 2023 9 Energy Hub Dynamic Scheduling Action Vector Actor Network Policy Gradient Critic Network Loss Function Main Grid PV Fuel Power-only CHP Fuel Cell Heat-only Update Update ## + Online Actor Network Online Critic Network Soft Update Soft Update Electrical Storage Heat Buffer Tank Electrical Demand Thermal Demand Online Critic Network Biomass Fuel Biomass-based Boiler Environment ## + Online Actor Network Noise Signal _Ω_ Target Actor Network Experience Replay Buffer Target Critic Network ... ... Representation Network Designed by SFNAS ## + Prioritized Sample Mini-Batch FIGURE 5. The schematic of the proposed SFNAS-DDPG framework for the dynamic scheduling of biomass-based energy hub. FIGURE 6. The evolution of weight ( _λi_ ) for the gradient term in the momentum update. 10 VOLUME 11 2023 (a) (b) (c) (d) (e) (f) FIGURE 7. The evolution of training and validation losses of the proposed CNN-LSTM/BLSTM/GRU models (a) baseline NAS-based LSTM, (b) SFNAS-based LSTM, (c) baseline NAS-based BLSTM, (d) SFNAS-based BLSTM, (e) baseline NAS-based GRU, and (f) SFNAS-based GRU . - _N_ <sup>_Bi_</sup> _N_ <sup>_Bi_</sup> _≤_ _N_ <sup>_Bi−_</sup> <sup>1</sup> (58) _N_ <sup>_Bi−_</sup> <sup>1</sup> _N_ <sup>_Bi_</sup> _≥_ _N_ <sup>_Bi−_</sup> <sup>1</sup> From the viewpoint of the EA-based NAS, a genotype then takes the form of a sequence of integers based on the values indicated in Table 3 and phenotypes are the resulting structures. In the proposed stacking model, hierarchical features can be derived from the feature representation of the previous layer and the next layer serves as a layer of abstraction. This hierarchical feature abstraction cannot be achieved when the next layer (i.e., _N_ <sup>_B_</sup> <sup>2</sup> ) is greater than the previous layer (i.e., _N_ <sup>_B_</sup> <sup>1</sup> ) and results in overfitting. As a result, to ensure that the _N_ <sup>_B_</sup> <sup>2</sup> is equal to or smaller than _N_ <sup>_B_</sup> <sup>1</sup> when converting genotypes to phenotypes, a correction mechanism is applied on _N_ <sup>_B_</sup> <sup>2</sup> (similar correction mechanism is also considered for ( _N_ <sup>_B_</sup> <sup>3</sup> )) as follows: _N_ <sup>_Bi_</sup> = The population is initialized by randomly selecting _N_ <sup>_p_</sup> _−_ 1 individuals. The so-called super-fit mechanism is employed to initialize the remaining population based on the parameters of the structure proposed in [5] to begin the evolutionary process with a sufficiently effective individual. An individual’s fitness is determined by evaluating the created phenotype for the given genotype based on the root means square error (RMSE), mean absolute error (MAE), and mean VOLUME 11 2023 11 Algorithm 1: Offline training process of the DDPG <u>agent</u> Algorithm 2: <u>SFNAS algorithm.</u> for _epoch ∈{number_ _of_ _epochs}_ do Initialize: Initialize the weights of the actor and critic networks randomly: _µ_ ( _s |θ_ <sup>_µ_</sup> ): _θ_ <sup>_µ_</sup> = _θ_ <sup>_µ_</sup> <sup>0</sup> _Q_ - _s, a_ �� _θQ_ �: _θ_ <sup>_Q_</sup> = _θ_ <sup>_Q_</sup> <sup>0</sup> Compute training loss architecture _Zi_ <sup>_∗_</sup> <sup>:</sup> _Ji_ ( _θi, ωi_ ) := _∥y −_ ˆ _yn∥_ <sup>2</sup> + _L_ 2( _θi_ ) for _agent_ _∈{number_ _of_ _agents}_ do Forming the best architecture _Zi_ <sup>_∗_</sup> _Q_ - _s, a_ �� _θQ_ �: _θ_ <sup>_Q_</sup> = _θ_ <sup>_Q_</sup> <sup>0</sup> Initialize Ω as a random process allowing exploration of actions and set up the experience replay buffer _M_ . for _i ∈_ _N_ <sup>_episodes_</sup> do Observe _st_ as the state space. Concatenate the output of the CNN-GRU network with the state space _st_ . for _t_ _∈_ _N_ <sup>_time_</sup> <sup>_intervals_</sup> do _ri_, to estimate the weights _λi_ end for Select the based agent based on: min _A_ <sup>[</sup> <sup>_ω_</sup> <sup>1</sup> <sup>_RMSE_</sup> <sup>+</sup> <sup>_ω_</sup> <sup>2</sup> <sup>_T_</sup> <sup>+</sup> <sup>_ω_</sup> <sup>3</sup> <sup>_N_</sup> <sup>]</sup> Forming the best architecture _Zi_ <sup>_∗_</sup> <sup>via agent’s</sup> NAS Compute training loss architecture _Zi_ <sup>_∗_</sup> <sup>:</sup> - _s, a_ end for Compute relative contribution of agent: _ri_ := _Ji_ ( _θi, ωi_ ) _/_ <sup>�</sup> _Ji_ ( _θi, ωi_ ) _Ji_ ( _θi, ωi_ ) _i_ Train the classifier using the relative contribution, Choose the dynamic scheduling action _at_ = _µ_ ( _st |θ_ <sup>_µ_</sup> ) + Ω _t_ . Solve (44) by taking energy hub control decision _at_ and receive _Rt_ as the immediate reward. Transfer to _st_ +1 as the new state. Store the transition ( _st_ _,_ _at_ _,_ _Rt_ _,_ _st_ +1) into _M_ . _k_ _←−_ _k_ + 1; if _batch_size ≤|M_ _|_ then Randomly select F = _{_ ( _sj, aj, Rj, sj_ +1) _}̸_ <sup>=</sup> _j_ =1 <sup>F</sup> <sup>as a mini-batch</sup> from _M_ . Minimize the loss function (48) to update the critic network.: _θ_ <sup>_Q_</sup> _←−_ _η_ <sup>_Q_</sup> _∇θQL_ - _θ_ <sup>_Q_</sup> <sup>�</sup> + _θ_ <sup>_Q_</sup> Use (50) and sampled policy gradient to update the actor network: _θ_ <sup>_µ_</sup> _←−_ _η_ <sup>_µ_</sup> _∇θµL_ ( _θ_ <sup>_µ_</sup> ) + _θ_ <sup>_µ_</sup> Use (51) and (52) to Update the target networks: _θ_ <sup>_Q_</sup> _←_ _θ_ <sup>_Q′_</sup> _θ_ <sup>_µ_</sup> _←_ _θ_ <sup>_µ′_</sup> end if end for end for absolute percentage error (MAPE) [5] Both crossover and mutation are used to achieve a reasonable balance between exploration and exploitation. A probability of _P_ <sup>_c_</sup> = _P_ <sup>_m_</sup> = 0.5 is applied to each operator independently. Based on the onepoint crossover methodology, individuals are firstly ranked according to their fitness, and then the 2 _n_ <sup>_th_</sup> and (2 _n_ + 1) <sup>_th_</sup> ones are selected for crossover ( _n_ _∈_ �0 _,_ <sup>_<u>N</u>_</sup> 2 <sup>_p_</sup> <sup>_−_</sup> <sup>1</sup> �). The pop ulation is then uniformly mutated, consisting of individuals generated by crossover and offspring who were not subjected to crossover. Mutation can occur between each architecture parameter (gene) and a value uniformly chosen from its range according to a probability _P_ <sup>_gm_</sup> . As a result of this approach, we can conduct searches relatively faster while minimizing disruptive mutations in individuals. The fitness of the parents for each offspring is checked when creating the population of the next generation. Then, to monotonically decrease the population’s mean fitness, offspring with better fitness than one of the parents replaces the worst parent. Table 4 shows the training time and test RMSE for the best architecture found by each method. According to the results, the proposed SF-NAS technique outperforms the baseline NAS approach in all architectures. Fig 6 illustrates the evolution of the weights ( _λ_ ) for the gradient term in the momentum update of the solar irradiance forecasting task. As can be seen from the evolution-based figures, the supervisor of the SFNAS provided the agents with guidance that ultimately led to a better optimization process. Moreover, the evolution of training and validation losses of the proposed CNN-LSTM/BLSTM/GRU networks is depicted in Fig. 7 for both baseline and SFNAS strategies. It can be seen from this figure that networks built with SFNAS exhibit smaller spikes and smoother convergence than those based on baseline NAS. Table 5 illustrates the average daily operational cost of the biomass-based energy hub using DDPG + state-of-the-art forecasting [6], DDPG + baseline NAS [59], and the proposed SFNAS-DDPG models. As can be seen from this table, the proposed framework, SFNAS-DDPG, has the lowest average daily operating cost when compared with other models. The TABLE 3. Hyperparameter bounds for SFNAS algorithm Lower Parameter bound Upper bound CNN network ( _N_ <sup>_C_</sup> ) 1 4 First LSTM/BLSTM/GRU layer ( _N_ <sup>_B_</sup> <sup>1</sup> ) 4 16 Second LSTM/BLSTM/GRU layer ( _N_ <sup>_B_</sup> <sup>2</sup> ) 4 16 Third LSTM/BLSTM/GRU layer ( _N_ <sup>_B_</sup> <sup>3</sup> ) 4 12 12 VOLUME 11 2023 TABLE 4. Forecasting Task Results for the Best Architectures Found by SFNAS and Baseline NAS. Network’s structure Test RMSE Average offline training time Baseline NAS [59] Proposed SFNAS Baseline NAS [59] Proposed SFNAS CNN-LSTM 66.23 63.37 4h 52min 4h 19min CNN-BLSTM 62.88 57.28 5h 47min 5h 11min CNN-GRU 62.35 56.51 4h 43min 4h 16min TABLE 5. The Average Daily Operating Cost for the Proposed Multi-Carrier Energy System. Scheduling Method Optimization Type Average Cost ($ _/_ day) Average Computing Time Profit Change (%) RO [60] model-based 7,187 1min 32s +32.7 SP [61] model-based 7,001 3min 08s +29.3 Stochastic/IGDT [3] model-based 6,516 4min 21s +20.3 DQN+2D-CNN-BLSTM [5] model-free 6,081 0.003s +12.3 DDPG + State-of-the-art model [6] model-free 5,416 0.008s 0% DDPG + Baseline NAS [59] model-free 5,156 0.005s -4.8% Proposed SFNAS-DDPG model-free 5,020 0.005s -7.3 % SFNAS-DDPG method has $5,020 per day average operating costs, which shows a 7.31% improvement over the baseline model (DDPG + State-of-the-art). This improvement is due to the fact that the operator has access to more accurate information about the uncertain parameter (PV generation in future hours), enabling the agent to take more efficient actions. VI. CONCLUSION This study presents SFNAS-DDPG as an improved actorcritic DRL framework for the optimal scheduling and operation of a multi-source multi-product facility, taking into account nonlinear characteristics of the facility components such as biogas production thermodynamics, dynamic efficiency of FCs, valve admission behavior of power generation systems, and CHPs’ non-convex operation regions. To help the DDPG agent choose the most efficient control policy, especially when PV power is highly intermittent on cloudy days, a hybrid CNN-GRU forecasting model that captures high levels of abstraction from sky images and numerical measurements is developed and employed. The novel SFNAS technique is proposed to learn the architecture and model parameters of the representation network. By utilizing supervisor-led training loss reshaping, the proposed SFNAS approach can be used directly to determine the optimal architecture based on the federated settings. As a result of our case studies, the proposed strategy, by selecting different network structures, is more accurate than the respective baseline forecasting methods. Consequently, The SFNAS-DDPG method has $4,590 per day average operating costs, which shows a 4.79% improvement over the baseline model (DRL+State-of the-art). While this study was geared toward exploring the effects of the proposed SFNAS methodology on improving actor-critic DRL framework’s control strategies, future work could study the effectiveness of replacing the proposed EAbased NAS with heterogeneous NAS methods. REFERENCES [1] A. Dolatabadi, B. Mohammadi-ivatloo, M. Abapour, and S. Tohidi, ‘‘Opti mal Stochastic Design of Wind Integrated Energy Hub,’’ _IEEE Trans. Ind._ _Inf._, vol. 13, DOI 10.1109/TII.2017.2664101, no. 5, pp. 2379–2388, 2017. [2] Y. Cheng, N. Zhang, Z. Lu, and C. Kang, ‘‘Planning Multiple Energy Systems Toward Low-Carbon Society: A Decentralized Approach,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 10, DOI 10.1109/TSG.2018.2870323, no. 5, pp. 4859–4869, 2019. [3] A. Dolatabadi, M. Jadidbonab, and B. Mohammadi-ivatloo, ‘‘Short-Term Scheduling Strategy for Wind-Based Energy Hub: A Hybrid Stochastic/IGDT Approach,’’ _IEEE_ _Trans._ _Sustainable_ _Energy_, vol. 10, DOI 10.1109/TSTE.2017.2788086, no. 1, pp. 438–448, 2019. [4] B. Zhou, D. Xu, C. Li, C. Y. Chung, Y. Cao, K. W. Chan, and Q. Wu, ‘‘Op timal Scheduling of Biogas-Solar-Wind Renewable Portfolio for Multicarrier Energy Supplies,’’ _IEEE Trans. Power Syst._, vol. 33, DOI 10.1109/TPWRS.2018.2833496, no. 6, pp. 6229–6239, 2018. [5] A. Dolatabadi, H. Abdeltawab, and Y. A.-R. I. Mohamed, ‘‘Deep reinforce ment learning-based self-scheduling strategy for a caes-pv system using accurate sky images-based forecasting,’’ _IEEE Trans. Power Syst._, vol. 38, DOI 10.1109/TPWRS.2022.3177704, no. 2, pp. 1608–1618, 2023. [6] A. Dolatabadi, H. Abdeltawab, and Y. A.-R. I. Mohamed, ‘‘A Novel Model Free Deep Reinforcement Learning Framework for Energy Management of a PV Integrated Energy Hub,’’ _IEEE Trans. Power Syst._, DOI 10.1109/TPWRS.2022.3212938, pp. 1–13, 2022. [7] P. Zhao, C. Gu, Z. Cao, Z. Hu, X. Zhang, X. Chen, I. Hernando-Gil, and Y. Ding, ‘‘Economic-Effective Multi-Energy Management Considering Voltage Regulation Networked With Energy Hubs,’’ _IEEE_ _Trans._ _Power_ _Syst._, vol. 36, DOI 10.1109/TPWRS.2020.3025861, no. 3, pp. 2503–2515, 2021. [8] C. Li, H. Yang, M. Shahidehpour, Z. Xu, B. Zhou, Y. Cao, and L. Zeng, ‘‘Optimal Planning of Islanded Integrated Energy System With SolarBiogas Energy Supply,’’ _IEEE_ _Trans._ _Sustainable_ _Energy_, vol. 11, DOI 10.1109/TSTE.2019.2958562, no. 4, pp. 2437–2448, 2020. VOLUME 11 2023 13 [9] H. Yang, C. Li, M. Shahidehpour, C. Zhang, B. Zhou, Q. Wu, and L. Zhou, ‘‘Multistage Expansion Planning of Integrated Biogas and Electric Power Delivery System Considering the Regional Availability of Biomass,’’ _IEEE_ _Trans._ _Sustainable_ _Energy_, vol. 12, DOI 10.1109/TSTE.2020.3025831, no. 2, pp. 920–930, 2021. [10] Y. Wang, S. Lou, Y. Wu, M. Miao, and S. Wang, ‘‘Operation strategy of a hybrid solar and biomass power plant in the electricity markets,’’ _Electr._ _Power Syst. Res._, vol. 167, DOI https://doi.org/10.1016/j.epsr.2018.10.035, pp. 183–191, 2019. [11] D. Xu, B. Zhou, K. W. Chan, C. Li, Q. Wu, B. Chen, and S. Xia, ‘‘Distributed Multienergy Coordination of Multimicrogrids With Biogas-Solar-Wind Renewables,’’ _IEEE_ _Trans._ _Ind._ _Inf._, vol. 15, DOI 10.1109/TII.2018.2877143, no. 6, pp. 3254–3266, 2019. [12] H. Khaloie, F. Vallée, C. S. Lai, J.-F. Toubeau, and N. D. Hatziargyriou, ‘‘Day-Ahead and Intraday Dispatch of an Integrated Biomass-Concentrated Solar System: A Multi-Objective RiskControlling Approach,’’ _IEEE_ _Trans._ _Power_ _Syst._, vol. 37, DOI 10.1109/TPWRS.2021.3096815, no. 1, pp. 701–714, 2022. [13] H. Khaloie, J.-F. Toubeau, F. Vallée, C. S. Lai, and L. L. Lai, ‘‘An Inno vative Coalitional Trading Model for a Biomass Power Plant Paired With Green Energy Resources,’’ _IEEE Trans. Sustainable Energy_, vol. 13, DOI 10.1109/TSTE.2021.3138777, no. 2, pp. 892–904, 2022. [14] S. Kim and H. Lim, ‘‘Reinforcement Learning Based Energy Management Algorithm for Smart Energy Buildings,’’ _Energies_, vol. 11, no. 8, p. 2010, 2018. [15] A. Ghadertootoonchi, M. M. Aghtaie, and M. Davoudi, ‘‘A Hy brid Linear Programming-Reinforcement Learning Method for Optimal Energy Hub Management,’’ _IEEE_ _Trans._ _Smart_ _Grid_, DOI 10.1109/TSG.2022.3197458, pp. 1–1, 2022. [16] S. Zhou, Z. Hu, W. Gu, M. Jiang, and X.-P. Zhang, ‘‘Artificial intelligence based smart energy community management: A reinforcement learning approach,’’ _CSEE_ _J._ _Power_ _Energy_ _Syst_, vol. 5, DOI 10.17775/CSEEJPES.2018.00840, no. 1, pp. 1–10, 2019. [17] V.-H. Bui, A. Hussain, and H.-M. Kim, ‘‘Double Deep _Q_ -Learning Based Distributed Operation of Battery Energy Storage System Considering Uncertainties,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 11, DOI 10.1109/TSG.2019.2924025, no. 1, pp. 457–469, 2020. [18] J. Wang, C. Jiang, K. Zhang, X. Hou, Y. Ren, and Y. Qian, ‘‘Distributed _Q_ Learning Aided Heterogeneous Network Association for Energy-Efficient IIoT,’’ _IEEE_ _Trans._ _Ind._ _Inf._, vol. 16, DOI 10.1109/TII.2019.2954334, no. 4, pp. 2756–2764, 2020. [19] Y. Wang, H. Tan, Y. Wu, and J. Peng, ‘‘Hybrid Electric Vehicle Energy Management With Computer Vision and Deep Reinforcement Learning,’’ _IEEE Trans. Ind. Inf._, vol. 17, DOI 10.1109/TII.2020.3015748, no. 6, pp. 3857–3868, 2021. [20] J. Duan, H. Xu, and W. Liu, ‘‘Q-Learning-Based Damping Control of Wide-Area Power Systems Under Cyber Uncertainties,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 9, DOI 10.1109/TSG.2017.2711599, no. 6, pp. 6408– 6418, 2018. [21] E. Mocanu, D. C. Mocanu, P. H. Nguyen, A. Liotta, M. E. Webber, M. Gibescu, and J. G. Slootweg, ‘‘On-Line Building Energy Optimization Using Deep Reinforcement Learning,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 10, DOI 10.1109/TSG.2018.2834219, no. 4, pp. 3698–3708, 2019. [22] J. Cao, D. Harrold, Z. Fan, T. Morstyn, D. Healey, and K. Li, ‘‘Deep Reinforcement Learning-Based Energy Storage Arbitrage With Accurate Lithium-Ion Battery Degradation Model,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 11, DOI 10.1109/TSG.2020.2986333, no. 5, pp. 4513–4521, 2020. [23] Z. Wan, H. Li, H. He, and D. Prokhorov, ‘‘Model-Free Real-Time EV Charging Scheduling Based on Deep Reinforcement Learning,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 10, DOI 10.1109/TSG.2018.2879572, no. 5, pp. 5246–5257, 2019. [24] Y. Liang, C. Guo, Z. Ding, and H. Hua, ‘‘Agent-Based Modeling in Electricity Market Using Deep Deterministic Policy Gradient Algorithm,’’ _IEEE_ _Trans._ _Power_ _Syst._, vol. 35, DOI 10.1109/TPWRS.2020.2999536, no. 6, pp. 4180–4192, 2020. [25] X. Sun and J. Qiu, ‘‘Two-Stage Volt/Var Control in Active Distribution Net works With Multi-Agent Deep Reinforcement Learning Method,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 12, DOI 10.1109/TSG.2021.3052998, no. 4, pp. 2903–2912, 2021. [26] F. Sanchez Gorostiza and F. M. Gonzalez-Longatt, ‘‘Deep Reinforce ment Learning-Based Controller for SOC Management of Multi-Electrical Energy Storage System,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 11, DOI 10.1109/TSG.2020.2996274, no. 6, pp. 5039–5050, 2020. [27] T. Elsken, J. H. Metzen, and F. Hutter, ‘‘Neural architecture search: A survey,’’ _The_ _Journal_ _of_ _Machine_ _Learning_ _Research_, vol. 20, no. 1, pp. 1997–2017, 2019. [28] M. Wistuba, A. Rawat, and T. Pedapati, ‘‘A survey on neural architecture search,’’ _arXiv preprint arXiv:1905.01392_, 2019. [29] P. Ren, Y. Xiao, X. Chang, P.-Y. Huang, Z. Li, X. Chen, and X. Wang, ‘‘A comprehensive survey of neural architecture search: Challenges and solutions,’’ _ACM_ _Computing_ _Surveys_ _(CSUR)_, vol. 54, no. 4, pp. 1–34, 2021. [30] Y. Liu, Y. Sun, B. Xue, M. Zhang, G. G. Yen, and K. C. Tan, ‘‘A Survey on Evolutionary Neural Architecture Search,’’ _IEEE Trans. Neural Networks_ _Learn. Syst._, DOI 10.1109/TNNLS.2021.3100554, pp. 1–21, 2021. [31] K. Swersky, D. Duvenaud, J. Snoek, F. Hutter, and M. A. Osborne, ‘‘Raiders of the lost architecture: Kernels for bayesian optimization in conditional parameter spaces,’’ _arXiv preprint arXiv:1409.4011_, 2014. [32] A. Zela, A. Klein, S. Falkner, and F. Hutter, ‘‘Towards automated deep learning: Efficient joint neural architecture and hyperparameter search,’’ _arXiv preprint arXiv:1807.06906_, 2018. [33] B. Baker, O. Gupta, N. Naik, and R. Raskar, ‘‘Designing neural network architectures using reinforcement learning,’’ _arXiv_ _preprint_ _arXiv:1611.02167_, 2016. [34] Z. Zhong, J. Yan, W. Wu, J. Shao, and C.-L. Liu, ‘‘Practical block wise neural network architecture generation,’’ in _2018_ _IEEE/CVF_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_, DOI 10.1109/CVPR.2018.00257, pp. 2423–2432, 2018. [35] B. Baker, O. Gupta, R. Raskar, and N. Naik, ‘‘Accelerating neu ral architecture search using performance prediction,’’ _arXiv_ _preprint_ _arXiv:1705.10823_, 2017. [36] H. Pham, M. Guan, B. Zoph, Q. Le, and J. Dean, ‘‘Efficient neural ar chitecture search via parameters sharing,’’ in _International conference on_ _machine learning_, pp. 4095–4104. PMLR, 2018. [37] A. Brock, T. Lim, J. M. Ritchie, and N. Weston, ‘‘Smash: one shot model architecture search through hypernetworks,’’ _arXiv_ _preprint_ _arXiv:1708.05344_, 2017. [38] G. Bender, P.-J. Kindermans, B. Zoph, V. Vasudevan, and Q. Le, ‘‘Under standing and simplifying one-shot architecture search,’’ in _International_ _conference on machine learning_, pp. 550–559. PMLR, 2018. [39] H. Cai, L. Zhu, and S. Han, ‘‘Proxylessnas: Direct neural architecture search on target task and hardware,’’ _arXiv_ _preprint_ _arXiv:1812.00332_, 2018. [40] H. Liu, K. Simonyan, and Y. Yang, ‘‘Darts: Differentiable architecture search,’’ _arXiv preprint arXiv:1806.09055_, 2018. [41] G. Li, G. Qian, I. C. Delgadillo, M. Muller, A. Thabet, and B. Ghanem, ‘‘Sgas: Sequential greedy architecture search,’’ in _Proceedings_ _of_ _the_ _IEEE/CVF_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_, pp. 1620–1630, 2020. [42] E. Real, S. Moore, A. Selle, S. Saxena, Y. L. Suematsu, J. Tan, Q. V. Le, and A. Kurakin, ‘‘Large-scale evolution of image classifiers,’’ in _International_ _Conference on Machine Learning_, pp. 2902–2911. PMLR, 2017. [43] M. Wistuba, ‘‘Deep learning architecture search by neuro-cell-based evo lution with function-preserving mutations,’’ in _Joint European Conference_ _on_ _Machine_ _Learning_ _and_ _Knowledge_ _Discovery_ _in_ _Databases_, pp. 243– 258. Springer, 2018. [44] D. Połap, ‘‘An adaptive genetic algorithm as a supporting mechanism for microscopy image analysis in a cascade of convolution neural networks,’’ _Applied Soft Computing_, vol. 97, p. 106824, 2020. [45] J. Konečn`y, H. B. McMahan, F. X. Yu, P. Richtárik, A. T. Suresh, and D. Bacon, ‘‘Federated learning: Strategies for improving communication efficiency,’’ _arXiv preprint arXiv:1610.05492_, 2016. [46] A. Dolatabadi, H. Abdeltawab, and Y. A.-R. I. Mohamed, ‘‘Hybrid Deep Learning-Based Model for Wind Speed Forecasting Based on DWPT and Bidirectional LSTM Network,’’ _IEEE Access_, vol. 8, pp. 229 219–229 232, 2020. [47] A. Dolatabadi, H. Abdeltawab, and Y. A.-R. I. Mohamed, ‘‘Deep spatial temporal 2-d cnn-blstm model for ultrashort-term lidar-assisted wind turbine’s power and fatigue load forecasting,’’ _IEEE Trans. Ind. Inf._, vol. 18, DOI 10.1109/TII.2021.3097716, no. 4, pp. 2342–2353, 2022. [48] H. Li, Z. Ren, Y. Xu, W. Li, and B. Hu, ‘‘A Multi-Data Driven Hybrid Learning Method for Weekly Photovoltaic Power Scenario Forecast,’’ _IEEE_ _Trans._ _Sustainable_, vol. 13, DOI 10.1109/TSTE.2021.3104656, no. 1, pp. 91–100, 2022. [49] S. Hochreiter and J. Schmidhuber, ‘‘Long short-term memory,’’ _Neural_ _computation_, vol. 9, no. 8, pp. 1735–1780, 1997. 14 VOLUME 11 2023 [50] H. Jahangir, H. Tayarani, S. S. Gougheri, M. A. Golkar, A. Ahmadian, and A. Elkamel, ‘‘Deep learning-based forecasting approach in smart grids with microclustering and bidirectional lstm network,’’ _IEEE Transactions_ _on Industrial Electronics_, vol. 68, no. 9, pp. 8298–8309, 2020. [51] M. Moradi-Dalvand, M. Nazari-Heris, B. Mohammadi-ivatloo, S. Gala vani, and A. Rabiee, ‘‘A Two-Stage Mathematical Programming Approach for the Solution of Combined Heat and Power Economic Dispatch,’’ _IEEE_ _Systems_ _Journal_, vol. 14, DOI 10.1109/JSYST.2019.2958179, no. 2, pp. 2873–2881, 2020. [52] M. Alipour, K. Zare, H. Zareipour, and H. Seyedi, ‘‘Hedging Strate gies for Heat and Electricity Consumers in the Presence of Real-Time Demand Response Programs,’’ _IEEE_ _Trans._ _Sustainable_, vol. 10, DOI 10.1109/TSTE.2018.2865380, no. 3, pp. 1262–1270, 2019. [53] M. El-Sharkh, M. Tanrioven, A. Rahman, and M. Alam, ‘‘Economics of hydrogen production and utilization strategies for the optimal operation of a grid-parallel pem fuel cell power plant,’’ _International Journal of Hydro-_ _gen_ _Energy_, vol. 35, DOI https://doi.org/10.1016/j.ijhydene.2010.05.108, no. 16, pp. 8804–8814, 2010. [54] J. Cao, C. Crozier, M. McCulloch, and Z. Fan, ‘‘Optimal Design and Operation of a Low Carbon Community Based Multi-Energy Systems Considering EV Integration,’’ _IEEE_ _Trans._ _Sustainable_, vol. 10, DOI 10.1109/TSTE.2018.2864123, no. 3, pp. 1217–1226, 2019. [55] S. Taheri, M. Jooshaki, and M. Moeini-Aghtaie, ‘‘Long-term planning of integrated local energy systems using deep learning algorithms,’’ _In-_ _ternational_ _Journal_ _of_ _Electrical_ _Power_ _Energy_ _Systems_, vol. 129, DOI https://doi.org/10.1016/j.ijepes.2021.106855, p. 106855, 2021. [56] D. Qiu, Z. Dong, X. Zhang, Y. Wang, and G. Strbac, ‘‘Safe reinforcement learning for real-time automatic control in a smart energy-hub,’’ _Applied_ _Energy_, vol. 309, DOI https://doi.org/10.1016/j.apenergy.2021.118403, p. 118403, 2022. [57] M. Basu, ‘‘Combined heat and power economic dispatch by using differ ential evolution,’’ _Electric Power Components and Systems_, vol. 38, DOI 10.1080/15325000903571574, no. 8, pp. 996–1004, 2010. [58] T. Stoffel and A. Andreas, ‘‘NREL Solar Radiation Research Laboratory (SRRL): Baseline Measurement System (BMS); Golden, Colorado (data),’’ National Renewable Energy Lab.(NREL), Golden, CO, USA, Tech. Rep., DA-5500-56488, 1981. [59] H. Mo, L. L. Custode, and G. Iacca, ‘‘Evolutionary neural architecture search for remaining useful life prediction,’’ _Applied Soft Computing_, vol. 108, p. 107474, 2021. [60] P. Zhao, C. Gu, D. Huo, Y. Shen, and I. Hernando-Gil, ‘‘Two-Stage Dis tributionally Robust Optimization for Energy Hub Systems,’’ _IEEE Trans._ _Ind._ _Inf._, vol. 16, DOI 10.1109/TII.2019.2938444, no. 5, pp. 3460–3469, 2020. [61] A. Dolatabadi and B. Mohammadi-Ivatloo, ‘‘Stochastic Risk-Constrained Optimal Sizing for Hybrid Power System of Merchant Marine Vessels,’’ _IEEE Trans. Ind. Inf._, vol. 14, DOI 10.1109/TII.2018.2824811, no. 12, pp. 5509–5517, 2018. AMIRHOSSEIN DOLATABADI (S’16) was born in Tabriz, Iran in 1991. He received the B.Sc. and M.Sc. degrees in electrical engineering from University of Tabriz, Tabriz, Iran, in 2014 and 2016, respectively, and the Ph.D. degree in electrical and computer engineering from the University of Alberta, Edmonton, AB, Canada, in 2023. From 2016 to 2018, he served as a Research Associate with the Smart Energy Systems Laboratory (SES Lab), University of Tabriz. He was also a Research Intern with Hitachi Energy Canada Inc. His research interests include the area of artificial intelligence, machine learning, deep learning, decision-making methods, and their applications to smart girds. HUSSEIN ABDELTAWAB (GS’12–M’17) was born in Bani-Souwaif, Egypt, in April 1987. He received the B.Sc. (Hons.) and M.Sc. degrees in electrical engineering from Cairo University, in 2009 and 2012, respectively, and the Ph.D. degree in electrical engineering from the University of Alberta, Edmonton, AB, Canada, in 2017. He is currently an Assistant Professor of Engineering with Wake Forest University, WinstonSalem, NC, USA. He is also a licensed Professional Engineer in Saskatchewan, Canada. His research interests include energy management, control system applications in renewable energy, energy storage, and smart distribution systems. YASSER ABDEL-RADY I. MOHAMED (M’06– SM’11–F’021) was born in Cairo, Egypt, on November 25, 1977. He received the B.Sc. (with honors) and M.Sc. degrees in electrical engineering from Ain Shams University, Cairo, in 2000 and 2004, respectively, and the Ph.D. degree in electrical engineering from the University of Waterloo, Waterloo, ON, Canada, in 2008. He is currently with the Department of Electrical and Computer Engineering, University of Alberta, AB, Canada, as a Professor. His research interests include dynamics and controls of power converters; grid integration of distributed generation and renewable resources, microgrids, modeling, analysis, and control of smart grids; and electric machines and motor drives. Dr. Mohamed is an Associate Editor of the _IEEE Transactions on Power_ _Electronics_ and an Editor of the _IEEE Transactions on Power Systems_, _IEEE_ _Transactions on Smart Grid_, and _IEEE Power Engineering Letters_ . He is a registered Professional Engineer in the Province of Alberta. VOLUME 11 2023 15

섹션 본문 81문단 · 39,718자

(제목 없음)

1The transition to a near-zero-emission power and energy industry for facing up to global warming issues is dominated by the use of renewable energy resources such as bioenergy and solar energy.When these resources are coordinated within an energy hub framework, the system's flexibility is increased and dispatchable energy is provided by enhancing the share of renewable-dominated power.This paper proposes a dynamic scheduling framework for an energy hub with a biomass-solar hybrid renewable system.A hybrid forecasting model based on convolutional neural networks (CNNs) and Gated recurrent units (GRUs) is developed first to capture solar-related uncertainty sensibly, which will provide a great opportunity for the learning-based controller to determine an effective operation strategy in an optimal manner, especially on a cloudy-weather day.Then, a supervised federated neural architecture search (SFNAS) technique has been presented to eliminate the need for manual engineering of deep neural network models and the unnecessary computational burden associated with them.Finally, the deep deterministic policy gradient (DDPG), as an actor-critic deep reinforcement learning (DRL) methodology, enables the biomass-based energy hub to achieve cost-effective dynamic control strategies by addressing the decision-making problem as a highly dynamic continuous state-action model.The major conclusions of the numerical results show the effectiveness of the proposed SFNAS-DDPG method from average operating cost reduction up to 7.31% compared to the conventional DDPG model.INDEX TERMSActor-critic deep reinforcement learning, biomass energy, energy hub, federated learning (FL), neural architecture search (NAS).

I. INTRODUCTION A. BACKGROUND AND MOTIVATION

2Over the past decade, renewable energy sources (RESs), such as bioenergy and solar, have received unprecedented attention and become more prevalent to meet the ambitious goals of policymakers for reducing greenhouse gas emissions

3The associate editor coordinating the review of this manuscript and approving it for publication was Fabio Mottola .by moving towards a more sustainable energy industry.On the other hand, with the popularity of RESs continually increasing, their inherent volatility and intermittency pose a challenge to the integration and utilization of a high-penetration of RESs, and raise operational concerns for energy system operators.In this regard, the importance of coordinated control of interconnected energy infrastructures has been increasingly recognized for facilitating the development of a low-carbon, economically feasible, and renewable-dominated energy supply.This direction has led to the significant recognition of energy hub systems as resilient, reliable, and economical means of redistributing supply and demand among different energy sectors at the local level [1].Meanwhile, with biomass energy resources being widely distributed and its potential to support multiple forms of energy demands, such as electricity and thermal, the integrated operation of other RESs and biomass can offer a cost-effective alternative compared to utility grid operations.

B. LITERATURE SURVEY

4Several recent representative studies have been reported on the optimization of energy hub systems from different perspectives, including optimal design and expansion planning [1], [2], optimal power dispatch [3], [4], energy trading scheme planning [5], [6], voltage-frequency optimization [7], etc.The literature on the integration of biomass energy resources into the energy hub concept is somewhat limited and scattered.Using climate-independent biomass energy, an energy hub can balance the stochastic output of weather-driven renewable RESs.In both [8] and [9], the planning problem for a biomass-based energy facility was studied and formulated as a two-stage mixed-integer linear programming (MILP) model.While the authors in [8] focused on the optimal planning of solar and biogas energy for reducing the dependency of the energy hub system on battery storage systems in remote regions, the model proposed in [9] centered on the expansion planning of integrated electric power and biogas delivery networks.In terms of the scheduling and operation of biomass-based multi-carrier energy systems, the existing literature studies the use of biomass energy resources as a solution to the increasing demand for diversified and affordable energy services.In [10], a stochastic optimal operation strategy for an integrated solar and biomass system is proposed by considering the uncertainties in market prices and solar irradiation.Reference [4] assesses an optimal operation strategy for an energy hub with a biogas-solar-wind hybrid renewable system.The approach in [4] is extended by providing a distributed stochastic scheduling framework for the coordinated operation of interconnected biogas-solarwind systems in [11].Both [12] and [13] propose trading schemes for the biomass-concentrated solar system.Stochastic optimization and information gap decision theory (IGDT) approaches are leveraged to address uncertain factors.

5Even though some advances were made, the aforementioned works also had three limitations.Firstly, they need to understand the dynamics of components.Developing a dynamic model that can accurately simulate components' behavior is challenging due to the multitude of factors that influence it.Further, model-based approaches may differ in premises or performance in relation to particular components, so their generalizability may be limited.Secondly, algorithms require explicit knowledge of how uncertainty is represented (for example, RES production's probability distributions).

6Finally, a third limitation is the lack of support for an online control mechanism, particularly for large-scale solutions.Specifically, these methods need to perform the optimization by selecting the most optimal solution among a set of possible ones, regardless of the problem size.

7Alternatively, the disadvantages described above can be overcome through the use of model-free learning-based techniques.Recently, some research has been conducted on applying reinforcement learning (RL) to the energy management problem of multi-carrier energy systems, such as Q-learning (QL) [14], QL-linear programming (LP) [15], and fuzzy QL [16].The combination of RL and deep neural networks (DNN), as a powerful function approximator, has led to the development of deep reinforcement learning (DRL).Through multiple interpretations, DRL can leverage the growing data collected from a variety of sources, revealing optimum control policies and dealing with uncertainty related to the data.Additionally, DRL is a model-free, self-adaptive method that requires no explicit modeling of probability distributions or constraints on uncertainties.The application of deep Q network (DQN) concepts to energy systems' control and scheduling has been developed for different scenarios involving the optimization of state and action spaces in high dimensions, e.g., energy storage system [17], industrial Internet of Things (IIoT) [18], electric vehicles (EV) [19], cyber uncertainties [20], and building energy management [21].Although DQN has been regarded as a considerable improvement over conventional QL in approximating Q-value functions, its performance is suboptimal if the action spaces of the environment are continuous.DQN offers considerable advantages over QL, but its performance can be suboptimal regarding continuous action spaces.There are, for example, only five and seven levels of discrete control actions for lithium-ion batteries and EVs in [22] and [23], respectively.The adoption of a continuous action space is therefore of the utmost importance.This being the case, the deep deterministic policy gradient (DDPG) methodology was introduced and implemented on a few decision-making tasks involved in scheduling and controlling microgrids, including electricity market participation [24], distribution networks [25], volt-var control (VVC), and state of charge (SoC) control [26].Through using both actor and critic networks, it provides both the benefits of value-based and Monte Carlo policy gradient approaches.Comparatively to the Monte Carlo policy gradient, DDPG uses fewer samples to learn action space selection, resulting in lower computational demands.Furthermore, in contrast to the value-based technique, stochastic policies can be used to address RL problems that involve continuous actions.

8In the meantime, DNN algorithms have made promising progress in several tasks, including prediction.However, their performance is still heavily influenced by the parameters and architecture of the neural network (the number of layers and the number of nodes, as well as the connectivity between layers).In most cases, it is challenging to evaluate how parameter settings influence the performance of the available models, even when they have a thorough understanding of both machine learning (ML) and deep learning (DL).Furthermore, recent studies in the field emphasize the use of higher-level models in order to obtain more accurate predictions, increasing the number of parameters included in the model.This has made exploring such large parameter spaces a more challenging undertaking.Neither expert knowledge nor empirical trial and error are always useful in this regard.A neural architecture search (NAS) method finds the optimal network architecture for a given situation by defining a search space, a search strategy, and a performance estimation strategy [27], [28].NAS-developed network structures have been shown to be superior to those constructed by hand in a variety of fields.

9Over the past few years, the field of NAS has become an active area of research and experienced remarkable success [27], [29], [30].A Bayesian optimization-based NAS has been used to optimize the structure of DNNs.For example, a new kernel captures the relevant parameters in [31] and a joint optimization of the architecture and hyperparameters is performed using Bayesian optimization in [32].Recent proposals have attempted to turn NAS problems into RL problems.The NAS problem is addressed using Q-learning in [33] and [34].To improve the search procedure described in [33] and [35] uses a predictor.With shared DNN parameters, [36] increases the speed of search procedures.By developing a differentiable representation of the NAS model, gradient-based NAS techniques seek to optimize the parameters of the NAS.The performance of other neural networks is predicted by a neural network in [37] and [38].An approach aimed at reducing training time and memory consumption for NAS is described in [39].A generalization problem in differentiable architecture search (DARTS) models [40] is addressed in [41] by breaking the problem into sub-problems.Recent years have seen significant interest in evolutionary computation approaches to optimize DNN parameters.DNNs are employed as genotypes and phenotypes in a mutation-only Genetic Algorithm (GA) in [42] and [43].By evolving the cascades of convolutional filters, a GA for classification is presented in [44].It is noteworthy that evolutionary-based NAS approaches result in neural networks of superior performance, but moderate in size, as shown in [27], [29] and [30].Additionally, privacy concerns are becoming more prevalent, which has led to a growing interest in machine learning approaches that preserve the privacy of users.As a machine learning paradigm, federated learning (FL) deals with concerns about data privacy, particularly when working with distributed and heterogeneous information [45].Thus, FL combined with NAS is capable of effectively addressing privacy concerns associated with NAS.

C. CONTRIBUTION AND PAPER STRUCTURE

10Considering the limitations of previous studies and to fill the research gaps outlined above, this paper is directed toward presenting a dynamic scheduling framework for a biomass-based energy hub.An improved actor-critic DRL algorithm, DDPG, and the supervised federated neural architecture search (SFNAS) are incorporated and employed to form a novel model-free and self-adaptable energy management algorithm for a RES-based multi-carrier energy supply infrastructure.For a diverse and dynamic RES-based energy hub system, these characteristics can facilitate flexible scheduling and coordinated decision-making.The proposed SFNAS tries to investigate the merits and limitations of various NAS methods for learning the architecture and model parameters for a given task.An innovative method is then presented for engaging multiple NAS approaches and improving their individual performance by utilizing a supervising agent to improve their training losses.As a result of repeated interaction with the environment, the DDPG agent is able to gain experience to provide optimal dynamic control signals without the need to model constrained probability distributions or uncertainty sets.Moreover, a forecasting technique based on convolutional neural networks (CNNs) and gated recurrent units (GRUs) has been incorporated into the DDPG decision-making framework to achieve decent scheduling results.The major contributions of this paper are summarized as follows:

111) Focusing on the ever-increasing role of biomass energy resources worldwide, the impact of several underlying factors on the cost-benefit analysis of a biomass-based energy hub is investigated using a fully data-driven and model-free actor-critic DRL-based decision-making framework taking into consideration the physical characteristics and thermodynamic effect of temperature-sensitive biogas production at the operation stage.To our best knowledge, such method is rarely investigated before.2) Based on the FL settings, the proposed SFNAS approach can be used directly to search for the optimal architecture by leveraging training loss reshaping by a supervisor.The test results show that the proposed SFNAS approach achieves faster and smoother convergence than the respective baseline methods.In comparison with the baseline model, the proposed SFNAS approach significantly improves both forecasting RMSE and training time by 10.33% and 9.54%, respectively.3) A hybrid CNN-GRU solar irradiance forecasting model that captures high levels of abstraction from sky images and numerical measurements was developed and optimized by SFNAS to help the DDPG agent choose the most efficient control policy especially when PV power is highly intermittent on cloudy days.4) Compared with conventional energy hub scheduling methods, such as stochastic programming (SP) or robust optimization (RO), which require a perfect and detailed understanding of the operational model and parameters of the system, the proposed model-free data-driven energy management framework can overcome potential uncertainties and determine the optimal control decisions by the learning mechanism.5) The DDPG is a model-free decision-making framework that offers more realistic and cost-effective decision-making strategies than existing conventional decision-making methodologies like SP and RO, which simplify the scheduling problem with linearized models and piecewise linear curve fitting methods.Ignoring the practical limitations and nonlinear constraints like biogas production thermodynamics, dynamic efficiency of fuel cells, valve admission behavior of power generation systems, and CHPs' non-convex operation regions makes the results less robust.This paper proceeds as follows.Section II presents the proposed SFNAS algorithm and the hybrid DL-based 2-D CNN-GRU prediction approach.Section III describes the highly nonlinear, realistic model of the system.Following that, Section IV presents the DDPG-based dynamic scheduling method for the biomass-based multi-carrier energy system.Section V is dedicated to the case studies and simulation results, and finally, conclusions are provided in Section VI.

II. SUPERVISED FEDERATED NEURAL ARCHITECTURE SEARCH AND HYBRID 2-D CNN-GRU FORECASTING MODEL

12In this section, the mathematical representation of the proposed SFNAS, which leverages a supervisor to enhance the performance of multiple NAS agents, is presented.The supervisor (meta-learner) and NAS agents (base learners) are trained using a bi-level optimization strategy.Fig. 1 illustrates the schematic diagram of the proposed SFNAS methodology.

A. NAS AGENTS AS BASE-LEARNERS 1) OBJECTIVE

13By learning the architecture, ω n , and parameters, θ n , of the model, each base learner i optimizes its own model using momentum-regularized NAS technique.(ω n , θ n ) is learned by each base-learner n using a momentum-based gradient descent algorithm as follows.

14where α θ and α ω correspond to the learning rates for θ and ω, respectively, and, v n represents the momentum from past steps.When the hyperparameter λ n is set to a lower value in the updates, longer gradient updates are maintained (this can be demonstrated by expanding the recursive updates, which are not shown here due to limited space).According to the NAS algorithm used by each base-learner, the training loss varies.Hence, for ease of explanation, the training loss is denoted by J n (θ n , ω n ).The following definition of L 2 -regularized mean squared error (MSE) will be used when we assume identical training losses J n (•, •) for all agents.

15where ŷn represents the forecasted value, i.e., the outcome of n-th base-learner's model with architecture ω n .

2) MODEL

16The weights λ n that are proportional to r n are estimated by training the meta-learner model with the input states (or the embedding of the inputs).For this purpose, a N -head classifier structure is employed, corresponding to λ n , n ∈ {1, 2, . . ., N }.Unlike a typical classification problem, r n s change epoch by epoch, so the target values vary.

3) SELECTION PROCEDURE

17The proposed SFNAS methodology includes a model selection procedure that is as follows.

18min

19where [46], [47], and [48]:

20Through the use of learnable kernels and inductive bias, CNN convolutional layers provide better generalization capabilities.The mathematical expression for convolutions and pooling are as follows:

21A max-pooling down-sampling method followed by a fully-connected layer is used in this paper to extract informative features.

2) BLSTM NETWORK

22Each LSTM block consists of three multiplicative units: input, output, and forget.Data is written, read, and reset using these gates.The following equations explain how LSTM forward passes work mathematically [49]:

23Gradient vanishing problems can be handled by LSTMs, but future context cannot be taken into account.As a result, BLSTM networks represent data in a much more sophisticated manner than traditional LSTMs because they utilize all the information of the temporal horizon.Following are the outputs generated by BLSTM networks [50]:

24where h ′′ t is composed of integrating h ′′

III. ENVIRONMENT MODEL AND PROBLEM FORMULATION

25The purpose of this section is to discuss the main structure of the proposed biomass-based energy hub, taking into account nonlinear characteristics of the facility components such as biogas production thermodynamics, dynamic efficiency of fuel cells, valve admission behavior of power generation systems, and CHPs' non-convex operation regions.

A. POWER-ONLY UNITS

26Generally, power-only generation units are modeled by convex quadratic cost functions.Due to valve admission effects, these models do not take into account ripples in production cost; therefore, they cannot provide a practical solution for real-life applications.In this regard, the quadratic cost function is modified to include an absolute sinusoidal term to capture this phenomenon efficiently.Fig. 2 shows the valve-point effects on the fuel cost of a power-only unit.The total operation cost including valve-point effects can be formulated as follows [51]:

27where and ρ c i are the cost coefficients of the i th power-only unit.I c and VPE c indicate the commitment status and valve-point effects, respectively.

B. THERMAL UNITS

28The k th thermal unit's operating cost and limits at time t is defined by (19) and (20).

29Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

30where

31i , and k th represent the cost coefficients and commitment status of the k th heat-only unit.

C. CHP UNITS

32Noteworthy is the fact that the electricity and thermal energy produced in CHP units depend on each other, so they cannot be independently adjusted.The cost function of j th CHP is provided in (21).Convex combinations of extreme points represent the power and heat production in CHP units by ( 22)-( 25) [52].

33where D s j denotes the total number of corner points for the j th CHP in sub-region s and the coefficient d s j,t should satisfy constraints ( 24) and ( 25); x d s chp , y d s chp represents the electricity and thermal generations related to the corner point d s ; V s j,t is a binary variable indicating operation in the s th subregion.

D. BIOMASS-BASED BOILER UNITS

34The m th Biomass-based boiler's operating cost is modeled in (26).Based on the energy conservation rules, the thermal energy produced by the biomass-based boiler is calculated by ( 27)-( 29), while it is restricted within acceptable limits by constraint (30)

35where α bm m , ϖ bm m , CV bm , and η bm m denote the cost coefficient, mass of injected biomass feedstock, calorific value of biomass feedstock, and efficiency of the m th biomass-based boiler, respectively; κ bm is the stability and process rate kinetic parameter; π bm is the thermophilic and mesophilic digestion's micro-organism growth rate; ϑ bm , ς bm , T bm HR and VOL bm represent biogas biochemical potential, influent volatile solid concentration, hydraulic retention time and digester's volume, respectively.The nonlinear relationship between biogas production and temperature is illustrated in Fig. 3.

E. FUEL CELL UNIT

36Fuel cells (FCs) contribute to the energy hub demand by generating electricity, recovering heat, and producing hydrogen.As part of the energy hub consumers' energy requirements, proton exchange membrane FCs are considered to supply some of their demand (since the by-product heat can be captured and used by these FCs, they can also be considered CHP systems).Hydrogen can be produced from the difference between the maximum capacity and the electrical output when the thermal load is low.The energy hub produces electricity by converting hydrogen from FCs into electricity and storing it in hydrogen reservoirs.Note that, the hydrogen reservoirs are used as a backup fuel for the hydrogen engine.The main fuel is hydrogen produced by reforming natural gas.

37In the l th FC unit, the amount of recovered thermal power, T fc l,t , can be determined as follows: (33) where E fc,h , E fc,e , and TER fc are equivalent electric power for hydrogen production, electrical output power, and the thermal to electrical power ratio, respectively.The amount of stored hydrogen and charged/discharged hydrogen can be formulated as follows:

38T 2 out l,min .I T 2T ,dch

39where ψ E2T , T 2 in/out , and T 2T indicate the hydrogen (kg) to electric power (kW) ratio, equivalent charged/discharged hydrogen, and stored hydrogen.Most existing studies on FC consider its efficiency to be constant, whereas it can vary according to the amount of electricity produced.Based on Fig. 4, the thermal to electrical power ratio and the efficiency are functions of the part load ratio variable [53].Equation ( 41

40where E grid , E bes , and E l indicate the amount of power exchange with the upstream network, the amount of power charged/discharged, and the electrical demand, respectively.T l , T bt , and T sv represent the thermal demand, thermal power charged/discharged, and the slack variable [54], respectively.Detailed information on electrical and thermal storage systems is available in [3].

G. OBJECTIVE FUNCTION

41In the dynamic scheduling problem for biomass-based energy hub, the objective is to minimize the system operating cost, as stated in (44).

IV. DEEP DETERMINISTIC POLICY GRADIENT ALGORITHM

42This section discusses the main structure of the proposed optimal control strategy using the actor-critic DRL algorithm.

43Since DDPG provides continuous action spaces and does not require discretization, which is computationally expensive, it allows for more effective exploration of the action space.Therefore, obtaining an optimum control decision requires fewer iterations than other techniques regardless of the type of problem encountered.And more importantly, the multi-carrier energy system's infrastructure is controlled more smoothly than when they are regulated at a discrete level.DDPG assesses the cost-benefit of selecting a control signal over a given period, a t ∈ A t , while making decisions in each state of the system using Q-value, Q (s t , a t ).According to the Bellman equation, the Q-value of any action, a t , at state s t can be calculated based on the optimal action's Q-value at state s t+1 as follows.

44where γ ∈ [0, 1] and R represent the discount factor and reward function, respectively.The energy hub operator, however, does not have any information about either the most effective action at state s t+1 or what its value would be over time.The DDPG method addresses this challenge by implementing two 7680 VOLUME 12, 2024 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.separate DNNs.The most beneficial action at state s t+1 is estimated by the actor network, µ (s t |θ µ ), while the critic network, Q s t , a t θ Q , has the responsibility of estimating the Q-value of action a t at state s t .The actor and critic network weight vectors, θ µ and θ Q , are continuously updated based on the observed rewards at each time step during the training process.Using the trained networks, the Q-value can be derived as follows:

45Actor networks respond to sampled states of a system by taking action.Then, the two networks can be simultaneously trained according to the received reward.The s t and max a Q s t , a t θ Q serve as the input and the output for the actor network, while the critic network takes (s t , a t ), where a t = µ (s t |θ µ ), and R t as the input and the output, respectively.A replay buffer consisting of samples from different time steps, (s t , a t , R t , s t+1 ), is employed to reduce correlation-induced errors during updating the networks.Copies of the original actor and critic networks, the target networks, are taken and gradually updated to make the training process more stable.Moreover, the actor network is enhanced with a correlated stochastic noise signal to improve exploration during the training process.The most commonly used random noises are Ornstein-Uhlenbeck and Gaussian noises.An Ornstein-Uhlenbeck noise can be used to simulate time-related noise data.The Ornstein-Uhlenbeck process is useful for solving physical control problems that are inertiadriven.Through this perturbation, the DDPG agent is more able to explore and achieve faster convergence as a result.The signal is modeled by employing the Ornstein-Uhlenbeck procedure, as stated in (47).

46where σ and mean denote the variance of the noise model and the mean value, respectively.κ and n ∈ [0, 1] represent the mean attraction constant and a uniformly generated random number, respectively.The critic network is trained using L θ Q as the loss function.

47where N is the size of the mini-batch, and Y i represents the measured value function as follows.

48Meanwhile, the actor network needs to be trained by (50).

49The final step in the process involves gradually updating the target networks with the smoothing factor τ , as stated in ( 51) and (52).

50In the dynamic dispatch problem of the multi-carrier energy system, the state and action vectors can be defined by ( 53) and (54), respectively.

51ℑ (s t , a t , ω t ) governs the transition from state s t to state s t+1 .It's not just the decision-making signal a t that determines transitions, but also environmental uncertainty, ω t , that influences them.There are several exogenous factors, including energy consumption habits and solar irradiance, that influence the alignment of probabilistic models within this context.By learning the transition implicitly from collected data samples, a DRL approach can overcome this challenge without the need for statistical models.

52A DDPG reward is calculated by the agent by adjusting the parameters as follows:

53Training with DNN makes DRL-based techniques nonconstrained, ignoring the physical limitations of dynamic scheduling.Therefore, the physical constraints cannot be addressed systemically through this process.Nonetheless, energy systems scheduling need to address security and reliability concerns.For a variable ℵ ∈ ℵ min , ℵ max a penalty term is added to the reward function to address the constraint violation problem,, as stated in ( 56) and (57).

V. NUMERICAL STUDY A. DATA AND CONFIGURATION

54The biomass-based energy hub shown in Fig. 5 is used as a case study to evaluate the effectiveness of the proposed SFNAS-DDPG dynamic scheduling approach.The proposed SFNAS-DDPG strategy involves scheduling and operating a multi-source multi-product facility that participates in the energy market as a coupled multi-carrier energy supply.The energy loads and prices are adapted from [55] and [56], respectively.Based on a test case presented in [57], the economic data and operational constraints for the generation plants are derived and scaled.The maximum capacities of heat-only, PV, and power-only units are 2.695 MWth, 0.75 MW, and 1.25 MW, respectively.Moreover, the data of the 0.6 MWth biomass-based boiler and the 1 MW FC units are taken from [12] and [53], respectively.Other data corresponding to the available units are listed in Tables 1 and 2. Both the sky images and numerical time series data are obtained from the Solar Radiation Research Laboratory (SRRL) dataset of the National Renewable Energy Laboratory (NREL), located in Colorado [58].Based on the FL settings, the SFNAS approach is used directly to search for the optimal architecture of the forecasting network using supervisory training loss reshaping.As a representation network, the output of the CNN-GRU model is concatenated with the states of the energy hub before being fed into an actor network.For the critic and actor networks, learning rates of 0.001 and 0.0001 are selected, respectively.The mini-batch of random experience and the discount factor have been selected as 0.95 and 64, respectively.The parameters of the noise model are taken from [26].Algorithm 1 demonstrates the training process of making control decisions using the proposed SFNAS-DDPG methodology.The training process of the proposed technique is performed by Keras library and TensorFlow as the backend on a workstation with an NVIDIA GeForce GTX 1070 GPU and 32 GB of RAM.

B. COMPARATIVE RESULTS AND ANALYSIS

55In this subsection, the SFNAS algorithm is employed to identify the most accurate architectures for the solar irradiance forecasting task.The CNN and LSTM/BLSTM/GRU networks' hyperparameters significantly affect the model's performance in a complicated manner.However, trying to model the complex interactions between the hyperparameters or manually examining a large number of possible architectures is challenging and time-consuming.To overcome these limitations, the SFNAS algorithm is proposed and implemented to efficiently select the networks' architectures.Algorithm 2 shows the procedure of the proposed SFNAS methodology.The goal is to find optimized models that are capable of better solar irradiance forecasting given the baseline structure of the model discussed in the Section II.For this purpose, we seek to optimize the following parameters of the representation network, shown in Fig. 5:

56• Number of hidden units in the first LSTM/BLSTM/GRU layer (N B1 )

57• Number of hidden units in the second LSTM/BLSTM/ GRU layer (N B2 )

58• Number of hidden units in the third LSTM/BLSTM/ GRU layer (N B3 ) Based on our previous work [5], we find that N B1 and N B2 with fewer than 100 hidden units are likely to exhibit underfitting, while overfitting occurs when the number is greater than 400.To reduce the number of genotype representations from the range 100 to 400, we divide the range by 25 before exploring the two LSTM/BLSTM/GRU layers.In order to translate genotype to phenotype, a multiplier, 25, is assigned to the genotype.According to our previous knowledge, bounds are also set for the other parameters.Our experiments were conducted using the parameters listed in Table 3 as the lower and upper bounds.

59From the viewpoint of the EA-based NAS, a genotype then takes the form of a sequence of integers based on the values indicated in Table 3 and phenotypes are the resulting structures.In the proposed stacking model, hierarchical features can be derived from the feature representation of the previous layer and the next layer serves as a layer of abstraction.This hierarchical feature abstraction cannot be achieved when the next layer (i.e., N B2 ) is greater than the previous layer (i.e., N B1 ) and results in overfitting.As a result, to ensure that the N B2 is equal to or smaller than N B1 when converting genotypes to phenotypes, a correction mechanism is applied on N B2 (similar correction mechanism is also considered for (N B3 )) as follows:

60The population is initialized by randomly selecting N p − 1 individuals.The so-called super-fit mechanism is employed to initialize the remaining population based on the parameters of the structure proposed in [5] to begin the evolutionary process with a sufficiently effective individual.An individual's fitness is determined by evaluating the created phenotype for the given genotype based on the root means square error (RMSE), mean absolute error (MAE), and mean absolute percentage error (MAPE) [5] Both crossover and mutation are used to achieve a reasonable balance between exploration and exploitation.A probability of P c = P m = 0.5 is applied to each operator independently.Based on

61j=1 as a mini-batch from M .Minimize the loss function (48) to update the critic network.: 50) and sampled policy gradient to update the actor network: 51) and (52) to Update the target networks:

62← θ µ ′ end if end for end for the one-point crossover methodology, individuals are firstly ranked according to their fitness, and then the 2n th and (2n + 1) th ones are selected for crossover (n ∈ 0, N p 2 − 1 ).The population is then uniformly mutated, consisting of individuals generated by crossover and offspring who were not subjected to crossover.Mutation can occur between each architecture parameter (gene) and a value uniformly chosen from its range according to a probability P gm .As a result of this approach, we can conduct searches relatively faster while minimizing disruptive mutations in individuals.The fitness of the parents for each offspring is checked when creating the population of the next generation.Then, to monotonically decrease the population's mean fitness, offspring with better fitness than one of the parents replaces the worst parent.Table 4 shows the training time and test RMSE for the best architecture found by each method.According to the results, the proposed SF-NAS technique outperforms the baseline NAS approach in all architectures.Fig 6 illustrates the evolution of the weights (λ) for the gradient term in the momentum update of the solar irradiance forecasting task.As can be seen from the evolution-based figures, the supervisor of the SFNAS provided the agents with guidance that ultimately led to a better optimization process.

63Moreover, the evolution of training and validation losses of the proposed CNN-LSTM/BLSTM/GRU networks is depicted in Fig. 7 for both baseline and SFNAS strategies.It can be seen from this figure that networks built with SFNAS exhibit smaller spikes and smoother convergence than those based on baseline NAS.

64Table 5 illustrates the average daily operational cost of the biomass-based energy hub using DDPG + state-ofthe-art forecasting [6], DDPG + baseline NAS [59], and the proposed SFNAS-DDPG models.As can be seen from this table, the proposed framework, SFNAS-DDPG, has the lowest average daily operating cost when compared with other models.The SFNAS-DDPG method has $5,020 per day average operating costs, which shows a 7.31% improvement over the baseline model (DDPG + State-of-the-art).This improvement is due to the fact that the operator has access to more accurate information about the uncertain parameter (PV generation in future hours), enabling the agent to take more efficient actions.

VI. CONCLUSION

65This study presents SFNAS-DDPG as an improved actor-critic DRL framework for the optimal scheduling and operation of a multi-source multi-product facility, taking into account nonlinear characteristics of the facility components such as biogas production thermodynamics, dynamic efficiency of FCs, valve admission behavior of power generation systems, and CHPs' non-convex operation regions.To help the DDPG agent choose the most efficient control policy, especially when PV power is highly intermittent on cloudy days, a hybrid CNN-GRU forecasting model that captures high levels of abstraction from sky images and numerical measurements is developed and employed.The novel SFNAS technique is proposed to learn the architecture and model parameters of the representation network.By utilizing supervisor-led training loss reshaping, the proposed SFNAS approach can be used directly to determine the optimal architecture based on the federated settings.As a result of our case studies, the proposed strategy, by selecting different network structures, is more accurate than the respective baseline forecasting methods.Consequently, The SFNAS-DDPG method has $4,590 per day average operating costs, which shows a 4.79% improvement over the baseline model (DRL+Stateof-the-art).While this study was geared toward exploring the effects of the proposed SFNAS methodology on improving actor-critic DRL framework's control strategies, future work could study the effectiveness of replacing the proposed EA-based NAS with heterogeneous NAS methods.

FIGURE 1 .

66FIGURE 1. Schematic diagram of the proposed SFNAS methodology.

FIGURE 2 .

67FIGURE 2. Valve-point effects on the fuel cost of a power-only unit.

FIGURE 3 .

68FIGURE 3. Nonlinear relationship between biogas production and temperature.

FIGURE 4 .

69FIGURE 4.An illustration of the FC unit's dynamic performance curve.

FIGURE 5 .

70FIGURE 5.The schematic of the proposed SFNAS-DDPG framework for the dynamic scheduling of biomass-based energy hub.

FIGURE 6 .

71FIGURE 6.The evolution of weight (λ i ) for the gradient term in the momentum update.

FIGURE 7 .

72FIGURE 7. The evolution of training and validation losses of the proposed CNN-LSTM/BLSTM/GRU models (a) baseline NAS-based LSTM, (b) SFNAS-based LSTM, (c) baseline NAS-based BLSTM, (d) SFNAS-based BLSTM, (e) baseline NAS-based GRU, and (f) SFNAS-based GRU.

Algorithm 1

73Offline Training Process of the DDPG Agent Initialize: Initialize the weights of the actor and critic networks randomly: µ (s |θ µ ): θ

Algorithm 2

74SFNAS Algorithm for epoch ∈ {number of epochs} do for agent ∈ {number of agents} do Forming the best architecture Z * i via agent's NAS Compute training loss architecture Z * i : J i (θ i , ω i ) := ∥y − ŷn ∥ 2 + L 2 (θ i ) end for Compute relative contribution of agent:r i := J i (θ i , ω i )/ i J i (θ i , ω i )Train the classifier using the relative contribution, r i , to estimate the weights λ i end for Select the based agent based on: minA [ω 1 RMSE + ω 2 T + ω 3 N ]

75[8].

TABLE 1 .

76The characteristics of FC unit.

TABLE 2 .

77The characteristics of energy storage units.

78as a random process allowing exploration of actions and set up the experience replay buffer M .for i ∈ N episodes do Observe s t as the state space.Concatenate the output of the CNN-GRU network with the state space s t .for t ∈ N time intervals do Choose the dynamic scheduling action a t = µ (s t |θ µ ) + t .Solve (44) by taking energy hub control decision a t and receive R t as the immediate reward.Transfer to s t+1 as the new state.Store the transition (s t , a t , R t , s t+1

TABLE 3 .

79Hyperparameter bounds for SFNAS algorithm.

TABLE 4 .

80Forecasting task results for the best architectures found by SFNAS and baseline NAS.

TABLE 5 .

81The average daily operating cost for the proposed multi-carrier energy system.

참고문헌 58건

  1. Economics of hydrogen production and utilization strategies for the optimal operation of a grid-parallel PEM fuel cell power plant International Journal of Hydrogen Energy · Elsevier BV · 2010 10.1016/j.ijhydene.2010.05.108
  2. Combined Heat and Power Economic Dispatch by Using Differential Evolution Electric Power Components and Systems · Taylor & Francis · 2010 10.1080/15325000903571574
  3. Long Short-Term Memory Neural Computation · The MIT Press · 1997 10.1162/neco.1997.9.8.1735
  4. Raiders of the Lost Architecture: Kernels for Bayesian Optimization in Conditional Parameter Spaces arXiv (Cornell University) · Cornell University · 2014 10.48550/arxiv.1409.4011
  5. NREL Solar Radiation Research Laboratory (SRRL): Baseline Measurement System (BMS); Golden, Colorado (Data) 1981 10.7799/1052221
  6. Optimal Stochastic Design of Wind Integrated Energy Hub IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tii.2017.2664101
  7. Q-Learning-Based Damping Control of Wide-Area Power Systems Under Cyber Uncertainties IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2017 10.1109/tsg.2017.2711599
  8. SMASH: One-Shot Model Architecture Search through HyperNetworks arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1708.05344
  9. Short-Term Scheduling Strategy for Wind-Based Energy Hub: A Hybrid Stochastic/IGDT Approach IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2018 10.1109/tste.2017.2788086
  10. Practical Block-Wise Neural Network Architecture Generation 2018 10.1109/cvpr.2018.00257
  11. Stochastic Risk-Constrained Optimal Sizing for Hybrid Power System of Merchant Marine Vessels IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tii.2018.2824811
  12. Optimal Scheduling of Biogas–Solar–Wind Renewable Portfolio for Multicarrier Energy Supplies IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tpwrs.2018.2833496
  13. Reinforcement Learning Based Energy Management Algorithm for Smart Energy Buildings Energies · Multidisciplinary Digital Publishing Institute · 2018 10.3390/en11082010
  14. Optimal Design and Operation of a Low Carbon Community Based Multi-Energy Systems Considering EV Integration IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2018 10.1109/tste.2018.2864123
  15. Planning Multiple Energy Systems Toward Low-Carbon Society: A Decentralized Approach IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2018 10.1109/tsg.2018.2870323
  16. Distributed Multienergy Coordination of Multimicrogrids With Biogas-Solar-Wind Renewables IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tii.2018.2877143
  17. Model-Free Real-Time EV Charging Scheduling Based on Deep Reinforcement Learning IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2018 10.1109/tsg.2018.2879572
  18. Operation strategy of a hybrid solar and biomass power plant in the electricity markets Electric Power Systems Research · Elsevier BV · 2018 10.1016/j.epsr.2018.10.035
  19. Deep Learning Architecture Search by Neuro-Cell-Based Evolution with Function-Preserving Mutations Lecture notes in computer science · Springer Science+Business Media · 2019 10.1007/978-3-030-10928-8_15
  20. Artificial intelligence based smart energy community management: A reinforcement learning approach CSEE Journal of Power and Energy Systems · China Electric Power Research Institute · 2019 10.17775/cseejpes.2018.00840
  21. A Survey on Neural Architecture Search arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1905.01392
  22. Neural Architecture Search ˜The œSpringer series on challenges in machine learning · Springer International Publishing · 2019 10.1007/978-3-030-05318-5_3
  23. Double Deep $Q$ -Learning-Based Distributed Operation of Battery Energy Storage System Considering Uncertainties IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2019 10.1109/tsg.2019.2924025
  24. DARTS: Differentiable Architecture Search arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1806.09055
  25. On-Line Building Energy Optimization Using Deep Reinforcement Learning IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2018 10.1109/tsg.2018.2834219
  26. ProxylessNAS: Direct Neural Architecture Search on Target Task and\n Hardware arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1812.00332
  27. Hedging Strategies for Heat and Electricity Consumers in the Presence of Real-Time Demand Response Programs IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2018 10.1109/tste.2018.2865380
  28. Two-Stage Distributionally Robust Optimization for Energy Hub Systems IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2938444
  29. Distributed Q-Learning Aided Heterogeneous Network Association for Energy-Efficient IIoT IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2954334
  30. A Two-Stage Mathematical Programming Approach for the Solution of Combined Heat and Power Economic Dispatch IEEE Systems Journal · Institute of Electrical and Electronics Engineers · 2019 10.1109/jsyst.2019.2958179
  31. Deep Reinforcement Learning-Based Energy Storage Arbitrage With Accurate Lithium-Ion Battery Degradation Model IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2020 10.1109/tsg.2020.2986333
  32. Optimal Planning of Islanded Integrated Energy System With Solar-Biogas Energy Supply IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2019 10.1109/tste.2019.2958562
  33. Deep Reinforcement Learning-Based Controller for SOC Management of Multi-Electrical Energy Storage System IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2020 10.1109/tsg.2020.2996274
  34. Agent-Based Modeling in Electricity Market Using Deep Deterministic Policy Gradient Algorithm IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tpwrs.2020.2999536
  35. SGAS: Sequential Greedy Architecture Search 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2020 10.1109/cvpr42600.2020.00169
  36. Deep Learning-Based Forecasting Approach in Smart Grids With Microclustering and Bidirectional LSTM Network IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tie.2020.3009604
  37. Hybrid Electric Vehicle Energy Management With Computer Vision and Deep Reinforcement Learning IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tii.2020.3015748
  38. Multistage Expansion Planning of Integrated Biogas and Electric Power Delivery System Considering the Regional Availability of Biomass IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2020 10.1109/tste.2020.3025831
  39. An adaptive genetic algorithm as a supporting mechanism for microscopy image analysis in a cascade of convolution neural networks Applied Soft Computing · Elsevier BV · 2020 10.1016/j.asoc.2020.106824
  40. Hybrid Deep Learning-Based Model for Wind Speed Forecasting Based on DWPT and Bidirectional LSTM Network IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3047077
  41. Two-Stage Volt/Var Control in Active Distribution Networks With Multi-Agent Deep Reinforcement Learning Method IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2021 10.1109/tsg.2021.3052998
  42. Long-term planning of integrated local energy systems using deep learning algorithms International Journal of Electrical Power & Energy Systems · Elsevier BV · 2021 10.1016/j.ijepes.2021.106855
  43. Economic-Effective Multi-Energy Management Considering Voltage Regulation Networked With Energy Hubs IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tpwrs.2020.3025861
  44. Evolutionary neural architecture search for remaining useful life prediction Applied Soft Computing · Elsevier BV · 2021 10.1016/j.asoc.2021.107474
  45. A Comprehensive Survey of Neural Architecture Search ACM Computing Surveys · Association for Computing Machinery · 2021 10.1145/3447582
  46. A Survey on Evolutionary Neural Architecture Search IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tnnls.2021.3100554
  47. Deep Spatial-Temporal 2-D CNN-BLSTM Model for Ultrashort-Term LiDAR-Assisted Wind Turbine's Power and Fatigue Load Forecasting IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tii.2021.3097716
  48. Day-Ahead and Intraday Dispatch of an Integrated Biomass-Concentrated Solar System: A Multi-Objective Risk-Controlling Approach IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tpwrs.2021.3096815
  49. A Multi-Data Driven Hybrid Learning Method for Weekly Photovoltaic Power Scenario Forecast IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2021 10.1109/tste.2021.3104656
  50. Safe reinforcement learning for real-time automatic control in a smart energy-hub Applied Energy · Elsevier BV · 2022 10.1016/j.apenergy.2021.118403
  51. An Innovative Coalitional Trading Model for a Biomass Power Plant Paired With Green Energy Resources IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2021 10.1109/tste.2021.3138777
  52. Deep Reinforcement Learning-Based Self-Scheduling Strategy for a CAES-PV System Using Accurate Sky Images-Based Forecasting IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tpwrs.2022.3177704
  53. Towards Automated Deep Learning: Efficient Joint Neural Architecture and\n Hyperparameter Search arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1807.06906
  54. Designing Neural Network Architectures using Reinforcement Learning arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1611.02167
  55. Federated Learning: Strategies for Improving Communication Efficiency arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1610.05492
  56. Accelerating Neural Architecture Search using Performance Prediction arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1705.10823
  57. A Hybrid Linear Programming-Reinforcement Learning Method for Optimal Energy Hub Management IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2022 10.1109/tsg.2022.3197458
  58. A Novel Model-Free Deep Reinforcement Learning Framework for Energy Management of a PV Integrated Energy Hub IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tpwrs.2022.3212938