Journal of Energy Storage 82 (2024) 110521 Contents lists available at ScienceDirect Journal of Energy Storage journal homepage: www.elsevier.com/locate/est Research papers Hierarchical control combined with higher order sliding mode control for integrating wind/tidal/battery/hydrogen powered DC offshore microgrid Naghmash Ali, Xinwei Shen ∗, Hammad Armghan, Yunfei Du Tsinghua Shenzhen International Graduate School, Tsinghua University, China ARTICLE INFO Keywords: Energy storage system Nonlinear control Fuel cell Offshore microgrid Integral Terminal Sliding Mode Control ABSTRACT Due to the intermittent nature of renewable energy sources, energy storage devices play a key role in achieving power balance for microgrid. To reduce the overall carbon footprint, this paper considers fuel cells and batteries as auxiliary sources with wind and tidal energy as primary sources. A two-stage control system has been designed, which has been subdivided into system-level and local-level control systems. The system-level control includes an energy management system that optimizes load distribution, minimizes system cost, and meets battery state of charge and hydrogen level constraints. To make the microgrid independent and minimize transportation costs, on-site hydrogen production has been deployed using an electrolyzer system. At the local level, a fast reaching law-based terminal sliding mode controller has been implemented for accurate and robust tracking of the references provided by the system-level control. The stability of the proposed framework has been validated using the Lyapunov stability criteria. The proposed 600 V and 400 kW microgrid structure has been realized using MATLAB/Simulink simulations. Furthermore, the effectiveness of the proposed control scheme has been compared with PID and ITSMC in terms of accuracy and robustness under both power deficit and surplus modes. Finally, the real-life efficacy has been validated by utilizing controller hardware-in-loop experiments. 1. Introduction Currently, the majority (80%) of primary energy consumption is dependent on non-renewable fossil fuels, with coal power plants alone accounting for 27% of this consumption [1]. This dependence on fossil fuels poses the threat to future energy demands due to the finite supply of these resources and has negative impacts on economic security [2]. To address this challenge, renewable energy sources (RESs) provide a promising solution for reducing fossil fuel consumption and decarbonizing the energy sector. As of 2020, the global installed capacity of renewable energy surpassed 2.7 TW, with significant growth in wind and solar energy [3]. Recent research highlights marine renewable energy as an emerging avenue for development [4]. Implementation of marine energy plants on a global scale could potentially generate an impressive 20,000 TWh of electricity annually [5]. Offshore microgrids (MGs) have been gaining popularity as a means to achieve carbon-neutral power systems in remote and isolated areas, thus transforming the paradigm of future electric power systems [6]. By working as a decentralized unit, offshore MGs have the potential to reduce transmission losses, leading to lower energy cost and improved energy reliability. Depending on the region requirements, the MG can be configured with AC Bus, DC Bus or with hybrid AC/DC Bus system. However, the DC MGs offer several benefits, such as the capability to connect distributed energy resources (DER), energy storage systems (ESS), and loads without the need for DC/AC conversions. This leads to increased efficiency and stability [7,8]. Additionally, the management and control of DC microgrids are simpler, and they do not face common power quality issues associated with AC microgrids, such as frequency synchronization and harmonic currents [9]. Despite the advantages offered by DC MGs, power generation from offshore RESs, such as wind and tidal energy, is significantly impacted by environmental conditions, leading to fluctuations and intermittent power generation [10]. To mitigate these issues, ESSs, such as battery systems and fuel cells (FCs), have been employed in DC microgrids as an auxiliary energy source (AES) [11]. To meet the hydrogen requirement for the FC system especially in remote or isolated areas, a local or on-site hydrogen production system can be implemented using the power from RESs. This on-site production of hydrogen not only reduces transportation costs but also makes the overall MGs independent, acting as a decentralized unit. Several significant offshore wind-to-hydrogen projects have been launched, including the PosHYdon project in the ∗ Corresponding author. E-mail addresses: naghmash@sz.tsinghua.edu.cn (N. Ali), xwshen@tsinghua.edu.cn (X. Shen), hammad.armghan@sz.tsinghua.edu.cn (H. Armghan), duyf23@mails.tsinghua.edu.cn (Y. Du). https://doi.org/10.1016/j.est.2024.110521 Received 16 September 2023; Received in revised form 3 January 2024; Accepted 7 January 2024 Available online 17 January 2024 2352-152X/© 2024 Elsevier Ltd. All rights reserved. Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Dutch North Sea, which is the first offshore hydrogen production plant to deploy at least a 1 MW electrolyzer [12]. The SeaH2Land project aims to develop one of the world’s largest renewable hydrogen plants, with 2 GW offshore wind capacity and 1 GW electrolyzer, to supply the hydrogen demand of the Dutch-Flemish industrial cluster [13]. Furthermore, the Surf ‘n’ Turf project has built the first tidal-powered hydrogen production system at EMEC’s tidal test site [14]. These projects demonstrate the feasibility of utilizing offshore wind-to-hydrogen technology as a viable solution to meet the increasing power demand. Due to integration of multiple RESs and hydrogen production systems, MGs have become more complex, requiring advanced and sophisticated energy management system (EMS) to realize maximum power from the RESs and distribute the load requirements among individual DER. To simplify the control mechanism, the EMS can be designed using advanced hierarchical control methods, splitting it into systemlevel control and local-level control. At system level, the EMS optimizes energy costs from different sources, manages power system constraints such as maintaining battery state of charge (SOC) and H2 storage level, and achieves power balance by distributing the connected load among interfaced DERs. In [15], the authors have proposed an EMS for a standalone DC MG comprising a PV/FC/battery system to improve longevity and reliability of battery system, while also reducing H2 intake. Different operational scenarios and experimental results are shown to demonstrate efficacy in real-life. However, the authors did not consider the DC–DC converter dynamics, battery SOC, and hydrogen storage constraints, such that the final level should meet the initial level, which is mandatory for a standalone system. Using meta-heuristic algorithms like the hybrid bat search algorithm [16] and cuckoo search algorithm [17], the authors have presented an EMS for DC MGs comprised of composite ESS. However, the problem with meta-heuristic algorithms is that there are scenarios where these algorithms can be trapped in local maxima, leading to lower system efficiency [18,19]. To address this limitation, dynamic programming (DP) has been utilized to design EMS for MGs. Unlike meta-heuristic algorithms, DP ensures that the global maxima is achieved instead of getting trapped in local maxima. In [20,21], the authors applied DP to identify the best control strategy and optimal sizing for distributed energy resources (DERs) in an electric-hydrogen-based microgrid. This approach not only provides highly accurate results but also requires less computational power. However, it is important to note that the authors focused on upperlevel system control and did not consider the local-level control and power electronics converter dynamics, which play a crucial role in ensuring grid stability [22]. Based on Fuzzy Logic Control (FLC), the EMS system for various DC MGs has been presented [23,24]. Although the authors provided a detailed control system analysis but due to the limited simulation time window, the article lacks an in-depth analysis of the connected energy sources. Additionally, the issue with FLC is that a comprehensive rule-based table is mandatory to achieve satisfactory results, which incurs high computational costs. At the local level, robust and intelligent control systems are required to track reference signals provided by the upper system level EMS. In the case of DC MG, local level control must be capable of regulating DC bus voltage and track the required current levels to drive the RESs at their maximum power point (MPP) and regulate the power from AES to meet load requirements. Conventionally, linear controllers such as PID have been used to track these signals. But these linear PID controllers have limited regulating area and produce overshoot/undershoot during sudden changes. To overcome these issues, several non-linear controllers have been developed based on the Lyapunov stability criteria [25–27]. These includes an integral backstepping technique, presented by the author in [28] for PV/Wind energy based DC MG. Although these controllers are effective in tracking required references, the design process is complicated and cumbersome. Owing to the simplicity and robustness of sliding mode control (SMC) theory, various high order controller have been devised for DC–DC converters [29,30]. These higher-order SMCs, such as Terminal SMC (TSMC) [31] and Supertwisting SMC (STSMC) [32], not only have the ability to be robust to external disturbances but also have a quick transient response in case of a sudden change in the reference signal. Additionally, the recent novelties in the reaching laws for these higher order SMC has greatly reduced the inherent chattering problem of the SMC [33,34]. The above discussion leads to the conclusion that for an offshore DC MG having multiple RESs and hydrogen production system, an advanced hierarchical control based on an optimized EMS and robust local level tracking should be devised. Based on these objectives, this study considers Wind Energy System (WES) and Tidal Energy System (TES) as RESs. These WES and TES are selected on the fact that not only these RESs can be easily implemented offshore but the predictable nature of tidal current speed ease up the optimization and planning process. Additionally, for an in-depth analysis of this MG, the system level controller has been simulated in hours/minutes and local level controller in milliseconds. The core objective of this research is to design an optimized two-stage hierarchical control for an offshore DC MG. On the system level EMS, the cost optimization of DERs that includes offshore WES and TES, battery units, FC and hydrogen production system has been performed. On the local level control, fast reaching law based integral terminal sliding mode controller (FRL-ITSMC) has been designed to track the references from the upper system level EMS and provide accurate and quick transient response to any disturbance in real-time. The major contributions can be summarized as follows: 1. The research article describes the detailed mathematical modeling of RESs, FC, battery, hydrogen production system and an overall unified including the DC bus dynamics. 2. A two-level hierarchical control has been devised, with the upper system level focusing on EMS of DERs to lower operational costs and ensure power system stability constraints, while the FRLITSMC on the lower local level generates maximum power from RES and stabilizes the DC bus by meeting load requirements from AES. 3. A comparative analysis with existing literature has been presented to validate the robustness of FRL-ITMSC against varying loads and environmental conditions. 4. Controller hardware-in-loop (C-HIL) simulations are provided to validate the efficacy in real-life. The research paper has be categorized as follows: Section 2 outlines the system configuration. Sections 3 and 4 details the hierarchical control strategy employed for system level and local level control respectively. Section 5 discusses the results obtained under different scenarios, and Section 6 draws the conclusion from the main findings of this research article. 2. Mathematical modeling of DC MG Fig. 1 shows the configuration of RESs and AES embedded in the proposed offshore DC MG. The WES and TES have been considered as the main energy sources (MES), while the FC, battery, and diesel generator (DG) have been considered as AES. The WES and TES have been interfaced with 600 V DC bus by boost converters to realize MPP from these RESs. The battery system has been configured with a bidirectional DC–DC converter for realizing charging and discharging modes. Due to uni-directional power flow, the FC has been interfaced by a boost converter. Finally, the electrolyzer and DG have been linked via buck converters to generate hydrogen from the renewable energy and meet the load requirements, respectively. The MES, AES, and load have been supervised by the proposed hierarchical control strategy to ensure power system stability. 2 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Fig. 1. Architecture of DC microgrid under study. for TES. πΆπ is the power coefficient that depends on blade pitch angle π½ and function π, defined as follows: π= ππ π π£π‘ (2) where ππ and π represents the rotor angular speed and its radius. By substitution Eq. (2) into (1), ππππβ can be simplified as, ) 1 ( 3 ππππβ = πππ π΄π 3 πΆπ (π, π½) (3) 2π3 The optimal torque control (OTC) technique is utilized in the MPPT of WES and TES to generate controller reference. This technique involves adjusting the torque of PMSG to achieve the maximum reference torque of turbine at a particular wind or ocean current speed, resulting in high accuracy and easy implementation. Assuming optimal tipspeed ratio (ππ ) and maximum power coefficient (πΆππππ₯ ), the maximum mechanical power (πππ ) can be yielded as [36], Fig. 2. Circuit diagram and optimal torque control strategy for wind energy system. ) 1 ( 3 πππ π΄π 3 πΆππππ₯ = πΎπππ π3π 2π3π 2.1. Modeling of WES and TES πππ = The WES and TES under consideration in this research, comprises of wind and tidal turbines that interfaces with DC bus using permanent magnet synchronous generator (PMSG), uncontrolled rectifier and DC– DC boost converter. The configuration of WES and TES have been shown in Figs. 2 and 3, respectively. The PMSG-based turbine system is preferred due to its ease of control, uncomplicated structure, and costeffectiveness. Through the use of turbines and associated PMSG, the WES and TES harness wind and ocean currents to generate electrical energy respectively. The mechanical power from WES and TES can be derived as follows [35]: According to the power to torque relationship, the maximum attainable torque (ππππ₯ ) can be derived as, ) 1 ( 2 ππππ₯ = πππ π΄π 3 πΆππππ₯ = πΎπππ π2π (5) 2π3π ππππβ = 0.5ππ£3π‘ π΄πΆπ (π, π½) (4) Additionally, the ππππ₯ relationship can be utilized to generate the TES/WES reference current πΌπππ as follows: πΌπππ = ππππ₯ ππ πππ (6) where πππ is the input voltage of the WES/TES. Furthermore, based on the WES/TES configuration with the DC Bus, the dynamical model can be derived as: ( ( )) πππ€ππ 1 = ππ€ππ − ππ€ππ π πΏπ€ππ − πππ’π‘ 1 − π1 (7) ππ‘ πΏπ€ππ (1) where π΄ and π£π‘ represents turbine blade area and wind/ocean current speed, respectively. π denotes air density for WES and water density 3 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Fig. 3. Circuit diagram and optimal torque control strategy for tidal energy system. Fig. 4. Configuration of fuel cell system using boost converter. ( ( )) πππ‘ππ 1 ππ‘ππ − ππ‘ππ π πΏπ‘ππ − πππ’π‘ 1 − π2 = ππ‘ πΏπ‘ππ (8) ( ) π1 = 1 − π1 ππ€ππ where πΎπ represents modeling constant. Based on the PEMFC configuration with the DC MG, its dynamical model can be derived as [29]: (9) πππ π ππ‘ ( ) π2 = 1 − π2 ππ‘ππ (10) = ππ π − πΏπ π ππ π π πΏπ π πΏπ π ( )π − 1 − π3 ππ’π‘ πΏπ π (14) (15) π3 = ππ π (1 − π3 ) where πππ’π‘ , π πΏπ€ππ , π πΏπ€ππ represents the DC bus voltage, WES inductor (πΏπ€ππ ) ESR and TES inductor (πΏπ‘ππ ) ESR. π1 and π2 are WES and TES converters duty cycles. {ππ€ππ , ππ‘ππ } and {ππ€ππ , ππ‘ππ } are WES and TES input voltage and current respectively. where π πΏπ π , π3 and π3 represents inductor (πΏπ π ) ESR, converter duty cycle and PEMFC subsystem output current, respectively. 2.2. Modeling of fuel cell Electrolyzers are a crucial component of hydrogen energy systems that utilize electrical power to produce H2 from water. The electrolyzer has configured with DC bus via a buck converter, presented in Fig. 5. The mathematical model of the electrolyzer is developed, based on several assumptions, including the complete saturation of water vapor in the electrolytic cells, constant temperature and pressure in the gas flow channels of the cells, and separability of the liquid and gas phases. The enthalpy of water vapor is assumed to be constant during operation, and energy consumption for water supply and H2 compression is not taken into account. Additionally, the system’s operation has been restricted by parasitic current losses, and it cannot operate at maximum capacity. The current efficiency can be calculated using Faraday’s Law as follows: [38]. 2.3. Modeling of electrolyzer In the proposed DC MG, the proton exchange membrane fuel cell (PEMFC) is implemented to convert H2 into electrical energy. Due to its quick response and reliability, PEMFC has been vital component of the hydrogen power based MG. The PEMFC is configured with DC bus via a DC–DC Boost Converter using a current control configuration, presented in Fig. 4. The PEMFC generated voltage (ππ π ) and its internal dynamics can be modeled as follows [37]: ππ π = πΈπππ + πΈπβπ + πΈπ + πΈ0 ( ( )) πΈ0 = π πΈπ − π΄ ln ππ πΈπ = ln (11) πΈπβπ = π π ππ π ( ) ππ π ( 1 ) ππ + 1 ππ ππ = 96.5 × π where πΈπππ , πΈπβπ , πΈπ , πΈ0 and πΈπ represent concentrated voltage, ohmic voltage, active over-voltage, open-circuit voltage, and Nernst instantaneous voltage, respectively. π and ππ is the total number PEMFCs and their exchange current, respectively. π΄, π and π π present tafel slope, response time and its internal resistance. Furthermore, the hydrogen utilization factor (πH2 ) is a crucial parameter that ensures the smooth and efficient operation of PEMFC. This factor can be determined by ππ ) and injected hydrogen (π ππ ) inside analyzing levels of reacted (πH H2 2 tank, as follows: ππ ππ πH2 = πH βπH 2 2 2πΎπ ≤ ππ π ≤ ππ 0.9πH 2 2πΎπ (16) ππ πΌπππ ππππ (17) 2πΉ where ππππ and πΉ represents amount of electrolyzer cells and Faraday constants (96 487 C/mol). Additionally, based on the electrolyzer configuration with DC MG, its dynamical model has been derived as, π H2 = To improve the PEMFC operating efficiency, πH2 should lie in the range from 0.8 to 0.9. Over-utilization of hydrogen (πH2 > 0.9) will decrease the lifespan of the fuel cell, while under-utilization of hydrogen (πH2 < 0.8) will result in lower operating efficiency. Utilizing these constraints, the optimal value of PEMFC current (ππ π ) constraint equation can be derived as: ππ 0.8πH 0.09 75.5 − πΌπππ πΌ 2 πππ where ππ and πΌπππ denotes current efficiency and electrolyzer operating current. Furthermore, the relationship between hydrogen production rate πH2 (mol/s) and πΌπππ can be derived as, (12) 2 ) ( ππ΄ πππππ π π π π π = − πππ − πππ πππ + 4 ππ’π‘ ππ‘ πΏπππ πΏπππ πΏπππ (18) π4 = ππππ (π4 ) (19) 2.4. Modeling of H2 tank The H2 generated by electrolyzer has been stored in compressed gas tank and then utilized by PEMFC for producing electrical energy. The mathematical model of H2 pressure in tank can be calculated (13) 4 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Fig. 7. Configuration of diesel generator system using buck converter. Fig. 5. Configuration of electrolyzer system using buck converter. of the implemented BESS system can be computed using the methods described in [39,40]. π‘ πππΆπππ‘π‘ = πππΆπ0 + using various factors such as ambient temperature (π ), the volume of hydrogen stored (ππ‘ ), and compressibility factor (π = 1.006). ππH2 π π πH 2 π π‘ (20) ππππ’π‘ ( ) ππππ‘π‘ π = π56 − 5 ππ‘ πΆππ’π‘ πΆππ’π‘ ππ‘πππ ππππ₯ (23) (26) where π56 is a virtual control introduced to derive the unified model of the BESS, calculated as, ( ) π56 = (1 − πΉ ) π6 + πΉ 1 − π5 (27) (21) where πH2 and πΏπ»π are the H2 molar mass and lower heat value respectively. Finally, the H2 state of charge (πππΆH2 ) for upper system level EMS can be calculated as the ratio between current tank pressure ππ‘πππ and maximum tank pressure ππππ₯ . πππΆH2 = ππππ‘π‘ ππππ‘π‘ Based on the switch configuration and equation. (24), the dynamical model of the BESS can be derived as: ( ) πππ’π‘ πππππ‘π‘ π π = πππ‘π‘ − πΏπππ‘π‘ ππππ‘π‘ − π56 (25) ππ‘ πΏπππ‘π‘ πΏπππ‘π‘ πΏπππ‘π‘ Additionally, the energy stored capacity (πΈπ‘πππ ) of the tank can be derived as, πΈπ‘πππ = ππ‘πππ πH2 πΏπ»π ππππ‘π‘ where ππππ‘π‘ , ππππ‘π‘ are battery capacity and ampere hour efficiency and πππΆπππ‘π‘ , πππΆπ0 denotes battery current and its initial SOC, respectively. In the configuration in Fig. 6, the BESS consists of an inductor (πΏπππ‘π‘ ) with its ESR (π πΏπππ‘π‘ ), output capacitor πΆππ’π‘ , and switches (π5 , π6 ). The duty cycles (π5 , π6 ) for switches (π5 , π6 ) are generated by the local controller. The charging and discharging mode are regulated by a reference signal ππππ‘π‘πππ which is generated by system level control. Specifically, when ππππ‘π‘πππ < 0, the converter operates in the buck mode for charging BESS, while for ππππ‘π‘πππ > 0, it operates in the boost mode for discharging the BESS. To simplify the controller design process, a new variable πΉ has been introduced. { 1 ππππ‘π‘πππ > 0 (Discharging Mode) πΉ= (24) 0 ππππ‘π‘πππ < 0 (Charging Mode) Fig. 6. Configuration of battery energy storage system using bi-directional buck-boost converter. ππ‘πππ = ∫0 2.6. Modeling of diesel generator To meet the load power demands, the diesel generator (DG) has been incorporated with other AES. The generator has been interfaced with the DC MG via a buck converter to regulate the power delivery shown in Fig. 7. The dynamical model of the diesel generator in this configuration can be derived as, (22) 2.5. Modeling of battery energy storage system ππππ To prevent fuel starvation during high load demands, a battery energy storage system (BESS) has been incorporated with the PEMFC to satisfy additional load requirements. The BESS has been configured with the DC bus via a bi-directional buck-boost converter, as shown in Fig. 6. This DC–DC converter is capable of bi-directional current flow, allowing the BESS to charge in buck mode or discharge in boost mode as required by the load current demand. The SOC of BESS reflects the amount of charge available relative to battery peak charging capacity. Monitoring SOC is critical because it determines which energy storage unit and how much it should be used by the system level control. For the low level control, the SOC values ππ‘ =− πππ πΏππ − π ππ πππ πΏππ + π7 πππ’π‘ πΏππ π6 = πππ (π7 ) (28) (29) 2.7. Modeling of DC bus dynamics Based on the configuration of all DERs in the proposed DC MG, shown in Fig. 8, the load current (ππΏ ) can be calculated as, ππΏ = π1 + π2 + π3 + π4 + π5 + π6 5 (30) Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Fig. 8. Overall circuit diagram of the microgrid under study. 3. System level energy management system Substituting values of π1 , π2 , π3 , π4 and π6 from Eqs. (9), (10), (15), (19) and (29), Eq. (30) can be modified as, 3.1. Objective function π5 = ππΏ − ((1 − π1 )ππ€ππ + (1 − π2 )ππ‘ππ + (1 − π3 )ππ π + π4 ππππ + π7 πππ ) (31) In order to minimize the overall operating cost of the proposed DC MG, the objective function can be defined as, Utilizing Eq. (26) and (31), the DC bus dynamics can be modeled as: ( ) ( ) ( ) ππ π 1 − π3 ππ€ππ 1 − π1 ππ‘ππ 1 − π2 ππππ’π‘ = + + ππ‘ πΆππ’π‘ πΆππ’π‘ πΆππ’π‘ ππππ π4 ππππ‘π‘ π56 πππ π7 ππΏ + + + − πΆππ’π‘ πΆππ’π‘ πΆππ’π‘ πΆππ’π‘ min πΉ = πππ + ππ where πππ represents the cost associated with diesel generator and ππ represents the maintenance cost for the BESS degradation and hydrogen utilization and production system. These objective functions can be mathematically defined as follows, (32) 2.8. Unified modeling of offshore DC MG πππ = To ease the control design process of proposed DC MG, the governing equations of all DERs have been combined and averaged over one switching cycle. ( ) π₯ 7 1 − π1 π π₯ π π₯Μ 1 = π€ππ − 1 πΏπ€ππ − (33) πΏπ€ππ πΏπ€ππ πΏπ€ππ ( ) ππ‘ππ π₯2 π πΏπ‘ππ π₯7 1 − π2 π₯Μ 2 = − − (34) πΏπ‘ππ πΏπ‘ππ πΏπ‘ππ ( ) ππ π π₯3 π πΏπ π π₯7 1 − π3 π₯Μ 3 = − − (35) πΏπ π πΏπ π πΏπ π ππππ π₯ π π₯ π − 4 πππ + 7 4 πΏπππ πΏπππ πΏπππ (36) ππππ‘π‘ π₯ π π₯ π − 5 πΏπππ‘π‘ − 7 56 πΏπππ‘π‘ πΏπππ‘π‘ πΏπππ‘π‘ (37) π₯Μ 4 = − π₯Μ 5 = πππ π₯6 π ππ π₯ π π₯Μ 6 = − − + 7 7 πΏππ πΏππ πΏππ ( ) ( ) ( ) π₯1 1 − π1 π₯2 1 − π2 π₯3 1 − π3 π₯Μ 7 = + + πΆππ’π‘ πΆππ’π‘ πΆππ’π‘ π4 π₯4 π56 π₯5 π7 π₯6 ππΏ + + + − πΆππ’π‘ πΆππ’π‘ πΆππ’π‘ πΆππ’π‘ (40) ππ = π ( ) ∑ πΌπ1 (ππ‘ππ )2 + πΌπ2 ππ‘ππ ⋅ π₯π‘ π‘=1 π ( ∑ ( ) ) πΌπ1 ππ‘πππ + ππ‘πβπ + πΌπ2 ππ‘π π + πΌπ3 ππ‘πππ ⋅ π₯π‘ (41) (42) π‘=1 where πΌπ1 and πΌπ2 are the levelized cost for DG and πΌπ1 , πΌπ2 and πΌπ3 are the maintenance cost for BESS, PEMFC and electrolyzer respectively. Furthermore, ππ‘ππ , ππ‘π π , ππ‘πππ , ππ‘πβπ and ππ‘πππ are the power levels of DG, PEMFC, electrolyzer, BESS charging and discharging power, respectively. 3.2. System constraints In order to provide reliable power delivery to end-user and ensure grid stability, the power system constraints for each individual DER has to be meet. These constraints associated with each RES and AES have been defined as follows: 3.2.1. Power balance constraint To ensure grid stability, the power generated from the WES (ππ‘π€ππ ), TES (ππ‘π‘ππ ) and AES should meet the load demand (ππ‘πΏ ). In-addition, if the power generated from RESs are less, then BESS, PEMFC and DG have been utilized to cater for load demands. On the contrary, when there is excess power, then electrolyzer and BESS are used to produce hydrogen and charge the batteries respectively. Mathematically, the power balance constraint can be summarized as, (38) (39) where π₯1 , π₯2 , π₯3 , π₯4 , π₯5 , π₯6 and π₯7 denotes the averaged states values of ππ€ππ , ππ‘ππ , ππ π , ππππ , ππππ‘π‘ , πππ and πππ’π‘ , respectively. ππ‘π€ππ + ππ‘π‘ππ + ππ‘π π + ππ‘πππ = ππ‘πΏ + ππ‘πβπ + ππ‘πππ 6 (43) Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Fig. 9. Overview of hierarchical control structure using system and local level controllers. 3.2.2. RES and DG constraints The EMS constraints for the power generated from WES, TES and DG can be defined as follows: 3.2.4. Hydrogen utilization and production constraints In order to switch between the hydrogen production or utilization mode, the binary variables π¦πππ and π¦π π have been defined as follows, π€ππ 0 ≤ ππ‘π€ππ ≤ ππππ₯ (44) π¦πππ + π¦π π = 1 (53) π‘ππ 0 ≤ ππ‘π‘ππ ≤ ππππ₯ (45) πππ 0 ≤ ππ‘πππ ≤ (ππππ₯ ) ⋅ (π¦πππ ) (54) ππ 0 ≤ ππ‘ππ ≤ ππππ₯ (46) ππ 0 ≤ ππ‘π π ≤ (ππππ₯ ) ⋅ (π¦π π ) (55) ππ ππππ₯ πππ and where ππππ₯ are maximum power levels for electrolyzer and PEMFC. Additionally, Eqs. (53) to (55) ensure that the hydrogen system either work in production mode or utilization mode. Furthermore, H2 levels in the storage tank can be calculated as, π€ππ , π π‘ππ and π ππ are maximum power generation limit for where ππππ₯ πππ₯ πππ₯ the WES, TES, and DG respectively. 3.2.3. BESS constraints To ensure BESS is either in charging or discharging modes, the binary variables π¦πβπ and π¦πππ are introduced, πβπ πππ π¦ +π¦ 0≤ ππ‘πβπ ≤ H2 πΈπ‘ (47) =1 πβπ (ππππ₯ ) ⋅ (π¦πβπ ) H πβπ πππ denotes maximum charging and discharging where ππππ₯ and ππππ₯ power of BESS respectively. Furthermore, SOC level of the BESS can be calculated as, πβπ πππΆ πΈπ‘πππΆ = πΈπ‘−1 + ππ‘−1 ⋅ ππβπ − πππΆ πππΆ πΈπππ ≤ πΈπ‘πππΆ ≤ πΈπππ₯ ππππ ππ‘πππ ⋅ ππππ − ππ‘πππ ππππ =0 ππ π H 2 ≤ πΈπππ₯ (56) (57) ππ‘π π ππ π =0 (58) (50) 4. Local level controller design and stability analysis (51) The configuration of hierarchical control structure using FRL-ITSMC for the proposed DC MG has been presented in Fig. 9. The primary control objective of the local-level controller is to drive the WES and TES at its MPP and regulate the power from the AES to meet the load demands by tracking the references generated by the system level EMS. The control objectives can be summarized as follows: where ππβπ and ππππ represents charging and discharging efficiency πππΆ and πΈ πππΆ denotes the set-points for minimum and of BESS. πΈπππ πππ₯ maximum charge level of the BESS. Furthermore, the constraint to ensure the initial and final level of SOC level to be same can be defined as: ππ‘πβπ ⋅ ππβπ − ππ ππ‘−1 where ππππ and ππ π are the electrolyzer and PEMFC efficiency for the H2 H2 hydrogen system. πΈπππ and πΈπππ₯ denotes the minimum and maximum H2 storage level respectively. Additionally, to ensure that final H2 level at the end of day meet the initial level, the following equation must be satisfied: (49) πππ ππ‘−1 H2 2 πΈπππ ≤ πΈπ‘ (48) πππ 0 ≤ ππ‘πππ ≤ (ππππ₯ ) ⋅ (π¦πππ ) H πππ 2 = πΈπ‘−1 + ππ‘−1 ⋅ ππππ − • Tracking of WES and TES current {ππ€ππ , ππ‘ππ } to {ππ€πππ , ππ‘ππππ } to attain MPPT from these RESs. (52) 7 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. • Regulation of power from AES {ππ π , ππππ , ππππ‘π‘ , πππ } to EMS generated references {ππ ππππ , πππππππ , ππππ‘π‘πππ , ππππππ } to meet load demands and power system constraints. • Accurate and tight regulation of DC bus voltage against variations in connected load and power from RESs. • Ensuring asymptomatic stability of FRL-ITSMC using Lyapunov stability criteria. introduced in [41], that can be stated as, ( ) π π ππ π −1 πΜ π = −πΌπ π ππ ππ − π½π ππ − πΎπ ||ππ || π (| π | ) ππ where {πΌπ , π½π , πΎπ , ππ } > 0 are the FRL control parameters. The dynamic response of the FRL to the varying ITSMC can be calculated as, { π ππ > 1 πΜ π = −πΌπ − π½π ππ − πΎπ ||ππ || π ππ (65) ( ) −π ππ < 1 πΜ π = −πΌπ π ππ ππ − π½π ππ − πΎπ ||ππ || π ππ 4.1. Designing of FRL-ITSMC It can be deduced from Eq. (65) that when the system is far away from the sliding surface (ππ > 1), the convergence speed is faster with respect to common exponential law [42]. Additionally, when the system states are near to sliding surface (ππ < 1), the reaching rate decreases to reduce chattering [41]. Utilizing the Eqs. (63) to (65), the control laws (π1 , π2 ) for minimization of errors (π1 , π2 ) and to drive the WES and TES at their MPP can be derived as, ( ( ) π₯ 7 1 − π1 πΏ ππ€ππ π₯ π π1 =1 − π€ππ − 1 πΏπ€ππ − − πΜ π€πππ π₯7 πΏπ€ππ πΏπ€ππ πΏπ€ππ ( π‘ )π€1 −1 ) (66) + π1 π€1 π1 π1 ππ‘ ∫0 ( ) ( ) πΏ π π ππ π −1 + π€ππ −πΌ1 π ππ π1 − π½1 π1 − πΎ1 ||π1 || 1 (| 1 | ) π1 π₯7 ( ( ) π₯ 7 1 − π2 πΏπ‘ππ ππ‘ππ π₯ π π2 = 1 − − 2 πΏπ‘ππ − − πΜ π‘ππππ π₯7 πΏπ‘ππ πΏπ‘ππ πΏπ‘ππ ) ( π‘ )π€2 −1 (67) + π2 π€2 π2 π2 ππ‘ ∫0 ) ( ) πΏ ( π π ππ π −1 + π‘ππ −πΌ2 π ππ π2 − π½2 π2 − πΎ2 ||π2 || 2 (| 2 | ) π2 π₯7 To achieve the control objectives and regulate power levels, the error signals ππ have been defined for individual DER as follows, β‘π1 β€ β‘ π₯1 − ππ€πππ β€ β₯ β’π β₯ β’ π₯ − π π‘ππππ β₯ β’ 2β₯ β’ 2 β’π3 β₯ β’ π₯3 − ππ ππππ β₯ π = β’π4 β₯ = β’ π₯4 − πππππππ β₯ β₯ β’ β₯ β’ β’π5 β₯ β’π₯5 − ππππ‘π‘πππ β₯ β’π6 β₯ β’ π₯6 − ππππππ β₯ β₯ β’ β₯ β’ β£π7 β¦ β£π₯7 − πππ’π‘πππ β¦ (64) (59) In order to converge these errors signals to zero and achieve system stability, a sliding surface is required. The objective of the sliding surface is to converge the error in the vicinity of the surface and then slide it to bring it the equilibrium point. Based on this Integral Terminal SMC (ITSMC) theory, the sliding surface ππ for the convergence of error to zero (ππ → 0) is defined as follows: { ( )π€π π‘ (60) π = {1, 2..., 6} ππ = ππ + ππ ∫0 ππ ππ‘ where ππ and π€π are ITSMC surface control parameters, defined as, { ππ > 0 π = {1, 2..., 6} (61) 1 < π€π < 2 π = {1, 2..., 6} Furthermore, the control laws (π3 , π4 ) for the hydrogen utilization and production system can be calculated by substituting Eq. (64) into (63) respectively, ( ( ) πΏπ π ππ π π₯3 π πΏπ π π₯ 7 1 − π3 π3 = 1 − − − − πΜ π ππππ π₯7 πΏπ π πΏπ π πΏπ π ) ( π‘ )π€3 −1 (68) + π3 π€3 π3 π3 ππ‘ ∫0 ) πΏπ π ( ( ) π π ππ π −1 + −πΌ3 π ππ π3 − π½3 π3 − πΎ3 ||π3 || 3 (| 3 | ) π3 π₯ The inclusion of error integral action in ITSMC surface enables it to minimize the SMC chattering effect and achieve a fast transient response to sudden changes in reference value. To incorporated the MG dynamics into surface ππ , its time derivative can be derived as, { ( )π€π −1 π‘ (62) πΜ π = πΜ π + ππ π€π ππ ∫0 ππ ππ‘ π = {1, 2..., 6} In order to derive the control laws (π1 , π2 , π3 , π4 , π5 6, π7 ), the MG dynamics from Eqs. (33) to (38) has been substituted into Eq. (62). The modified surface dynamics for each individual DER can be calculated as, ( ) ( )π€1 −1 β€ π₯1 π πΏπ€ππ π₯7 1 − π1 β‘ ππ€ππ π‘ − − − πΜ π€πππ + π1 π€1 π1 ∫0 π1 ππ‘ β’πΏ β₯ πΏπ€ππ πΏπ€ππ β’ π€ππ β₯ β’ β₯ ( ) ( )π€2 −1 β₯ β‘πΜ 1 β€ β’ π π₯2 π πΏπ‘ππ π₯7 1 − π2 π‘ π‘ππ β₯ β’ β₯ β’ − − − πΜ π‘ππππ + π2 π€2 π2 ∫0 π2 ππ‘ πΏπ‘ππ πΏπ‘ππ β₯ β’ β₯ β’ πΏπ‘ππ β’πΜ 2 β₯ β’ β₯ ( ) β’ β₯ β’ π β₯ ( ) π€ −1 π₯ π π₯ 1 − π 3 3 πΏπ π 3 π‘ β’ β₯ β’ ππ − 7 β₯ Μ ∫ − − π + π π€ π π ππ‘ Μ π ππππ 3 3 3 3 0 β’π3 β₯ β’ πΏπ π β₯ πΏπ π πΏπ π β’ β₯=β’ β₯ β’ Μ β₯ β’ ( )π€4 −1 β₯β₯ ππππ π₯4 π πππ π₯7 π4 β’π4 β₯ β’ π‘ + − πΜ ππππππ + π4 π€4 π4 ∫0 π4 ππ‘ β’ β₯ β’ −πΏ − πΏ β₯ πΏπππ πππ πππ β’ Μ β₯ β’ β₯ π β’ 5β₯ β’ β₯ ( ) π€ −1 π π₯ π π₯ π 5 β’ β₯ β’ πππ‘ β₯ π‘ − 5 πΏπππ‘π‘ − 7 56 − πΜ πππ‘π‘πππ + π5 π€ π€5 π5 ∫0 π5 ππ‘ β’πΜ β₯ β’ πΏ β₯ πΏπππ‘π‘ πΏπππ‘π‘ β£ 6 β¦ β’ πππ‘π‘ β₯ β₯ β’ ( ) π€6 −1 π₯6 π ππ πππ β’ β₯ π₯7 π7 π‘ Μ − − + − ππππππ + π6 π€6 π6 ∫0 π6 ππ‘ β’ β₯ πΏππ πΏππ πΏπππ β¦ β£ 7 πΏ π4 = πππ π₯7 + πΏπππ π₯7 ( ( π‘ )π€4 −1 ) ππππ π₯4 π πππ π₯ 7 π4 Μ − − + − πππππππ + π4 π€4 π4 π ππ‘ ∫0 4 πΏπππ πΏπππ πΏπππ ( ) ( ) π π ππ π −1 −πΌ4 π ππ π4 − π½4 π4 − πΎ4 ||π4 || 4 (| 4 | ) π4 (69) Finally, utilizing (64) and (63), the FRL-ITSMC laws (π56 , π7 ) for BESS and DG can be calculated as, ( πΏ ππππ‘ π₯ π π₯ π π56 = πππ‘π‘ − 5 πΏπππ‘π‘ − 7 56 − πΜ πππ‘π‘πππ π₯7 πΏπππ‘π‘ πΏπππ‘π‘ πΏπππ‘π‘ ( )π€ −1 ) π‘ + π5 π€5 π5 ∫0 5 π5 ππ‘ (70) ) ( ) πΏπππ‘π‘ ( π π ππ π −1 −πΌ5 π ππ π5 − π½5 π5 − πΎ5 ||π5 || 5 (| 5 | ) π5 π₯7 ( ( π‘ )π€6 −1 ) πΏππ πππ π₯6 π ππ π₯ π π7 = − − + 7 7 − πΜ πππππ + π6 π€6 π6 π6 ππ‘ ∫0 π₯7 πΏππ πΏππ πΏπππ ) πΏππ ( ( ) π π ππ π −1 + −πΌ6 π ππ π6 − π½6 π6 − πΎ6 ||π6 || 6 (| 6 | ) π6 π₯7 + (63) In order to increase the convergence speed and improve transient response against abrupt changes, a fast reaching law (FRL) has been (71) 8 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Fig. 10. (a) Wind speed and power generated (b) Tidal current speed and power generated. Fig. 11. Power levels of connected energy sources and user connected load under different cases. 4.2. Stability analysis The stability of FRL-ITSMC has been analyzed by Lyapunov stability criteria (LSC). Using LSC theory, the composite candidate function ππ can be defined as. ππ = 6 ∑ πππ = π=1 6 1∑ (π )2 2 π=1 π (72) According to LSC, the system can be considered asymptotically stable if each candidate function πππ > 0 and its derivative πΜ ππ ≤ 0. To determine the dynamics of the Lyapunov function, we can take the time derivative of Eq. (72). Fig. 12. Hydrogen storage level in the tank. πΜ ππ = ππ πΜ π (73) To analyze the dynamics of surface π1 , the Lyapunov function ππ1 can be derived by utilizing Eqs. (64) and (73), πΜ π1 = π1 πΜ 1 ( ) ( ) π π ππ π −1 = π1 −πΌ1 π ππ π1 − π½1 π1 − πΎ1 ||π1 || 1 (| 1 | ) π1 ( ) π π ππ π −1 = −πΌ1 π1 π ππ π1 − π½1 π12 − πΎ1 π12 ||π1 || 1 (| 1 | ) (74) ≤0 By applying a similar stability method. πΜ π2 to πΜ π6 for surfaces π2 to π6 , can be made negative definite, provided {πΌπ , π½π , πΎπ , ππ } > 0. Fig. 13. State of charge of battery energy storage system. 9 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Fig. 14. Tracking of DC bus voltage by different controllers. Fig. 15. Current tracking of different energy sources by local level controller. Fig. 16. Overview of controller hardware in loop configuration using Matlab and Delfino F28379D Launchpad. 10 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Table 1 Power levels analysis under different cases. 5. Results & Discussions To validate the effectiveness of the proposed hierarchical control scheme, the offshore DC MG has been simulated using MATLAB/Simulink 2023a. The specifications of the implemented WES, TES are provided in Table 3. The specifications of the AES and FRL-ITSMC control parameters are listed in Tables 4, and 5 respectively. For detailed analysis of the hierarchical control structure, the simulations have been divided into further subsections. RESs BESS DG H2 Case 1 Case 2 Case 3 Surplus Charging Idle Production Deficit Fully charged Lowest Maximum level Deficit Discharging High Utilization 5.1. System level control simulation The system level control presented in Section 3 has been modeled using Yalmip toolbox and solved using CPLEX 12.10 and MATLAB 2023a for a 24-h window to generate the reference signals for each individual energy resource. The MG system has been simulated against a 400 kW varying load to provide the effectiveness of proposed control scheme and to assess both power deficit and excess modes. The WES and TES output power can be analyzed in Figs. 10(a) and 10(b), respectively. The simulated power curves of each RES and AES for a 24 h time-window have been presented in Fig. 11. Furthermore, the H2 levels and battery SOC can be presented in 12 and 13, respectively. Based on the power levels at different time-stamps, the 24-h simulation window can be divided into 3 cases, where each case represents a different scenario. Fig. 17. DC bus regulation using controller hardware in loop simulation. additional 66 kW load power demand. Finally, it can be concluded from Figs. 11, 12, and 13 that the DG has been utilized effectively not only to cater for additional load demand but also to satisfy the constraint that battery SOC and H2 levels should match the initial levels at the end of the daily cycle. For ease of readability, these cases have been summarized in Table 1. 5.1.1. Case 1: It can be deduced from Fig. 11 that from π‘ = 1 to 6 h, the load demand (130 kW to 150 kW) is lower compared to the power generated from the WES and TES. The average power generated from WES and TES in this time window is approximately 75.5 kW and 101 kW respectively. In this excess mode, the additional power has been delivered to the electrolyzer and BESS to produce H2 and charge the battery to provide power for the rest of the day. The charging and hydrogen production phenomenon can be validated from the fact that power from BESS and PEMFC has been negative in the time frame. Furthermore, the increased H2 level and battery SOC for this time period can be analyzed from Figs. 12 and 13, respectively. Additionally, the power generated from the DG has been at its lowest level to minimize operating costs. 5.2. Local level control simulation The configuration of the implemented hierarchical control scheme has been presented in Fig. 9. The local level control was achieved using FRL-ITSMC control laws, derived in Section 4. The MG structure and the derived control laws have been modeled in MATLAB/Simulink. For detailed analysis, the modeled system has been simulated using ode45 with a step size of 0.1 ms. The DC bus regulation and current tracking of the RES and AES by FRl-ITSMC have been presented in Figs. 14 and 15, respectively. It can be deduced from Fig. 14(a) that the FRL-ITSMC ensured tight DC bus voltage regulation to 600 V throughout the complete simulation window. Fig. 14(b) showcases the initial controller response which shows that the controller achieve the steady state in around 0.08 s Furthermore, at π‘ = 10 s and π‘ = 17 s, when there is an abrupt requirement from PEMFC and BESS, there is a dip in DC bus voltage but the FRL-ITSMC quickly recover and reach the steady state. This transient response and the minimal steady state error can be analyzed from Fig. 14(c) and (d), respectively. In-addition, the individual current tracking of each RES and AES can be analyzed from Fig. 15. It can be deduced from these sub-figures that the FRL-ITSMC not only tracked the reference signal accurately but it also exhibit a very quick response. In order to validate the effectiveness of the proposed FRL-ITSMC scheme against prior control schemes, the performance has been compared against conventional PID and ITSMC. Based on the DC bus voltage regulation provided in Fig. 14, the detailed analysis has been carried out and is presented in Table 2. It can be seen that out of these three controllers, the ITSMC has quickest rise time but it exhibit overshoot in the initial tracking. The PID on the other-hand has not only the slowest response but it also have larger undershoot and settling time compared to FRL-ITSMC and ITSMC. From the comparison provided in Fig. 14(b), (c) and (d) and the analysis presented in Table 2, it can be concluded that the FRL-ITSMC achieved our control objectives efficiently and accurately. 5.1.2. Case 2: From π‘ = 6 to 10 h, there has been a sharp increase in the load demand, i.e., from 129 kW to 290 kW. The average power generated from the WES and TES systems is 140 kW and 76 kW, respectively. Additionally, from π‘ = 6 to 9 h, it can be observed from Fig. 10(a) that WES power has increased from 95 kW to a maximum of 155.5 kW. However, there is a dip in power generated from WES to 142 kW. To cater for this dip and meet the battery and H2 level constraints, there is an increment in DG power (44 kW). Additionally, it can be analyzed from Figs. 12 and 13 that the H2 level and battery SOC have reached their maximum levels. The BESS and electrolyzer system have been in an idle state. 5.1.3. Case 3: In this scenario, we will discuss how AES will be used to meet power demands when there are random changes in connected load. It can be observed that at π‘ = 18 h, the load reaches its maximum value of 400 kW. Furthermore, the power generated from WES and TES reaches a maximum of 236 kW and 112 kW, respectively. In this power deficit mode, it can be observed from Figs. 12 and 13 that the hydrogen and battery SOC levels have been reduced to meet the additional power demand. Furthermore, whenever there is a dip in power demand, such as at π‘ = 19 h, the excess power has been used to generate H2 using the electrolyzer. At π‘ = 20 h, when the power output from the WES (210 kW) and TES (77 kW) decreases, the PEMFC reaches its maximum output of 40 kW, and the BESS and DG have been utilized to meet the 11 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Fig. 18. Controller hardware in loop simulation of local level controller. Table 3 Wind and tidal energy systems parameters. Table 2 Performance comparison of proposed controller with prior control techniques. PID ITSMC FRL-ITSMC Rise time (ms) Settling time (ms) Percent overshoot (%) Steady-State error (%) 60 35 52 98.8 121.4 81.2 0.287 0.16 0.07 0.06 0.05 0.005 Parameter Value Air density (ππππ ) Water density (ππ πππ€ππ‘ππ ) Wind speed at rated power Tidal current speed at rated power WES power at rated speed TES power at rated speed Maximum power coefficient (πΆππππ₯ ) Optimal tip-speed ratio (ππ ) 1.225 kg/m3 1025 kgβm3 5 mβs 2 mβs 150 kW 80 kW 7.5 0.43 5.3. C-HIL simulation Table 4 Auxiliary energy sources parameters. The configuration of C-HIL has been elaborated in Fig. 16. The control unit comprises of a 3060Ti GPU based Ryzen 5600X PC for modeling the proposed MG system and solving the system level controller using MATLAB. The FRL-ITSMC has been implemented using the Texas Instruments Delfino F28379D Launchpad. The connection of the launchpad has been established with the control unit through analog to digital (ADC) and digital to analog (DAC) interfaces. Furthermore, to code the FRL-ITSMC on to the launchpads, the MATLAB C2000 Embedded encoder has been utilized. To ensure consistency, the simulations has been repeated under similar environmental conditions and same load profile. The DC bus regulation and the current tracking of individual RES and AES has been presented in Figs. 17 and 18. The inclusion of the minor noise in the results is due to the ADC and DAC conversions. It can be concluded that the simulation results are consistent with the C-HIL validating the efficacy of the proposed control scheme for real-life application. Symbol Parameter Value ππ π πΌπ ππππ₯ PEMFC nominal voltage PEMFC maximum current 400 V 100 A ππ ππππ₯ ππππ PEMFC maximum power Electrolyzer nominal voltage 40 kW 405 V πππ ππππ₯ ππππ‘π‘ ππππ π πΌπππ π πππ₯ Electrolyzer maximum power BESS nominal voltage BESS efficiency BESS maximum current 50 kW 480 V 90% 105 A πππ‘π‘ ππππ₯ BESS maximum power 50 kW ππ ππππ₯ πππ DG maximum power DG efficiency 60 kW 40% of the proposed FRL-ITSMC controller. However, it should be noted that the FRL-ITSMC controller has multiple control parameters that need to be optimized for efficient system performance. Furthermore, the effectiveness of the proposed framework was validated through realtime C-HIL experiments, which showed consistency with simulation results and confirmed the effective performance of the FRL-ITSMCbased microgrid system in real-world applications. Future work could focus on optimizing the control parameters of the FRL-ITSMC controller using meta-heuristic algorithms to further enhance the system’s performance. 6. Conclusion This study presented a hierarchical control system designed for an offshore DC microgrid. The proposed control strategy not only minimized operating costs by optimizing the usage of DG, PEMFC, and BESS but also ensured MPPT from wind and tidal energy system. The control framework demonstrated accurate tracking and compliance with system constraints during both power deficit and surplus modes. A comparison with ITSMC and PID controllers confirmed the superiority 12 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. Table 5 DC–DC converters and controller parameters. Symbol Parameter Value πππ πππ [πΏπ€ππ , πΏπ‘ππ , πΏπ π ] [πΏπππ , πΏππ , πΏπππ‘π‘ ] [π πΏπ€ππ , π πΏπ‘ππ , π πΏπ π ] [π πΏπππ , π πΏπππ‘π‘ , π πΏππ ] πΆππ’π‘ [πΌ{1,2,..6} , π½{1,2,..6} , πΎ{1,2,..6} ] [π{1,2,..6} , π€{1,2,..6} , π{1,2,..6} ] Converters switching frequency Converters efficiency Inductors 150 kHz 96% [3.3 mH, 3.5 mH, 4.3 mH] [2.3 mH, 3.8 mH, 4.5 mH] [∼35 mΩ, ∼45 mΩ, ∼25 mΩ] [∼25 mΩ, ∼35 mΩ, ∼40 mΩ] 2500 μF [650, 1500, 400] [0.3, 1.5, 0.7] Inductors ESR Output filter capacitor FRL-ITSMC parameters CRediT authorship contribution statement [12] Poshydon, 2023, Accessed: 2023-11-22, https://poshydon.com/en/home-en/. [13] Seah2land, 2023, Accessed: 2023-11-22, https://seah2land.nl/. [14] Surf ’n’ turf, 2023, Accessed: 2023-11-22, https://www.emec.org.uk/projects/ hydrogen-projects/surf-n-turf/. [15] R. Gugulothu, B. Nagu, D. Pullaguram, Energy management strategy for standalone DC microgrid system with photovoltaic/fuel cell/battery storage, J. Energy Storage 57 (2023) 106274. [16] P. Singh, J.S. Lather, Dynamic power management and control for low voltage DC microgrid with hybrid energy storage system using hybrid bat search algorithm and artificial neural network, J. Energy Storage 32 (2020) 101974. [17] P. Singh, N. Anwer, J. Lather, Energy management and control for direct current microgrid with composite energy storage system using combined cuckoo search algorithm and neural network, J. Energy Storage 55 (2022) 105689. [18] M.H. Zafar, N.M. Khan, A.F. Mirza, M. Mansoor, N. Akhtar, M.U. Qadir, N.A. Khan, S.K.R. Moosavi, A novel meta-heuristic optimization algorithm based MPPT control technique for PV systems under complex partial shading condition, Sustain. Energy Technol. Assess. 47 (2021) 101367. [19] A.E. Ezugwu, V. Pillay, D. Hirasen, K. Sivanarain, M. Govender, A comparative study of meta-heuristic optimization algorithms for 0–1 knapsack problem: Some initial results, IEEE Access 7 (2019) 43979–44001. [20] N. Rispoli, F. Vitale, F. Califano, M. Califano, P. Polverino, M. Rosen, M. Sorrentino, Constrained optimal design of a reversible solid oxide cell-based multiple load renewable microgrid, J. Energy Storage 31 (2020) 101570. [21] F. Vitale, N. Rispoli, M. Sorrentino, M. Rosen, C. Pianese, On the use of dynamic programming for optimal energy management of grid-connected reversible solid oxide cell-based renewable microgrids, Energy 225 (2021) 120304. [22] K. Park, W. Lee, D. Won, Optimal energy management of DC microgrid system using dynamic programming, IFAC-PapersOnLine 52 (4) (2019) 194–199. [23] A. Raza, M.K. Azeem, M.S. Nazir, I. Ahmad, Robust nonlinear control of regenerative fuel cell, supercapacitor, battery and wind based direct current microgrid, J. Energy Storage 64 (2023) 107158. [24] K. Kumar, S. Bae, Two-layer energy management strategy for renewable power-to-gas system-based microgrids, J. Energy Storage 61 (2023) 106723. [25] M. Hassan, Z.J. Paracha, H. Armghan, N. Ali, H.A. Said, U. Farooq, A. Afzal, M.A.S. Hassan, Lyapunov based adaptive controller for power converters used in hybrid energy storage systems, Sustain. Energy Technol. Assess. 42 (2020) 100853. [26] N. Ali, Z. Liu, H. Armghan, A. Armghan, Super-twisting sliding mode controller for maximum power transfer efficiency tracking in hybrid energy storage based wireless in-wheel motor, Sustain. Energy Technol. Assess. 52 (2022) 102075. [27] H. Amiri, G.A. Markadeh, N.M. Dehkordi, Voltage control in a DC islanded microgrid based on nonlinear disturbance observer with CPLs, J. Energy Storage 29 (2020) 101296. [28] H. Armghan, M. Yang, M. Wang, N. Ali, A. Armghan, Nonlinear integral backstepping based control of a DC microgrid with renewable generation and energy storage systems, Int. J. Electr. Power Energy Syst. 117 (2020) 105613. [29] N. Ali, Z. Liu, H. Armghan, A. Armghan, Double integral sliding mode controller for wirelessly charging of fuel cell-battery-super capacitor based hybrid electric vehicle, J. Energy Storage 51 (2022) 104288. [30] A. Rosini, R. Procopio, A. Bonfiglio, G. Incremona, A. Ferrara, A decentralized higher order sliding mode control for islanded photovoltaic-storage systems, Energy (2022) 124502. [31] T.K. Roy, S.K. Ghosh, S. Saha, Stability enhancement of battery energy storage and renewable energy-based hybrid AC/DC microgrids using terminal sliding mode backstepping control approaches, ISA Trans. (2023). [32] D. Zholtayev, M. Rubagotti, T.D. Do, Adaptive super-twisting sliding mode control for maximum power point tracking of PMSG-based wind energy conversion systems, Renew. Energy 183 (2022) 877–889. [33] Y.S. Abdalla, N. Ali, A. Alanazi, M. Alanazi, H. Armghan, M.A. Sharaf, A.R. Boudabbous, A. Armghan, Fast reaching law based integral terminal sliding mode controller for photovoltaic-fuel cell-battery-super capacitor based direct-current microgrid, J. Energy Storage 56 (2022) 105915. [34] S.M. Mozayan, M. Saad, H. Vahedi, H. Fortin-Blanchette, M. Soltani, Sliding mode control of PMSG wind turbine based on enhanced exponential reaching law, IEEE Trans. Ind. Electron. 63 (10) (2016) 6148–6159. Naghmash Ali: Writing – original draft, Software, Methodology, Conceptualization. Xinwei Shen: Writing – review & editing, Validation, Supervision, Resources, Funding acquisition. Hammad Armghan: Validation, Formal analysis. Yunfei Du: Writing – review & editing, Visualization. Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Data availability Data will be made available on request. Acknowledgments This work is supported in part by National Natural Science Foundation of China (No. 52007123), and Basic and Applied Basic Research Funding of Guangdong with Offshore Wind (No. 2022A1515240019) (Corresponding author: Xinwei Shen, sxw.tbsi@sz.tsinghua.edu.cn). Appendix See Tables 3–5. References [1] M. Shahabuddin, M.A. Alim, T. Alam, M. Mofijur, S.F. Ahmed, G. Perkins, A critical review on the development and challenges of concentrated solar power technologies, Sustain. Energy Technol. Assess. 47 (2021) 101434. [2] S.E. Hosseini, Transition away from fossil fuels toward renewables: lessons from Russia-Ukraine crisis, Future Energy 1 (1) (2022) 2–5. [3] R.E. Statistics, International Renewable Energy Agency, Abu Dhabi, United Arab Emirates, 2021, pp. 1–64. [4] N.d. Khan, A. Kalair, N. Abas, A. Haider, Review of ocean tidal, wave and thermal energy technologies, Renew. Sustain. Energy Rev. 72 (2017) 590–604. [5] M. Melikoglu, Current status and future of ocean energy sources: A global review, Ocean Eng. 148 (2018) 563–573. [6] S. Chen, P. Liu, Z. Li, Low carbon transition pathway of power sector with high penetration of renewable energy, Renew. Sustain. Energy Rev. 130 (2020) 109985. [7] A. Kadri, H. Marzougui, A. Aouiti, F. Bacha, Energy management and control strategy for a DFIG wind turbine/fuel cell hybrid system with super capacitor storage system, Energy 192 (2020) 116518. [8] H. Kakigano, Y. Miura, T. Ise, Distribution voltage control for DC microgrids using fuzzy control and gain-scheduling technique, IEEE Trans. Power Electron. 28 (5) (2012) 2246–2258. [9] Y. Han, G. Zhang, Q. Li, Z. You, W. Chen, H. Liu, Hierarchical energy management for PV/hydrogen/battery island DC microgrid, Int. J. Hydrogen Energy 44 (11) (2019) 5507–5516. [10] Y. Li, H. Liu, Y. Lin, W. Li, Y. Gu, Design and test of a 600-kW horizontal-axis tidal current turbine, Energy 182 (2019) 177–186. [11] M.Y. Suberu, M.W. Mustafa, N. Bashir, Energy storage systems for renewable energy power sector integration and mitigation of intermittency, Renew. Sustain. Energy Rev. 35 (2014) 499–514. 13 Journal of Energy Storage 82 (2024) 110521 N. Ali et al. [39] F. Yang, L. Lu, Y. Yang, Y. He, Characterization, analysis and modeling of an ultracapacitor, World Electr. Veh. J. 4 (2) (2010) 358–369. [40] A.F. Bendary, M.M. Ismail, Battery charge management for hybrid PV/wind/fuel cell with storage battery, Energy Procedia 162 (2019) 107–116. [41] Y. Wang, Y. Feng, X. Zhang, J. Liang, A new reaching law for antidisturbance sliding-mode control of PMSM speed regulation system, IEEE Trans. Power Electron. 35 (4) (2019) 4117–4126. [42] T. Li, X. Liu, Model-free non-cascade integral sliding mode control of permanent magnet synchronous motor drive with a fast reaching law, Symmetry 13 (9) (2021) 1680. [35] N. Mughees, M.H. Jaffery, M. Jawad, A new predictive control strategy for improving operating performance of a permanent magnet synchronous generatorbased wind energy and superconducting magnetic energy storage hybrid system integrated with grid, J. Energy Storage 55 (2022) 105515. [36] M. Rahimi, Modeling, control and stability analysis of grid connected PMSG based wind turbine assisted with diode rectifier and boost converter, Int. J. Electr. Power Energy Syst. 93 (2017) 84–96. [37] Y. Zhang, W. Wei, Decentralized coordination control of PV generators, storage battery, hydrogen production unit and fuel cell in islanded DC microgrid, Int. J. Hydrogen Energy 45 (15) (2020) 8243–8256. [38] K. Guo, A. Prévoteau, K. Rabaey, A novel tubular microbial electrolysis cell for high rate hydrogen production, J. Power Sources 356 (2017) 484–490. 14