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

Optimisation framework for the operation of battery storage within solar‐rich microgrids

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

기본 정보

저자
  1. Asanga Jayawardana — Australian Power Quality and Reliability Centre, University of Wollongong Wollongong New South Wales 2522 Australia|||Australian Power Quality and Reliability Centre, University of Wollongong, Wollongong, New South Wales, 2522 Australia
  2. Ashish P. Agalgaonkar — Australian Power Quality and Reliability Centre, University of Wollongong Wollongong New South Wales 2522 Australia|||Australian Power Quality and Reliability Centre, University of Wollongong, Wollongong, New South Wales, 2522 Australia
  3. Duane Robinson — Sustainable Buildings Research Centre, University of Wollongong Wollongong New South Wales 2522 Australia|||Sustainable Buildings Research Centre, University of Wollongong, Wollongong, New South Wales, 2522 Australia
  4. Massimo Fiorentini — Sustainable Buildings Research Centre, University of Wollongong Wollongong New South Wales 2522 Australia|||Sustainable Buildings Research Centre, University of Wollongong, Wollongong, New South Wales, 2522 Australia
DOI
10.1049/iet-stg.2019.0084
저널
IET Smart Grid
발행년도
2019
발행기관
Institution of Engineering and Technology
피인용수
9
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1049/iet-stg.2019.0084
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W2955840393

평가 내용

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

초록

The growing trend of distributed generation, such as solar photovoltaic (PV) systems and small scale wind turbines have promoted the development of microgrids which are highly dependent on renewable energy. Due to the intermittent nature of renewable energy, these microgrids are generally equipped with energy storage, such as batteries. Batteries are generally operated using fixed control methods, often deviating from the optimal operation. This aspect has created an opportunity to gain improved outcomes for microgrid owners and operators. This research study describes a pathway for designing an optimisation framework which can be used to optimise the charge and discharge operation of battery storage within a microgrid containing a solar PV system. Optimisation is implemented in terms of gaining maximum cost benefit for microgrid owners. The advantages of using model predictive control optimisation compared to fixed control methods for this particular problem, solvers and verification procedures are highlighted. A case study is provided with results including analysis of battery operation, energy usage, and impact on overall tariff. The study describes each step of the control and optimisation platform development ensuring readers to be able to replicate the process utilised.

본문 59,880자

본문 펼치기
IET Smart Grid _Research Article_ # Optimisation framework for the operation of battery storage within solar-rich microgrids eISSN 2515-2947 Received on 11th March 2019 Revised 9th May 2019 Accepted on 4th June 2019 E-First on 26th June 2019 doi: 10.1049/iet-stg.2019.0084 www.ietdl.org _Asanga Jayawardana_ <sup>_1_</sup> _, Ashish P. Agalgaonkar_ <sup>_1_</sup> _, Duane A. Robinson_ <sup>_2_</sup> _, Massimo Fiorentini_ <sup>_2_</sup> _1Australian Power Quality and Reliability Centre, University of Wollongong, Wollongong, New South Wales 2522, Australia_ _2Sustainable Buildings Research Centre, University of Wollongong, Wollongong, New South Wales 2522, Australia_ _E-mail: hpapj953@uowmail.edu.au_ Abstract: The growing trend of distributed generation, such as solar photovoltaic (PV) systems and small scale wind turbines have promoted the development of microgrids which are highly dependent on renewable energy. Due to the intermittent nature of renewable energy, these microgrids are generally equipped with energy storage, such as batteries. Batteries are generally operated using fixed control methods, often deviating from the optimal operation. This aspect has created an opportunity to gain improved outcomes for microgrid owners and operators. This research study describes a pathway for designing an optimisation framework which can be used to optimise the charge and discharge operation of battery storage within a microgrid containing a solar PV system. Optimisation is implemented in terms of gaining maximum cost benefit for microgrid owners. The advantages of using model predictive control optimisation compared to fixed control methods for this particular problem, solvers and verification procedures are highlighted. A case study is provided with results including analysis of battery operation, energy usage, and impact on overall tariff. The study describes each step of the control and optimisation platform development ensuring readers to be able to replicate the process utilised. 1�Introduction Microgrids are small electrical and/or thermal networks consisting of the distributed generation which can be connected to the grid, to import or export its energy, or disconnected from the grid to operate in an islanded mode [1]. The concept of microgrids has been present in electrical networks since the beginning of the age of light when small generations such as coal and gas generators were connected to local loads close by. Then, with the expansion of the electricity grid, large generators were connected to the grid and transmitted through longer networks increasing losses and complexity of maintaining the network. However, distribution generators such as solar photovoltaic (PV) systems, wind generators, fuel cells, etc., which have been the trend of the last decade, has brought back the concept of de-centralised generation capable of supplying electricity and/or thermal comfort to local loads [2]. More recently, microgrids which are solely powered by renewable generation, especially solar PV, have received more attention. This category includes houses with rooftop solar PV and installed battery storage. Renewable based microgrids are impacted by the intermittency of energy sources [3] and it's not always accounted for in the optimal operation of battery storage. In most cases, battery storage is operated according to a pre-configured control method with no dependency on future variations [4]. Operating renewable based microgrids (focusing on the operation of the battery storage) in an optimal way to potentially create more financial gains and functional opportunities [2]. The progression of implementation of optimisation methods for optimal operation of battery energy storage systems in microgrids, highlighted in the literature, is discussed in Sections 2 and 3. However, none of the research papers provides a step by step pathway of developing an optimisation framework for optimal operation of a microgrid (especially a renewable microgrid). Developing a model with all the key parameters related to a microgrid and performing analyses based on such a complex model can tarnish the effectiveness of an optimal control process as each and every parameter does not effectively reflect on the optimal operation. Therefore, a structured model formulation with identification of effective parameters in the optimal operation of a microgrid is considered as a necessity in this paper. Comprehensive sensitivity analyses to identify the importance of model parameters are also found to be minimally discussed in the literature and this paper has widely analysed the effect of the associated optimisation model parameters. This paper comprehensively outlines a pathway of designing an optimisation framework which can be used to control renewable based microgrids containing battery energy storage systems. The paper is structured in a way that the presented modelling information can be used to develop optimisation models for different system architectures such as a PV-concentrated solar power system with thermal energy storage as detailed in [5]. The paper is outlined as follows. Section 2 puts together the need for energy storage systems in renewable-rich microgrids, introducing the battery storage technology, and the requirement for optimisation platforms. Section 3 includes the background work on the research, introducing hybrid system description language (HYSDEL), which enables the usage of model predictive control (MPC) method. The MPC method used for this work is detailed in Section 4. Section 5 describes the anatomy of the real systems with all relevant information, including the usage of multi-parametric toolbox (MPT). The details are provided in a step-by-step process, which cannot be found in the existing literature. Finally, Section 6 comprehensively discusses the results of the analyses, which have been undertaken using the developed controller. 2�Optimisation of energy storage within a renewable-rich microgrid _2.1 Importance of energy storage_ Renewable-rich microgrids are often vulnerable to inconsistent natural energy sources; this is especially the case for solar PV and wind [6]. Therefore, renewable-rich microgrids have to consider inconsistent generation scenarios throughout the year. The void created by the inconsistent nature of renewable generation can be filled [7] using energy storage, which is already widely used in microgrids to provide energy whenever demand arises. Microgrids designed to be marginally above demand will utilise energy storage _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 504 by necessity on a daily basis, while others will use the energy storage less frequently, e.g. for emergency demand only. Among many energy storage technologies, battery storage technology has been around for long time providing much-needed support to microgrids. It is also evident that battery storage technologies are also used for renewable capacity framing, electric energy time shift, and electricity bill management [8]. This is due to both the uncertainty of renewable energy generation and the lower market rates for energy exports. _2.2 Why is optimisation important?_ Battery storage plays a major role in terms of the overall operation of the renewable-rich microgrid. Most hybrid inverters, which are used to control battery storages in renewable microgrids, use realtime control where the control actions are based on the present data or pre-configured modes. If an optimisation platform is capable of utilising varying future data (i.e. for generation and loads) to come up with an optimal operation for the battery storage, the savings for the microgrid customers can be improved as the inconsistent nature of the generation is considered in the operation avoiding unnecessary low value exports to the grid. Further, battery technologies are expensive and this has also been one of the main drivers for optimisation processes, which aims to maximise the financial performance for microgrid owners. Also, battery storage generally has a limited operating lifetime, which depends on the number of battery cycles [9]. Therefore, it is important to balance the flexibility of battery use with impact on lifecycle in the control of charging/discharging. Therefore, significant demand exists for optimisation platforms, which can be used to optimise the operation of battery storage either for profit, reliability, or other improvement metrics. _2.3 Optimisation methods_ Optimisation models can be derived using a number of different techniques and solvers/software packages. Among the most popular methods are [10]: linear programing; mixed-integer linear/ non-linear programing (MILP/MINLP); particle swarm optimisation (PSO); and genetic algorithm (GA). A method can be selected depending on the structure of the problem, objective function, variables, and related constraints. Similarly, software or solvers are chosen depending on their capabilities of solving different types of problems or models. MATLAB, CPLEX, and GAMS are few of the many common software/solvers [10]. In [11], a comprehensive study can be found on the approaches and methods/algorithms used for implementing optimisation at a planning stage in case of microgrids. The main approaches have been categorised into single-objective optimisation, multi-objective optimisation, heuristic optimisation, and metaheuristic optimisation. The main focus of most of the research articles is the operational scheduling of microgrids. In [12], a multi-objective optimisation approach has been proposed for a network of microgrids connected to a system. For a microgrid, the objective is to maximise the net gain derived from consuming the available power while the objective for the grid is to maximise the net value derived from providing excess power to the network. In [13], a business model is proposed for optimal operation of the community-based multi-party microgrid. This has considered critical loads and generators owned by multiple owners operating with unique operating goals. Although the greater interest is to investigate the optimal operation of single or multiple microgrids connected to a network, it is always important to identify the optimal operation of energy storage systems in microgrids. Previous work on optimising generation and energy storage systems in microgrids, especially with solar PV, are included as follows. Scheduling of generation and an energy storage system of a microgrid system has been conducted in [14] where the objective function minimises the overall cost of electricity in the microgrid while maintaining the self-sufficiency and vital constraints of the battery storage. In [15], another approach can be identified in which optimal charging and discharging patterns for the battery storage system are generated. In both cases, the optimisation is defined as a mixed-integer problem. Another method can be found in [16] where a rolling optimisation strategy is utilised in order to determine the optimal dispatch for energy storage based on short-term forecast. In this study, the optimisation horizon and time interval are selected as 4 h and 15 min, respectively. _2.4 MPC approach for microgrid control_ MPC approaches have been used in [17, 18] in which the objective is to achieve optimal cost by controlling battery storage. In [18], a similar approach has been undertaken to optimise the operation of a microgrid considering the lifetime of the battery. Most of the MPC approaches have been used in developing energy management systems for microgrids. Important works related to the MPC approach have been reviewed in [19], emphasising the contributions of each work. Main contributions include minimising the grid involvement cost while utilising the battery storage, minimising the total operational cost of the microgrid, and maintaining other important parameters such as voltage, load shedding, etc. In [20], MPC is used to maximise the utilisation of a battery to shave peaks in solar PV generation and load profile. Load and generation forecast profiles were used as inputs to make the battery on–off decision based on the developed controller. A similar approach has been utilised in [21] to control charging and discharging of a battery in a residential solar PV system. Here, the primary objective was to minimise the total cost for the customer. A time of use (TOU) tariff scheme was used in the model; however, there is no mention of feed-in tariff during energy export. Examples of new operational strategies and frameworks for microgrids based on MPC have been reported in [22–24], which attempt to minimise total energy cost, carbon emissions, or battery lifetime loss, or increase utilisation of the available renewable energy resources. Performance during grid scheduled blackouts was considered in [22]. The effect of the control horizon, the accuracy of the load forecast and battery health has also been investigated in [24]. In [17], a predictive control framework is proposed to increase the utilisation of the battery to reduce the purchasing of electricity from the grid. It also provides a more realistic model of the battery considering leakage current and a switched model with charging/ discharging functions. An MPC approach has been used in [25] to manage the thermal and electrical energy in a combined cooling, heating, and power microgrid in terms of achieving economic operation. In this work, two different tariffs have been used for import and export. Another MPC based approach can be seen in [26] which stores and distributes energy in an efficient manner in the microgrid. This has been obtained while minimising the charge/discharge cycles to increase the battery life. However, the work itself suggests the complexity of solving these types of problems when more constraints are considered. In [27], the study presents an MPC scheme which is designed to optimally manage the thermal and electrical subsystems of a smart house. The objective is set to minimise the expense for buying energy from the grid while gaining thermal comfort levels. This paper discusses the importance of using a hybrid dynamical model when the binary control inputs are used together with continuous inputs. A preliminary study on applying MPC technique to efficiently optimise the microgrid operations can be found in [28]. This is done while the important operation constraints and a time-varying request are met. The main objectives are the unit commitment, the economic dispatch of distributed generators, obtaining the time of charging/discharging the storage, and the decision on the time and amount of energy purchased from the grid. Further, this emphasises the importance of using a technique like MPC to solve the problem using commercial solvers without resorting to complex heuristics or decomposition techniques. In [29], an optimal control strategy has been proposed using MPC to coordinate energy storage and a diesel generator in a rural _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 505 Fig. 1� _Structure of a renewable microgrid_ microgrid to maximise wind penetration while maintaining system economics and normal operation performances. The performance of the control strategy has been compared to an open-loop lookahead dispatch problem under high penetration of wind. A supervisory MPC method has been developed in [30] for optimal power management and control in a hydrogen-based microgrid. This is designed based on two main objectives where the first one is to calculate power reference signals to electrolyser, the fuel cell, and the grid in order to satisfy the user power demand while the second one is to maintain the optimal duty cycles, operational constraints and energy savings. Another use of mixed logical dynamical (MLD) systems where both continuous and discrete dynamics are captured and an MPC technique to maximise the economic benefits to hydrogen-based microgrid and minimise the degradation in the hybrid energy storage system, can be found in [31]. Also, stochastic MPC (SMPC) approaches can be found in the literature, which have taken the forecasting uncertainties into account. In [32], an SMPC approach has been utilised for integrated energy management in a microgrid, wherein the forecasting uncertainties of loads, generation, and electricity prices have been considered. In [33], an energy management system has been proposed for a domestic microgrid, which contains solar PV, battery storage and domestic hot water tank in order to ensure the least cost operation. This has been achieved using two different algorithms: one to consider future uncertainties with a deterministic forecast while the other to model the uncertainties as probability distributions. A similar approach can be found in [34] where a two-stage decision process has been proposed to address uncertainties. The first stage uses a stochastic mixed-integer linear programming, whereas the second stage is based on a nonlinear programming formulation. In [35], a control strategy has been developed using MPC to incorporate battery aging cost. This problem is solved to find the optimal balance between the utility cost and the battery life cycle cost. The study has demonstrated the effectiveness of the proposed method using a case study with different control simulations for a commercial building. Another study can be found in [36], where a TOU-MPC-based energy management system has been proposed for a commercial building to minimise the electricity cost of the building. Also, [37] has proposed an optimal residential MPC energy management strategy with PV microgeneration. The intention of this study is to achieve best temperature comfort levels and energy costs while deciding on the best TOU electricity tariff option. This study has also provided a comprehensive comparison between the MPC method with the normal on/off control and the proportional integral derivative control for a domestic heating ventilation and air conditioning system. The literature has not covered a comprehensive pathway of developing optimisation platforms, which can enable online analyses and controlling of the battery storage systems, taking the tariff structures and constraints of the battery storage into account, especially the cost for charging/discharging and the changes in the usage of the battery storage due to the optimal operation. In the next section this paper provides such a pathway: (i) identifying the need for HYSDEL in the optimisation process, which enables the usage of the MPC method; (ii) describing the anatomy of the HYSDEL model with all relevant information including the usage of MPT, which cannot be found in the literature; (iii) comprehensively discussing the results from the case study model, which has been carried out using the developed controller; and (iv) studying the vitality of different verification methods for optimisation solutions, which are rarely discussed in the literature. Emphasis is given to the relationship of the battery usage with the export tariff and battery charging/discharging cost. 3�Methodology The goal was to formulate a charging/discharging pattern for the battery bank of a microgrid shown as in Fig. 1, for each day, while minimising total electrical energy cost. Therefore, the objective function of the system was set as follows: 24 ## ∑ Ti Gi − Li + xi (1) ## Min Z = ∑ _i_ = 1 where _Z_ is the total cost for electrical energy; _Gi_ is the forecasted generation for the _i_ th hour; _Li_ is the forecasted load for the _i_ th hour; _Ti_ is the electricity tariff rate for the _i_ th hour; _xi_ is the battery charging/discharging for the _i_ th hour. The main constraint of the optimisation was the state of charge (SOC) of the battery bank, where SOC is maintained between 0.2 and 1.0 per unit of battery capacity [38, 39]. The minimum SOC value has been decided considering an energy reserve for emergency loads, if it exists [14]. In the preliminary study, the export of electrical energy to the point of common coupling was considered as a saving to the precinct and assigned the negative value of the tariff rate of the particular hour. This was valid only for the definition of the export energy as a saving. However, the intention was to define an optimisation model having separate import and export tariffs. Therefore, additional conditional constraints were required, assigning an import tariff when the microgrid imports and export tariff when it exports. This is defined as follows where the _T_ Ex is the export tariff and _T_ Im is the import tariff. _Ti_ = _3.1 Why HYSDEL?_ _T_ Ex, _Gi_ - _Li_ + _xi_ < 0 (2) _T_ Im, _Gi_ - _Li_ + _xi_ - 0 Direct applicability of MATLAB optimisation functions was not possible as this particular case contains conditional constraints, which cannot be dealt with as yet by any built-in MATLAB optimisation functions. Decomposition methods or rearrangement of the objective function may have been used; however, this would have added more complexity to the problem formulation and contributed to computational times. Therefore, the search of a solver/platform, which can handle these types of conditional constraints, directed the study towards HYSDEL, which can be used to model the logical systems in a general mathematical representation [40], which then can be used to solve using MPT [41]. Hybrid systems are models which contain continuous components as well as discrete components which are associated with logic devices. These can be switches, digital circuitry or software code, and clearly match the needs of this particular case where conditional constraints exist. _3.2 What is HYSDEL?_ HYSDEL is a language which can be used to represent a hybrid model more in abstractive level which can be easily formulated similar to the handwritten mathematical formulation. Then the HYSDEL compiler is used to convert the model into a computational model, which can be used in system optimisation [42]. HYSDEL specialises in describing continuous models combined with logical conditions. HYSDEL compilers generate 506 _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 Fig. 2� _MPC illustration_ Fig. 3� _Steps of the problem solving_ compact computational models which are generally more efficient compared to the models acquired from other general-purpose modelling software. Formulating a system, which contains logical behaviours, using general-purpose optimisation software tools can be tedious and complex. HYSDEL is run in MATLAB environment, which makes the coding and post-analyses effective. 4�Model predictive control approach _4.1 MPC method_ MPC method has been used in different study areas for more than three decades. The general definition of MPC is to come up with a profile of a future manipulative variable to optimise the output (objective function) [43]. The optimisation is carried out within a specific time window, which is known as a receding or control horizon. When applied to microgrid operation, the future charging/ discharging amounts of a battery bank will be computed to optimise the total electrical energy cost incurred by the microgrid. The process shown in Fig. 2 elaborates how the MPC can be used to optimise the charging/discharging amounts by using past and future generation ( _G_ ), loads ( _L_ ), and the battery charging/ discharging ( _x_ ) values with cost profile and constraints. _4.2 State–space model for the microgrid_ The following generalised state-space model is used in HYSDEL to represent the microgrid. _<mark>x</mark>_ <sup><mark>˙</mark></sup> <mark>=</mark> _<mark>Ax</mark>_ <mark>+</mark> _<mark>Bu</mark>_ (3) _P_ PV _P_ L _P_ ESS where _A_ = 1, _B_ = 0 0 and _u_ = 1 , where _P_ PV is the active power _<mark>P</mark>_ grid <mark>=</mark> _<mark>P</mark>_ PV <mark>+</mark> _<mark>P</mark>_ L <mark>+</mark> _<mark>P</mark>_ ESS (4) _δ_ = 1 if _P_ grid > 0 _δ_ _=_ 0 if _P_ grid < 0 _<mark>y</mark>_ <mark>=</mark> _<mark>Cx</mark>_ <mark>+</mark> _<mark>Du</mark>_ <mark>where</mark> _<mark>C</mark>_ <mark>= 0,</mark> (5) _<mark>D</mark>_ 1 <mark>=</mark> _<mark>R</mark>_ 1 _<mark>R</mark>_ 1 _<mark>R</mark>_ 1 (6) _<mark>D</mark>_ 2 <mark>=</mark> _<mark>R</mark>_ 2 _<mark>R</mark>_ 2 _<mark>R</mark>_ 2 (7) _<mark>y</mark>_ <mark>=</mark> _<mark>Cx</mark>_ <mark>+</mark> _<mark>D</mark>_ 1 _<mark>u</mark>_ <mark>when</mark> _<mark>δ</mark>_ <mark>= 1</mark> (8) _<mark>y</mark>_ <mark>=</mark> _<mark>Cx</mark>_ <mark>+</mark> _<mark>D</mark>_ 2 _<mark>u</mark>_ <mark>when</mark> _<mark>δ</mark>_ <mark>= 0</mark> (9) _4.3 Constraints_ The model should satisfy the following main constraint related to the battery storage where the SOC of the battery storage should be within the assigned limits. The SOCmin and SOCmax are dependent on the type and properties of the battery storage used. <mark>SOC</mark> min <mark>≤</mark> _<mark>x</mark>_ <mark>≤SOC</mark> max <mark>(</mark> 10) The other major constraint, which is considered in this particular research, is the charging or the discharging rate of the battery storage i.e. _P_ ESS. The charging/discharging rate of battery storage depends on many factors. It can simply be a fixed value or an output of the complex relationship of other factors such as voltage and current. _<mark>P</mark>_ ESS min <mark>≤</mark> _<mark>P</mark>_ ESS <mark>≤</mark> _<mark>P</mark>_ ESS max <mark>(</mark> 11) _4.4 Control horizon_ The control horizon of this particular model for a renewable microgrid is critical in many ways. At a given state there are four variables including the state variable and the inputs. At least two major constraints are involved in the same stage. As the control horizon increases the number of total variables and constraints considerably increase as the solving should take in all the variables and constraints included in the control horizon. Therefore, if the instantaneous power is considered with a control horizon of 24 h it will put the pressure on the solver as the number of variables and constraints are increased. Comparatively, if the control horizon is reduced, the applicability of an MPC model for a renewable microgrid will be debatable as the renewable generation especially the solar PV generation varies within a 24 h period. However, if the electrical energy for an hour is considered, there are only 24 states for a control horizon of 24 h reducing the complexity of the model. The final HYSDEL model, which has been used contains a control horizon of 24 with electrical energy is considered for each state. 5�HYSDEL model for solving the proposed problem The optimisation of the case study system discussed in Section 3 was primarily focused on charging/discharging of the battery bank, while the solar PV generation and load are assumed to be known. The tariff schemes are the main reason why the HYSDEL is used. There are separate tariff values for import and export, which depend on both microgrid condition (import/export) and charging/discharging value of the battery. This type of complex logical relationship can be represented in HYSDEL and then converted into the computational model using HYSDEL compiler. The model discussed in Section 4 was then represented in HYSDEL. Fig. 3 indicates the process of how HYSDEL compiler was used to convert the model into a computational model, which then can be used in MPT to solve and obtain the results. Table 1 generated by the solar PV system, _P_ ESS is the active power import/ export (charging ( + ve)/discharging (−ve)) from the battery, _P_ L is the active power load supplied by the microgrid _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 507 <u>Table 1</u> <u>Terms used in HYSDEL code</u> <u>HYSDEL term</u> <u>Type</u> <u>Value</u> _<u>`x`</u>_ state variable (SOC) 20–100 _`U1`_ input (charging/discharging) (−40)–40 _`UPV`_ extra state variables (PV (−150)–0 generations) (−150)–0 Fig. 4� _Structure of a standard HYSDEL file_ summarises the terms used in the HYSDEL code and referred to in the latter sections. The relevant code is shown in Fig. 4. Solving the developed model using MPT needs to satisfy the requirements of the `controller.evaluate()` function. The solution of the function outputs `u`, `feasible` and `openloop` . They are the first element of the optimal control sequence (charging/discharging amount), the Boolean flag indicating whether the optimisation problem is a feasible solution (feasible = 1) and open loop predictions of states, respectively. The controller is the MPC controller generated by MPT based on the HYSDEL model and other parameters, which are discussed in the latter part of this section. Initial conditions are indicated by the x0 and the above command is capable of taking only one vector of initial conditions. This required finding ways of taking in all the inputs in the microgrid system as described in the HYSDEL model (4) while the charging/discharging amount of the battery storage needs be kept as the control input which can be obtained by solving the controller. _`UL`_ extra state variables (loads) 0–150 _`y`_ output (total cost) floating _`delta`_ auxiliary variable 1 1 or 0 _`cost`_ auxiliary variable 2 floating _`R1`_ parameter 1 (import tariff) 0.12 or floating _`R2`_ <u>parameter 2 (export tariff)</u> <u>0.05 or floating</u> As per above, the representation of the model in HYSDEL and solving it using MPT is not straight forward and the following comprehensive steps elaborate the process (refer also to the complete HYSDEL model in the Fig. 4). _5.1 HYSDEL model_ In the model discussed in Section 4, there is only one state variable, which is the SOC of the battery storage. This state is represented as `x` in the HYSDEL model. However, to overcome the issue related to the initial conditions, the inputs related to the solar PV generation and the loads are defined as the state variables in the `INTERFACE` section in the HYSDEL model along with the remaining input (charging/discharging amount), output, and the parameters. The other major section of the HYSDEL model is the `IMPLEMENTATION` section where auxiliary variables are defined with other major components of the model. These auxiliary variables are used to connect the (5)–(9) and (10) and declared in the `AUX` section. Auxiliary variable `delta` is declared as a Boolean variable, which represents the condition of the microgrid. If the microgrid exports electricity, `delta` will be one and else will be zero. Equation (5) is derived in the `AD` section where the analogue to digital conversion is declared. Then, depending on the state of `delta`, the relationship defined in (9) and (10) is derived, which is a case of converting the digital condition to an analogue relationship. This is represented in the `DA` section, which will derive the cost function (6) depending on which tariff scheme is to be used based on import/export of energy from the microgrid. Then, the `MUST` section is used to specify constraints on the states, input and output variables. Maximum charging and discharging amount per hour is assumed to be 40 kWh, while the SOC of the battery can be between 20 and 100%. These parameter values can be any value depending on the type of battery storage that is used in the microgrid. Finally, the `CONTINUOUS` and `OUTPUT` sections are declared where the `CONTINUOUS` section describes the state equation. As there are extra state variables, a special method discussed in [44] is used to keep the continuity of the extra state variables. _u_ _N_ = _u_ ( _N_ −1) _u_ ( _N_ −1) = _u_ ( _N_ −2) ⋮ _u_ 1 = _u_ 1 _u_ 2 = _u_ 1 The rolling sequence of the extra variables is defined in the `CONTINUOUS` section. Then the complete HYSDEL model can be used to solve using MPT. _5.2 MPT codes_ MPT provides more efficient computational methods to obtain controllers for constrained optimal control problems. MPT also works on the MATLAB environment. MPT provides the 508 _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 Fig. 5� _Open loop results_ `mpt_import()` function to convert a system described on HYSDEL to a model, which can be used to solve by obtaining a controller. The system structure and problem structure variables, which are used in the `mpt_import()` function can be created using specific functions. `mpt_sys()` function will generate a MLD representation of a hybrid model, defined in a HYSDEL file, which then can be used as the system structure variable ( `sysStruct` ). `probStruct` or the problem structure is the section where the parameters are assigned to MPT to solve the optimisation problem. In order to define this, there are defined problem structures present as norm1, norm 2, and norm infinity [45]. Linear cost functions are referred to as ‘norm1’ while quadratic cost functions and min/max problems are categorised into ‘norm2’ and ‘norm infinity’, respectively. Further, ‘norm1’ and ‘norm2’ problems can be given by the following equation [46] _k_ = _N_ ## u 1, …,min u N −1 k ∑ = 1 _Ru_ _k_ p + _Qx_ _k_ p (12) Fig. 6� _‘Brute force_ _’_ _analysis results_ As a case study model for this study, a grid-connected microgrid, which consists of 166.5 kWp solar PV, electrical loads, and an energy storage system (battery bank), is considered. A 100 kWh Li-ion battery storage system is designed [47] for the microgrid and considered in the analyses. _6.1 Solver-dependent results_ The effect of the optimisation solvers on the simulation results is comparatively high. This is evidently true with any generalised optimisation formulation. Therefore, it is highly essential to gauge results using different solvers. Also, the processing time varies with different solvers, e.g. for the case study system, the CPLEX solver outperforms the GLPK solver as the time required when the GLPK solver was used was comparatively higher. Therefore, the CPLEX solver was assigned to solve the model. Fig. 5. indicates the load, generation and charging/discharging pattern for the battery, which was obtained using open loop results of the MPT toolbox. Importantly, the tariff structure should be considered. Here it is assumed to be a flat rate tariff throughout the day, and consequently, the charging/discharging outcomes of the battery are not related to the time of the day. The charging/ discharging pattern illustrated in Fig. 5 has been generated in an optimal way as follows: (i) the battery is assumed to be fully charged at the beginning of the day (i.e. SOC is 100% at hour 00:00); (ii) there is a discharging of the battery from 00:00 to 07:00 when there is zero solar generation; (iii) from 08:00 to 16:00 there is excess generation and the battery both charges and discharges to reach a higher profit/minimal cost value; (iv) importantly the generated results show that the SOC level again reaches 100% at hour 18:00 when the next range with no solar generation starts (this is expected as results were generated autonomously without any control instructions); (v) then the last few hours of the day where there is no solar generation, the battery discharges to its' lowest SOC limit (this can be different if a longer control horizon is used which looks ahead another day or further); and (vi) some charging can be seen in hour 18:00 due to the objective of reaching to a minimal cost value and the flat tariff structure. _6.2 Verification of the results_ For the verification process, it is critical to have a set of benchmark results, which can be compared with the obtained optimisation results. This is important for any kind of optimisation problem. With the problem model developed, the HYSDEL-MPT toolbox is able to generate results for any data set, however it is necessary to justify the results to showcase the importance of the optimisation platform. Therefore, the first step was to perform ‘brute force’ analyses to generate (all potential) feasible results, which can be used to justify the optimisation results. This was a complex method as it generates a large number of data patterns. Filters and assumptions were used to narrow down the amount of usable data patterns. Further constraints could be used to filter the optimal results and limit the number of occurrences for each where _u_ is the vector of manipulated variables; _N_ is the prediction horizon; _p_ is the linear norm; _Q_ is the weighting matrix on the states; _R_ is the weighting matrix on the manipulated variables. When solving using MPT, the user can specify the problem type using the mandatory fields under the `probStruct` variable which are given for the above-mentioned variables in (12). Prediction horizon, weights on the states, weights on the inputs, norm, and level of optimality fields were defined in this particular problem while two other optional fields were selected out from the ten other optional fields. `probStruct.Qy` : This field is used for output regulation. The controller will regulate the output(s) to the given references (usually zero, or provided by probStruct.yref). `probStruct.yref` : This field is used to assign a reference value for the output regulation. In this particular case _Q_ and _R_ are the output weight matrices and are selected to be zeros. The size of the _Q_ matrix should be equal to the number of state variables, which is 49 in this model and the size of the _R_ is set to be one as the number of inputs is one. The level of optimality is set to be the default (zero), which the cost-optimal solution leads to a control law that minimises a given performance index. This case is a linear objective function and therefore, the performance index is selected to the ‘norm1’. Once the `mpt_import()` function is run, the model will be created which then can be used to generate the model predictive controller using `MPCController()` function which takes in the model created from the function and the control horizon defined in the problem structure. Finally, the task is to solve the model with the inputs (extrastate variables) and the initial state of the state variable using the `controller.evaluate()` function, which was explained earlier in this section. 6�Optimisation results for the proposed case study _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 509 Fig. 7� _Open loop results with terminal constraint of SOC = 1.0_ Fig. 8� _Open loop results with terminal constraint of SOC = 0.5_ Fig. 9� _Closed loop results using two duplicate generation and load_ _profiles_ optimal value, e.g. a cost per cycle or cycle limit could be assigned for the number of battery cycles. However, the reliability of the ‘brute force’ method is dependent on the resolution of the generated data. In this case, the patterns were generated using combinations of charging/ discharging values −40, −20, 0, 20, and 40 kWh/h. If the resolution of the charging/discharging range matrix is higher it will take more time to generate the combinations. Fig. 6 shows the number of times each optimal value has occurred, illustrating how multiple instances of charging/ discharging patterns generate the same optimal cost value. Further, it indicates that the optimal value is a point closer to the zero and the number of patterns is a lower value. Therefore, this is a clear indication that the pattern obtained from the MPT generates an optimal cost value. The other process was to manually generate charging and discharging patterns for each hour in a way how a fixed control [48] battery storage (connected to a typical real-time control-based hybrid inverter) would react to. Then those patterns were used to obtain cost values for the particular day and then observed whether the values are in a close range of the values obtained by the optimisation program. In this case, also it was evident that the optimisation program generates more feasible results or rather best charging/discharging pattern in order to gain an optimal value for the cost. _6.3 More controllability using terminal constraints_ One important factor of using MPT toolbox is the availability of the terminal constraints. This allows the user to assign a constraint value, which should be reached at the end of the control horizon (e.g. at the end of the day). For the case study, SOC was used as the terminal constraint. The optimisation model was modified in a way this will generate charging/discharging patterns, which give a pre-defined SOC level at the end of the control horizon while maintaining the objective of reaching an optimal value for the electrical energy cost of the microgrid. This scenario was tested and the results are presented in Figs. 7 and 8. According to Fig. 7, the SOC level at the end of the control horizon has reached the pre-defined value, which is 1.0 (100%). This is advantageous if the microgrid does not use a closed loop controller with comparatively longer control horizon, which is capable to adjust the charging/discharging patterns depending on the existing system state and future forecasting. In that case, these terminal constraints can help to maintain the SOC level to a predefined value, e.g. fully charged state, so that the microgrid is ready for another day of operation. Similarly, Fig. 8 shows the charging/discharging pattern when the pre-defined SOC level was assigned as 50%, which leads the electrical energy cost value to AUD$ 0.88 compared to AUD$ 6.88 in the case of SOC equals to 100%. _6.4 Closed-loop analyses_ Even though the open loop results are the optimal results for a particular day, for which the generation and load profiles were forecasted at the start of the day, the real profiles change with every hour as the day continues. This will lead to a variation of the optimal results whereas the battery charging/discharging profile remains same for the whole day if the results are taken from the open loop results. Closed loop analysis will enable the ability to foresee the future (prediction/receding horizon) and adjust the control output (charging/discharging) to obtain the optimal results on a continuous basis. For the analyses, different scenarios can be considered. In this case, two consecutive days are selected with 24 h prediction horizon. The generation and load profiles are kept the same for two days while the charging/discharging profile is generated considering the day ahead. The only feedback used for the closed loop was the SOC of the battery. Fig. 9 shows the results for the closed loop analysis for two days containing the same generation and load profiles. It is illustrated that at the end of the day one (at the 24th hour) the SOC level has been raised to a suitable level in preparation for the next 24 h prediction without any SOC level constraint. To demonstrate the performance of the closed loop controller, another scenario was created with zero solar generation ahead (worst case scenario), for which the system generated a charging/discharging profile that brings the SOC level to a higher level compared to the previous case, as required. _6.5 Cost for charging/discharging_ Li-ion batteries tend to have more life span than the other types of batteries. However, the installation of a battery storage system demands associated cost considerations. The operational costs of the battery, especially related to charging/discharging were not initially considered. In order to examine the effect of the cost of charging/ discharging, the objective function is changed by adding a cost for charging/discharging of each 1 kWh unit and the associated results are analysed. The cost for charging/discharging is then changed in a range while all the other values and constraints discussed above in the open loop analysis remain the same. The results show the battery goes to an idle mode where it does not charge/discharge further, due to the cost of the charging/discharging. This demonstrates that battery charging/discharging cost, usage of the battery, and export tariff all need to be carefully considered to observe the feasibility of a battery storage system in a microgrid. 510 _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 <u>Table 2</u> <u>Variation of the optimal cost with battery cost</u> <u>Battery cost (AUD/kWh)</u> <u>SOCStart</u> <u>SOCEnd</u> <u>Usage (kWh)</u> <u>Cost (AUD)</u> <u>Grid (kWh)</u> 0.00 1.0 0.2 403.28 −2.72 −217.8 0.01 1.0 0.2 166.32 −1.06 −217.8 0.02 1.0 0.2 166.32 0.61 −217.8 0.03 1.0 0.2 166.32 2.27 −217.8 0.04 1.0 0.2 80.00 3.50 −217.8 0.05 1.0 0.2 80.00 4.30 −217.8 0.06 1.0 0.2 80.00 5.10 −217.8 0.07 1.0 0.2 80.00 5.90 −217.8 0.08 1.0 0.2 80.00 6.70 −217.8 0.09 1.0 0.2 80.00 7.50 −217.8 0.10 1.0 0.2 80.00 8.30 −217.8 0.11 1.0 0.2 80.00 9.10 −217.8 0.12 1.0 0.2 80.00 9.90 −210.4 0.13 1.0 1.0 0.00 9.90 −137.8 0.14 1.0 1.0 0.00 9.90 −137.8 <u>0.15</u> <u>1.0</u> <u>1.0</u> <u>0.00</u> <u>9.90</u> <u>−137.8</u> Fig. 10� _Variation of the battery usage with battery cost and export tariff_ Fig. 11� _Variation of optimal cost with battery cost and export tariff_ Fig. 12� _Optimal cost variation with different scenarios for the battery cost_ _of AUD 0.01_ _6.6 Battery usage, charging/discharging cost and tariff_ Table 2 shows the variation of battery usage with different battery cost per 1 kWh usage. It is evident that the usage of the battery goes down even with increments of AUD$ 0.01/kWh and gradually the battery storage system only uses the energy of the pre-charged battery, and then leads to idle operation. This analysis is based on export and import tariffs of AUD$ 0.05/kWh and AUD $ 0.12/kWh, respectively, as acquired from [49]. In Table 2 the values at which battery charge/discharge cost is approximately equal to import/export tariff are highlighted. These two costs may be used when a battery type needs to be selected for a project (most battery manufacturers provide a charging/discharging cost in terms of $/kWh). The relationship between export tariff and battery usage was also analysed. Fig. 10 shows the variation of usage of battery storage with the export tariff for each battery cost. There is a significant difference between no allocated cost for battery usage to when battery usage cost was AUD$ 0.01/kWh. Similar behaviour of the battery usage is observed for each case around the point where export tariff equals import tariff (AUD$ 0.12/kWh). However, there was a significant change after battery cost reached AUD$ 0.07/kWh where the battery goes to idle mode (no operation). This continues until the battery comes back to operation when the cost is AUD$ 0.13/kWh. Therefore, the designed battery (100 kWh) for this particular microgrid may be infeasible if the battery cost is within the range AUD$ 0.07–0.12/kWh and the export tariff falls in the range AUD$ 0.00–0.15/kWh. Graphs similar to Fig. 11 may be useful when selecting the battery storage systems for microgrids. Fig. 11 indicates the optimal cost variation for each case and illustrates where each cost variation sits compared to the no battery storage system case. The higher the battery charging/discharging cost, the closer the optimal cost graph gets to the cost surface with no battery storage system. In regions where battery charging/discharging is higher, it can be seen that the optimal cost is higher than to the no battery cost. Above initial analyses were mainly focused on the export tariff structures as it is a selective factor for the microgrid customer whereas the import tariff may not differ greatly from utility provider to provider. However, the effect of import tariff along with the export tariff together on the optimal cost and the usage of the battery were analysed. For this particular analysis two different battery charging/discharging costs were used. Figs. 12 and 13 both show how the MPC open loop controller performs better than the simple battery controller (SBC), which is discussed in [48], as the ‘MPC’ surface of the figure deviates from both ‘No Battery’ and ‘SBC’ surfaces. These figures also show another factor where the SBC poorly performs than the no battery values, in a low import tariff region (especially for the import tariff values lower than the battery charging/discharging values), where the ‘SBC’ surface emerges through the ‘No Battery’ surface. According to Fig. 13 the area where the SBC performs poorly compared to the no battery operation has increased with the higher charging/discharging cost. Further insight was needed to identify how the battery usage varies with all three factors, i.e. import tariff, export tariff, and _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 511 Fig. 13� _Optimal cost variation with different scenarios for the battery cost_ _of AUD 0.05_ Fig. 14� _Variation of the battery usage for different battery costs_ charging/discharging cost. Fig. 14 illustrates how the battery usage has affected by the three factors. The battery usage drops with the increase of the import tariff and levels into an idle value where the battery is limited to operate only to that kWh value (166 kWh). Then, when the battery charging/discharging cost is increased to AUD$ 0.05, the battery drops its usage to the idle value at a lower value of import tariff compared to AUD$ 0.01 charging/ discharging cost. These findings further emphasise the benefit of using the MPC method, as it generates optimal results compared to SBC or no battery operation. 7�Conclusion The objective of this paper was to discuss the pathway of developing an optimisation platform and the associated case study results. A descriptive section is included in regard to defining a real controller on the HYSDEL and solving the optimisation problem using MPT, as it is often one of the bottlenecks associated with conditional constraints. This is required when different import and export tariff, as practically exists, are used in the controller. The case study has highlighted a number of practical issues with implementing the optimisation platform. Terminal constraints were used to obtain preferred horizon SOC levels for the battery, thereby ensuring self-sufficiency in case of no local generation in the microgrid. Closed loop results have proved the controller can be used when taking into account existing system state and future predictions of load and generation. The effects of using the battery cost as a constraint in the optimisation model can establish the feasibility of selecting different types of batteries with different charging/discharging costs. An extension of this work will be to assign TOU tariffs as opposed to flat-rate tariffs. 8�Acknowledgment This research has been conducted with the support of the Australian Government Research Training Program Scholarship. 9�References [1] Hatziargyriou, N., Asano, H., Iravani, R. _, et al._ : ‘Microgrids’, _IEEE Power_ _Energy Mag._, 2007, 5, pp. 78–94 [2] Katiraei, F., Iravani, R., Hatziargyriou, N. _, et al._ : ‘Microgrids management’, _IEEE Power Energy Mag._, 2008, 6, pp. 54–65 [3] Olivares, D.E., Mehrizi-Sani, A., Etemadi, A.H. _, et al._ : ‘Trends in microgrid control’, _IEEE Trans. Smart Grid_, 2014, 5, pp. 1905–1919 [4] Tsikalakis, A.G., Hatziargyriou, N.D.: ‘Centralized control for optimizing microgrids operation’, _IEEE Trans. Energy Convers._, 2008, 23, pp. 241–248 [5] Aguilar-Jiménez, J.A., Velázquez, N., Cota, R. _, et al._ : ‘Techno-economic analysis of a hybrid PV-CSP system with thermal energy storage applied to isolated microgrids’, _Sol. Energy_, 2018, 174, pp. 55–65 [6] Lidula, N.W.A., Rajapakse, A.D.: ‘Microgrids research: a review of experimental microgrids and test systems’, _Renew. Sust. Energy Rev._, 2011, 15, pp. 186–202 [7] Lawder, M.T., Viswanathan, V., Subramanian, V.R.: ‘Balancing autonomy and utilization of solar power and battery storage for demand based microgrids’, _J. Power Sources_, 2015, 279, pp. 645–655 [8] Office of Electricity Delivery & Energy Reliability: ‘DOE Global Energy Storage Database’. available at: [http://www.energystorageexchange.org,](http://www.energystorageexchange.org) accessed September 2017 [9] Divya, K.C., Østergaard, J.: ‘Battery energy storage technology for power systems–an overview’, _Electr. Power Syst. Res._, 2009, 79, pp. 511–520 [10] Iqbal, M., Azam, M., Naeem, M. _, et al._ : ‘Optimization classification, algorithms and tools for renewable energy: a review’, _Renew. Sust. Energy_ _Rev._, 2014, 39, pp. 640–654 [11] Gamarra, C., Guerrero, J.M.: ‘Computational optimization techniques applied to microgrids planning: a review’, _Renew. Sust. Energy Rev._, 2015, 48, pp. 413–424 [12] Chiu, W.-Y., Sun, H., Poor, H.V.: ‘A multiobjective approach to multimicrogrid system design’, _Trans. Smart Grid_, 2015, 6, pp. 2263–2272 [13] Li, J., Liu, Y., Wu, L.: ‘Optimal operation for community-based multi-party microgrid in grid-connected and islanded modes’, _IEEE Trans. Smart Grid_, 2018, 9, pp. 756–765 [14] Guan, X., Xu, Z., Jia, Q.-S.: ‘Energy-efficient buildings facilitated by microgrid’, _IEEE Trans. Smart Grid_, 2010, 1, pp. 243–252 [15] Lopez-Salamanca, H.L., Arruda, L.R., Magatao, L. _, et al._ : ‘Using a MILP model for battery bank operation in the ‘White tariff’ Brazilian context’, pp. 1–6 [16] Zhao, J., Xu, Z.: ‘Ramp-limited optimal dispatch strategy for PV-embedded microgrid’, _IEEE Trans. Power Syst._, 2017, 32, pp. 4155–4157 [17] Prodan, I., Zio, E.: ‘A model predictive control framework for reliable microgrid energy management’, _Int. J. Electr. Power Energy Syst._, 2014, 61, pp. 399–409 [18] Zhao, B., Zhang, X., Chen, J. _, et al._ : ‘Operation optimization of standalone microgrids considering lifetime characteristics of battery energy storage system’, _IEEE Trans. Sustain. Energy_, 2013, 4, pp. 934–943 [19] Zia, M.F., Elbouchikhi, E., Benbouzid, M.: ‘Microgrids energy management systems: a critical review on methods, solutions, and prospects’, _Appl._ _Energy_, 2018, 222, pp. 1033–1055 [20] Dongol, D., Feldmann, T., Schmidt, M. _, et al._ : ‘A model predictive control based peak shaving application of battery for a household with photovoltaic system in a rural distribution grid’, _Sustain. Energy Grids Netw._, 2018, 16, pp. 1–13 [21] Liu, B., Lu, Z., Yao, K. _, et al._ : ‘A MPC operation method for a photovoltaic system with batteries’, _IFAC-PapersOnLine_, 2015, 48, pp. 807–812 [22] Alramlawi, M., Gabash, A., Mohagheghi, E. _, et al._ : ‘Optimal operation of hybrid PV-battery system considering grid scheduled blackouts and battery lifetime’, _Sol. Energy_, 2018, 161, pp. 125–137 [23] Arasteh, F., Riahy, G.H.: ‘MPC-based approach for online demand side and storage system management in market based wind integrated power systems’, _Int. J. Electr. Power Energy Syst._, 2019, 106, pp. 124–137 [24] Sun, C., Sun, F., Moura, S.J.: ‘Nonlinear predictive energy management of residential buildings with photovoltaics & batteries’, _J. Power Sources_, 2016, 325, pp. 723–731 [25] Luo, Z., Wu, Z., Li, Z. _, et al._ : ‘A two-stage optimization and control for CCHP microgrid energy management’, _Appl. Therm. Eng._, 2017, 125, pp. 513–522 [26] Prodan, I., Zio, E., Stoican, F.: ‘Fault tolerant predictive control design for reliable microgrid energy management under uncertainties’, _Energy_, 2015, 91, pp. 20–34 [27] Khakimova, A., Kusatayeva, A., Shamshimova, A. _, et al._ : ‘Optimal energy management of a small-size building via hybrid model predictive control’, _Energy Build._, 2017, 140, pp. 1–8 [28] Parisio, A., Glielmo, L.: ‘Energy efficient microgrid management using model predictive control’. 50th IEEE Conf. on Decision and Control and European Control Conf. (CDC-ECC 2011), Orlando, FL, USA, 2011 [29] Mayhorn, E., Kalsi, K., Elizondo, M. _, et al._ : ‘Optimal control of distributed energy resources using model predictive control’. IEEE Power & Energy Society General Meeting. New Energy Horizons – Opportunities and Challenges, San Diego, CA, USA, 2012 [30] Valverde, L., Bordons, C., Rosa, F.: ‘Power management using model predictive control in a hydrogen-based microgrid’. 38th Annual Conf. of IEEE Industrial Electronics (IECON 2012), Montreal, QC, Canada, 2012 [31] Garcia-Torres, F., Bordons, C.: ‘Optimal economical schedule of hydrogenbased microgrids with hybrid storage using model predictive control’, _IEEE_ _Trans. Ind. Electron._, 2015, 62, pp. 5195–5207 [32] Zhang, Y., Meng, F., Wang, R. _, et al._ : ‘A stochastic MPC based approach to integrated energy management in microgrids’, _Sustain Cities Soc._, 2018, 41, pp. 349–362 [33] Pacaud, F., Carpentier, P., Chancelier, J.-P. _, et al._ : ‘Stochastic optimal control of a domestic microgrid equipped with solar panel and battery’, 2018 [34] Olivares, D.E., Lara, J.D., Canizares, C.A. _, et al._ : ‘Stochastic-predictive energy management system for isolated microgrids’, _IEEE Trans. Smart Grid_, 2015, 6, pp. 2681–2693 [35] Cai, J., Zhang, H., Jin, X.: ‘Aging-aware predictive control of PV-battery assets in buildings’, _Appl. Energy_, 2019, 236, pp. 478–488 512 _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 [36] Mbungu, N.T., Naidoo, R.M., Bansal, R.C.: ‘Real-time electricity pricing: TOU-MPC based energy management for commercial buildings’, _Energy_ _Proc._, 2017, 105, pp. 3419–3424 [37] Godina, R., Rodrigues, E.M.G., Catalão, J.P.S. _, et al._ : ‘Optimal residential model predictive control energy management performance with PV microgeneration’, _Comput. Oper. Res._, 2018, 96, pp. 143–156 [38] Hesse, H.C., Schimpe, M., Kucevic, D. _, et al._ : ‘Lithium-Ion battery storage for the grid—a review of stationary battery storage system design tailored for applications in modern power grids’, _Energies_, 2017, 10, p. 2107 [39] Renewables, I.: ‘Lithium Ion Battery Test Centre’, available at: [http://](http://batterytestcentre.com.au/) [batterytestcentre.com.au/, accessed September 2017](http://batterytestcentre.com.au/) [40] Herceg, M., Kvasnica, M., Morari, M. _, et al._ : ‘HYSDEL 3.0 – Manual’. [41] Herceg, M., Kvasnica, M., Jones, C.N. _, et al._ : ‘Multi-parametric toolbox 3.0’. 2013 European Control Conf., ECC 2013, Zurich, Switzerland, 2013, pp. 502–510 [42] Torrisi, F.D., Bemporad, A.: ‘HYSDEL—a tool for generating computational hybrid models for analysis and synthesis problems’, _IEEE Trans. Control_ _Syst. Technol._, 2004, 12, pp. 235–249 [43] Fiorentini, M., Cooper, P., Ma, Z. _, et al._ : ‘Hybrid model predictive control of a residential HVAC system with PVT energy generation and PCM thermal storage’. _Energy Proc._, 2015, 83, pp. 21–30 [44] Bemporad, A.: ‘Model predictive control design: newew trends and tools’. Proc. IEEE Conf. on Decision and Control, San Diego, USA, 2006, pp. 6678– 6683 [45] Kvasnica, M., Grieder, P., Baoti, M. _, et al._ : ‘Multi-Parametric Toolbox (MPT)’, 2006 [46] Serale, G., Fiorentini, M., Capozzoli, A. _, et al._ : ‘Model predictive control (MPC) for enhancing building and HVAC system energy efficiency: problem formulation, applications and opportunities’, _Energies_, 2018, 11, p. 631 [47] Meegahapola, L.G., Robinson, D., Agalgaonkar, A.P. _, et al._ : ‘Microgrids of commercial buildings: strategies to manage mode transfer from grid connected to islanded mode’, _IEEE Trans. Sustain. Energy_, 2014, 5, pp. 1337–1347 [48] Jayawardana, H.P.A.P., Agalgaonkar, A.P., Robinson, D.A.: ‘Novel control strategy for operation of energy storage in a renewable energy-based microgrid’. 2015 Australasian Universities Power Engineering Conf. (AUPEC), Wollongong, Australia, 2015, p. 1 [49] Energy, E.: ‘Network Price List 2016/2017’, available at: [http://](http://www.endeavourenergy.com.au) [www.endeavourenergy.com.au, accessed September 2017](http://www.endeavourenergy.com.au) _IET Smart Grid_, 2019, Vol. 2 Iss. 4, pp. 504-513 513

섹션 본문 81문단 · 45,862자

(제목 없음)

1The growing trend of distributed generation, such as solar photovoltaic (PV) systems and small scale wind turbines have promoted the development of microgrids which are highly dependent on renewable energy. Due to the intermittent nature of renewable energy, these microgrids are generally equipped with energy storage, such as batteries. Batteries are generally operated using fixed control methods, often deviating from the optimal operation. This aspect has created an opportunity to gain improved outcomes for microgrid owners and operators. This research study describes a pathway for designing an optimisation framework which can be used to optimise the charge and discharge operation of battery storage within a microgrid containing a solar PV system. Optimisation is implemented in terms of gaining maximum cost benefit for microgrid owners. The advantages of using model predictive control optimisation compared to fixed control methods for this particular problem, solvers and verification procedures are highlighted. A case study is provided with results including analysis of battery operation, energy usage, and impact on overall tariff. The study describes each step of the control and optimisation platform development ensuring readers to be able to replicate the process utilised.Abstract: The growing trend of distributed generation, such as solar photovoltaic (PV) systems and small scale wind turbines have promoted the development of microgrids which are highly dependent on renewable energy. Due to the intermittent nature of renewable energy, these microgrids are generally equipped with energy storage, such as batteries. Batteries are generally operated using fixed control methods, often deviating from the optimal operation. This aspect has created an opportunity to gain improved outcomes for microgrid owners and operators. This research study describes a pathway for designing an optimisation framework which can be used to optimise the charge and discharge operation of battery storage within a microgrid containing a solar PV system. Optimisation is implemented in terms of gaining maximum cost benefit for microgrid owners. The advantages of using model predictive control optimisation compared to fixed control methods for this particular problem, solvers and verification procedures are highlighted. A case study is provided with results including analysis of battery operation, energy usage, and impact on overall tariff. The study describes each step of the control and optimisation platform development ensuring readers to be able to replicate the process utilised.

Introduction

2Microgrids are small electrical and/or thermal networks consisting of the distributed generation which can be connected to the grid, to import or export its energy, or disconnected from the grid to operate in an islanded mode [1]. The concept of microgrids has been present in electrical networks since the beginning of the age of light when small generations such as coal and gas generators were connected to local loads close by. Then, with the expansion of the electricity grid, large generators were connected to the grid and transmitted through longer networks increasing losses and complexity of maintaining the network. However, distribution generators such as solar photovoltaic (PV) systems, wind generators, fuel cells, etc., which have been the trend of the last decade, has brought back the concept of de-centralised generation capable of supplying electricity and/or thermal comfort to local loads [2]. More recently, microgrids which are solely powered by renewable generation, especially solar PV, have received more attention. This category includes houses with rooftop solar PV and installed battery storage.

3Renewable based microgrids are impacted by the intermittency of energy sources [3] and it's not always accounted for in the optimal operation of battery storage. In most cases, battery storage is operated according to a pre-configured control method with no dependency on future variations [4]. Operating renewable based microgrids (focusing on the operation of the battery storage) in an optimal way to potentially create more financial gains and functional opportunities [2].

4The progression of implementation of optimisation methods for optimal operation of battery energy storage systems in microgrids, highlighted in the literature, is discussed in Sections 2 and 3. However, none of the research papers provides a step by step pathway of developing an optimisation framework for optimal operation of a microgrid (especially a renewable microgrid).

5Developing a model with all the key parameters related to a microgrid and performing analyses based on such a complex model can tarnish the effectiveness of an optimal control process as each and every parameter does not effectively reflect on the optimal operation. Therefore, a structured model formulation with identification of effective parameters in the optimal operation of a microgrid is considered as a necessity in this paper. Comprehensive sensitivity analyses to identify the importance of model parameters are also found to be minimally discussed in the literature and this paper has widely analysed the effect of the associated optimisation model parameters.

6This paper comprehensively outlines a pathway of designing an optimisation framework which can be used to control renewable based microgrids containing battery energy storage systems. The paper is structured in a way that the presented modelling information can be used to develop optimisation models for different system architectures such as a PV-concentrated solar power system with thermal energy storage as detailed in [5]. The paper is outlined as follows. Section 2 puts together the need for energy storage systems in renewable-rich microgrids, introducing the battery storage technology, and the requirement for optimisation platforms. Section 3 includes the background work on the research, introducing hybrid system description language (HYSDEL), which enables the usage of model predictive control (MPC) method. The MPC method used for this work is detailed in Section 4. Section 5 describes the anatomy of the real systems with all relevant information, including the usage of multi-parametric toolbox (MPT). The details are provided in a step-by-step process, which cannot be found in the existing literature. Finally, Section 6 comprehensively discusses the results of the analyses, which have been undertaken using the developed controller.

Importance of energy storage

7Renewable-rich microgrids are often vulnerable to inconsistent natural energy sources; this is especially the case for solar PV and wind [6]. Therefore, renewable-rich microgrids have to consider inconsistent generation scenarios throughout the year. The void created by the inconsistent nature of renewable generation can be filled [7] using energy storage, which is already widely used in microgrids to provide energy whenever demand arises. Microgrids designed to be marginally above demand will utilise energy storage by necessity on a daily basis, while others will use the energy storage less frequently, e.g. for emergency demand only. Among many energy storage technologies, battery storage technology has been around for long time providing much-needed support to microgrids. It is also evident that battery storage technologies are also used for renewable capacity framing, electric energy time shift, and electricity bill management [8]. This is due to both the uncertainty of renewable energy generation and the lower market rates for energy exports.

Why is optimisation important?

8Battery storage plays a major role in terms of the overall operation of the renewable-rich microgrid. Most hybrid inverters, which are used to control battery storages in renewable microgrids, use realtime control where the control actions are based on the present data or pre-configured modes. If an optimisation platform is capable of utilising varying future data (i.e. for generation and loads) to come up with an optimal operation for the battery storage, the savings for the microgrid customers can be improved as the inconsistent nature of the generation is considered in the operation avoiding unnecessary low value exports to the grid.

9Further, battery technologies are expensive and this has also been one of the main drivers for optimisation processes, which aims to maximise the financial performance for microgrid owners. Also, battery storage generally has a limited operating lifetime, which depends on the number of battery cycles [9]. Therefore, it is important to balance the flexibility of battery use with impact on lifecycle in the control of charging/discharging. Therefore, significant demand exists for optimisation platforms, which can be used to optimise the operation of battery storage either for profit, reliability, or other improvement metrics.

Optimisation methods

10Optimisation models can be derived using a number of different techniques and solvers/software packages. Among the most popular methods are [10]: linear programing; mixed-integer linear/ non-linear programing (MILP/MINLP); particle swarm optimisation (PSO); and genetic algorithm (GA). A method can be selected depending on the structure of the problem, objective function, variables, and related constraints. Similarly, software or solvers are chosen depending on their capabilities of solving different types of problems or models. MATLAB, CPLEX, and GAMS are few of the many common software/solvers [10].

11In [11], a comprehensive study can be found on the approaches and methods/algorithms used for implementing optimisation at a planning stage in case of microgrids. The main approaches have been categorised into single-objective optimisation, multi-objective optimisation, heuristic optimisation, and metaheuristic optimisation. The main focus of most of the research articles is the operational scheduling of microgrids.

12In [12], a multi-objective optimisation approach has been proposed for a network of microgrids connected to a system. For a microgrid, the objective is to maximise the net gain derived from consuming the available power while the objective for the grid is to maximise the net value derived from providing excess power to the network.

13In [13], a business model is proposed for optimal operation of the community-based multi-party microgrid. This has considered critical loads and generators owned by multiple owners operating with unique operating goals.

14Although the greater interest is to investigate the optimal operation of single or multiple microgrids connected to a network, it is always important to identify the optimal operation of energy storage systems in microgrids. Previous work on optimising generation and energy storage systems in microgrids, especially with solar PV, are included as follows. Scheduling of generation and an energy storage system of a microgrid system has been conducted in [14] where the objective function minimises the overall cost of electricity in the microgrid while maintaining the self-sufficiency and vital constraints of the battery storage. In [15], another approach can be identified in which optimal charging and discharging patterns for the battery storage system are generated. In both cases, the optimisation is defined as a mixed-integer problem.

15Another method can be found in [16] where a rolling optimisation strategy is utilised in order to determine the optimal dispatch for energy storage based on short-term forecast. In this study, the optimisation horizon and time interval are selected as 4 h and 15 min, respectively.

MPC approach for microgrid control

16MPC approaches have been used in [17,18] in which the objective is to achieve optimal cost by controlling battery storage. In [18], a similar approach has been undertaken to optimise the operation of a microgrid considering the lifetime of the battery. Most of the MPC approaches have been used in developing energy management systems for microgrids.

17Important works related to the MPC approach have been reviewed in [19], emphasising the contributions of each work. Main contributions include minimising the grid involvement cost while utilising the battery storage, minimising the total operational cost of the microgrid, and maintaining other important parameters such as voltage, load shedding, etc.

18In [20], MPC is used to maximise the utilisation of a battery to shave peaks in solar PV generation and load profile. Load and generation forecast profiles were used as inputs to make the battery on-off decision based on the developed controller. A similar approach has been utilised in [21] to control charging and discharging of a battery in a residential solar PV system. Here, the primary objective was to minimise the total cost for the customer. A time of use (TOU) tariff scheme was used in the model; however, there is no mention of feed-in tariff during energy export.

19Examples of new operational strategies and frameworks for microgrids based on MPC have been reported in [22][23][24], which attempt to minimise total energy cost, carbon emissions, or battery lifetime loss, or increase utilisation of the available renewable energy resources. Performance during grid scheduled blackouts was considered in [22]. The effect of the control horizon, the accuracy of the load forecast and battery health has also been investigated in [24].

20In [17], a predictive control framework is proposed to increase the utilisation of the battery to reduce the purchasing of electricity from the grid. It also provides a more realistic model of the battery considering leakage current and a switched model with charging/ discharging functions.

21An MPC approach has been used in [25] to manage the thermal and electrical energy in a combined cooling, heating, and power microgrid in terms of achieving economic operation. In this work, two different tariffs have been used for import and export.

22Another MPC based approach can be seen in [26] which stores and distributes energy in an efficient manner in the microgrid. This has been obtained while minimising the charge/discharge cycles to increase the battery life. However, the work itself suggests the complexity of solving these types of problems when more constraints are considered.

23In [27], the study presents an MPC scheme which is designed to optimally manage the thermal and electrical subsystems of a smart house. The objective is set to minimise the expense for buying energy from the grid while gaining thermal comfort levels. This paper discusses the importance of using a hybrid dynamical model when the binary control inputs are used together with continuous inputs.

24A preliminary study on applying MPC technique to efficiently optimise the microgrid operations can be found in [28]. This is done while the important operation constraints and a time-varying request are met. The main objectives are the unit commitment, the economic dispatch of distributed generators, obtaining the time of charging/discharging the storage, and the decision on the time and amount of energy purchased from the grid. Further, this emphasises the importance of using a technique like MPC to solve the problem using commercial solvers without resorting to complex heuristics or decomposition techniques.

25In [29], an optimal control strategy has been proposed using MPC to coordinate energy storage and a diesel generator in a rural A supervisory MPC method has been developed in [30] for optimal power management and control in a hydrogen-based microgrid. This is designed based on two main objectives where the first one is to calculate power reference signals to electrolyser, the fuel cell, and the grid in order to satisfy the user power demand while the second one is to maintain the optimal duty cycles, operational constraints and energy savings.

26Another use of mixed logical dynamical (MLD) systems where both continuous and discrete dynamics are captured and an MPC technique to maximise the economic benefits to hydrogen-based microgrid and minimise the degradation in the hybrid energy storage system, can be found in [31].

27Also, stochastic MPC (SMPC) approaches can be found in the literature, which have taken the forecasting uncertainties into account. In [32], an SMPC approach has been utilised for integrated energy management in a microgrid, wherein the forecasting uncertainties of loads, generation, and electricity prices have been considered.

28In [33], an energy management system has been proposed for a domestic microgrid, which contains solar PV, battery storage and domestic hot water tank in order to ensure the least cost operation. This has been achieved using two different algorithms: one to consider future uncertainties with a deterministic forecast while the other to model the uncertainties as probability distributions. A similar approach can be found in [34] where a two-stage decision process has been proposed to address uncertainties. The first stage uses a stochastic mixed-integer linear programming, whereas the second stage is based on a nonlinear programming formulation.

29In [35], a control strategy has been developed using MPC to incorporate battery aging cost. This problem is solved to find the optimal balance between the utility cost and the battery life cycle cost. The study has demonstrated the effectiveness of the proposed method using a case study with different control simulations for a commercial building. Another study can be found in [36], where a TOU-MPC-based energy management system has been proposed for a commercial building to minimise the electricity cost of the building. Also, [37] has proposed an optimal residential MPC energy management strategy with PV microgeneration. The intention of this study is to achieve best temperature comfort levels and energy costs while deciding on the best TOU electricity tariff option. This study has also provided a comprehensive comparison between the MPC method with the normal on/off control and the proportional integral derivative control for a domestic heating ventilation and air conditioning system.

30The literature has not covered a comprehensive pathway of developing optimisation platforms, which can enable online analyses and controlling of the battery storage systems, taking the tariff structures and constraints of the battery storage into account, especially the cost for charging/discharging and the changes in the usage of the battery storage due to the optimal operation. In the next section this paper provides such a pathway: (i) identifying the need for HYSDEL in the optimisation process, which enables the usage of the MPC method; (ii) describing the anatomy of the HYSDEL model with all relevant information including the usage of MPT, which cannot be found in the literature; (iii) comprehensively discussing the results from the case study model, which has been carried out using the developed controller; and (iv) studying the vitality of different verification methods for optimisation solutions, which are rarely discussed in the literature. Emphasis is given to the relationship of the battery usage with the export tariff and battery charging/discharging cost.

Methodology

31The goal was to formulate a charging/discharging pattern for the battery bank of a microgrid shown as in Fig. 1, for each day, while minimising total electrical energy cost. Therefore, the objective function of the system was set as follows:

32where Z is the total cost for electrical energy; G i is the forecasted generation for the ith hour; L i is the forecasted load for the ith hour; T i is the electricity tariff rate for the ith hour; x i is the battery charging/discharging for the ith hour. The main constraint of the optimisation was the state of charge (SOC) of the battery bank, where SOC is maintained between 0.2 and 1.0 per unit of battery capacity [38,39]. The minimum SOC value has been decided considering an energy reserve for emergency loads, if it exists [14].

33In the preliminary study, the export of electrical energy to the point of common coupling was considered as a saving to the precinct and assigned the negative value of the tariff rate of the particular hour. This was valid only for the definition of the export energy as a saving. However, the intention was to define an optimisation model having separate import and export tariffs. Therefore, additional conditional constraints were required, assigning an import tariff when the microgrid imports and export tariff when it exports. This is defined as follows where the T Ex is the export tariff and T Im is the import tariff.

Why HYSDEL?

34Direct applicability of MATLAB optimisation functions was not possible as this particular case contains conditional constraints, which cannot be dealt with as yet by any built-in MATLAB optimisation functions. Decomposition methods or rearrangement of the objective function may have been used; however, this would have added more complexity to the problem formulation and contributed to computational times. Therefore, the search of a solver/platform, which can handle these types of conditional constraints, directed the study towards HYSDEL, which can be used to model the logical systems in a general mathematical representation [40], which then can be used to solve using MPT [41]. Hybrid systems are models which contain continuous components as well as discrete components which are associated with logic devices. These can be switches, digital circuitry or software code, and clearly match the needs of this particular case where conditional constraints exist.

What is HYSDEL?

35HYSDEL is a language which can be used to represent a hybrid model more in abstractive level which can be easily formulated similar to the handwritten mathematical formulation. Then the HYSDEL compiler is used to convert the model into a computational model, which can be used in system optimisation [42].

36HYSDEL specialises in describing continuous models combined with logical conditions. HYSDEL compilers generate compact computational models which are generally more efficient compared to the models acquired from other general-purpose modelling software. Formulating a system, which contains logical behaviours, using general-purpose optimisation software tools can be tedious and complex. HYSDEL is run in MATLAB environment, which makes the coding and post-analyses effective.

MPC method

37MPC method has been used in different study areas for more than three decades. The general definition of MPC is to come up with a profile of a future manipulative variable to optimise the output (objective function) [43]. The optimisation is carried out within a specific time window, which is known as a receding or control horizon.

38When applied to microgrid operation, the future charging/ discharging amounts of a battery bank will be computed to optimise the total electrical energy cost incurred by the microgrid. The process shown in Fig. 2 elaborates how the MPC can be used to optimise the charging/discharging amounts by using past and future generation (G), loads (L), and the battery charging/ discharging (x) values with cost profile and constraints.

State-space model for the microgrid

39The following generalised state-space model is used in HYSDEL to represent the microgrid. , where P PV is the active power generated by the solar PV system, P ESS is the active power import/ export (charging ( + ve)/discharging (−ve)) from the battery, P L is the active power load supplied by the microgrid P grid = P PV + P L + P ESS (4)

Constraints

40The model should satisfy the following main constraint related to the battery storage where the SOC of the battery storage should be within the assigned limits. The SOC min and SOC max are dependent on the type and properties of the battery storage used.

41The other major constraint, which is considered in this particular research, is the charging or the discharging rate of the battery storage i.e. P ESS . The charging/discharging rate of battery storage depends on many factors. It can simply be a fixed value or an output of the complex relationship of other factors such as voltage and current.

Control horizon

42The control horizon of this particular model for a renewable microgrid is critical in many ways. At a given state there are four variables including the state variable and the inputs. At least two major constraints are involved in the same stage. As the control horizon increases the number of total variables and constraints considerably increase as the solving should take in all the variables and constraints included in the control horizon. Therefore, if the instantaneous power is considered with a control horizon of 24 h it will put the pressure on the solver as the number of variables and constraints are increased. Comparatively, if the control horizon is reduced, the applicability of an MPC model for a renewable microgrid will be debatable as the renewable generation especially the solar PV generation varies within a 24 h period.

43However, if the electrical energy for an hour is considered, there are only 24 states for a control horizon of 24 h reducing the complexity of the model. The final HYSDEL model, which has been used contains a control horizon of 24 with electrical energy is considered for each state.

HYSDEL model for solving the proposed problem

44The optimisation of the case study system discussed in Section 3 was primarily focused on charging/discharging of the battery bank, while the solar PV generation and load are assumed to be known. The tariff schemes are the main reason why the HYSDEL is used. There are separate tariff values for import and export, which depend on both microgrid condition (import/export) and charging/discharging value of the battery. This type of complex logical relationship can be represented in HYSDEL and then converted into the computational model using HYSDEL compiler.

45The model discussed in Section 4 was then represented in HYSDEL. Fig. 3 indicates the process of how HYSDEL compiler was used to convert the model into a computational model, which then can be used in MPT to solve and obtain the results. Table 1 summarises the terms used in the HYSDEL code and referred to in the latter sections. The relevant code is shown in Fig. 4. Solving the developed model using MPT needs to satisfy the requirements of the controller.evaluate() function.

46The solution of the function outputs u, feasible and openloop. They are the first element of the optimal control sequence (charging/discharging amount), the Boolean flag indicating whether the optimisation problem is a feasible solution (feasible = 1) and open loop predictions of states, respectively. The controller is the MPC controller generated by MPT based on the HYSDEL model and other parameters, which are discussed in the latter part of this section. Initial conditions are indicated by the x0 and the above command is capable of taking only one vector of initial conditions. This required finding ways of taking in all the inputs in the microgrid system as described in the HYSDEL model (4) while the charging/discharging amount of the battery storage needs be kept as the control input which can be obtained by solving the controller.

47As per above, the representation of the model in HYSDEL and solving it using MPT is not straight forward and the following comprehensive steps elaborate the process (refer also to the complete HYSDEL model in the Fig. 4).

HYSDEL model

48In the model discussed in Section 4, there is only one state variable, which is the SOC of the battery storage. This state is represented as x in the HYSDEL model. However, to overcome the issue related to the initial conditions, the inputs related to the solar PV generation and the loads are defined as the state variables in the INTERFACE section in the HYSDEL model along with the remaining input (charging/discharging amount), output, and the parameters.

49The other major section of the HYSDEL model is the IMPLEMENTATION section where auxiliary variables are defined with other major components of the model. These auxiliary variables are used to connect the (5)-(9) and (10) and declared in the AUX section. Auxiliary variable delta is declared as a Boolean variable, which represents the condition of the microgrid. If the microgrid exports electricity, delta will be one and else will be zero.

50Equation (5) is derived in the AD section where the analogue to digital conversion is declared. Then, depending on the state of delta, the relationship defined in (9) and (10) is derived, which is a case of converting the digital condition to an analogue relationship. This is represented in the DA section, which will derive the cost function (6) depending on which tariff scheme is to be used based on import/export of energy from the microgrid.

51Then, the MUST section is used to specify constraints on the states, input and output variables. Maximum charging and discharging amount per hour is assumed to be 40 kWh, while the SOC of the battery can be between 20 and 100%. These parameter values can be any value depending on the type of battery storage that is used in the microgrid.

52Finally, the CONTINUOUS and OUTPUT sections are declared where the CONTINUOUS section describes the state equation. As there are extra state variables, a special method discussed in [44] is used to keep the continuity of the extra state variables.

53The rolling sequence of the extra variables is defined in the CONTINUOUS section. Then the complete HYSDEL model can be used to solve using MPT.

MPT codes

54MPT provides more efficient computational methods to obtain controllers for constrained optimal control problems. MPT also works on the MATLAB environment. MPT provides the mpt_import() function to convert a system described on HYSDEL to a model, which can be used to solve by obtaining a controller.

55The system structure and problem structure variables, which are used in the mpt_import() function can be created using specific functions. mpt_sys() function will generate a MLD representation of a hybrid model, defined in a HYSDEL file, which then can be used as the system structure variable (sysStruct).

56probStruct or the problem structure is the section where the parameters are assigned to MPT to solve the optimisation problem. In order to define this, there are defined problem structures present as norm1, norm 2, and norm infinity [45]. Linear cost functions are referred to as 'norm1' while quadratic cost functions and min/max problems are categorised into 'norm2' and 'norm infinity', respectively. Further, 'norm1' and 'norm2' problems can be given by the following equation [46] min

57where u is the vector of manipulated variables; N is the prediction horizon; p is the linear norm; Q is the weighting matrix on the states; R is the weighting matrix on the manipulated variables. When solving using MPT, the user can specify the problem type using the mandatory fields under the probStruct variable which are given for the above-mentioned variables in (12). Prediction horizon, weights on the states, weights on the inputs, norm, and level of optimality fields were defined in this particular problem while two other optional fields were selected out from the ten other optional fields.

58probStruct.Qy: This field is used for output regulation. The controller will regulate the output(s) to the given references (usually zero, or provided by probStruct.yref).

59probStruct.yref: This field is used to assign a reference value for the output regulation.

60In this particular case Q and R are the output weight matrices and are selected to be zeros. The size of the Q matrix should be equal to the number of state variables, which is 49 in this model and the size of the R is set to be one as the number of inputs is one. The level of optimality is set to be the default (zero), which the cost-optimal solution leads to a control law that minimises a given performance index. This case is a linear objective function and therefore, the performance index is selected to the 'norm1'.

61Once the mpt_import() function is run, the model will be created which then can be used to generate the model predictive controller using MPCController()function which takes in the model created from the function and the control horizon defined in the problem structure.

62Finally, the task is to solve the model with the inputs (extrastate variables) and the initial state of the state variable using the controller.evaluate() function, which was explained earlier in this section.

Optimisation results for the proposed case study

63As a case study model for this study, a grid-connected microgrid, which consists of 166.5 kWp solar PV, electrical loads, and an energy storage system (battery bank), is considered. A 100 kWh Li-ion battery storage system is designed [47] for the microgrid and considered in the analyses.

Solver-dependent results

64The effect of the optimisation solvers on the simulation results is comparatively high. This is evidently true with any generalised optimisation formulation. Therefore, it is highly essential to gauge results using different solvers. Also, the processing time varies with different solvers, e.g. for the case study system, the CPLEX solver outperforms the GLPK solver as the time required when the GLPK solver was used was comparatively higher. Therefore, the CPLEX solver was assigned to solve the model. Fig. 5. indicates the load, generation and charging/discharging pattern for the battery, which was obtained using open loop results of the MPT toolbox. Importantly, the tariff structure should be considered. Here it is assumed to be a flat rate tariff throughout the day, and consequently, the charging/discharging outcomes of the battery are not related to the time of the day. The charging/ discharging pattern illustrated in Fig. 5 has been generated in an optimal way as follows: (i) the battery is assumed to be fully charged at the beginning of the day (i.e. SOC is 100% at hour 00:00); (ii) there is a discharging of the battery from 00:00 to 07:00 when there is zero solar generation; (iii) from 08:00 to 16:00 there is excess generation and the battery both charges and discharges to reach a higher profit/minimal cost value; (iv) importantly the generated results show that the SOC level again reaches 100% at hour 18:00 when the next range with no solar generation starts (this is expected as results were generated autonomously without any control instructions); (v) then the last few hours of the day where there is no solar generation, the battery discharges to its' lowest SOC limit (this can be different if a longer control horizon is used which looks ahead another day or further); and (vi) some charging can be seen in hour 18:00 due to the objective of reaching to a minimal cost value and the flat tariff structure.

Verification of the results

65For the verification process, it is critical to have a set of benchmark results, which can be compared with the obtained optimisation results. This is important for any kind of optimisation problem. With the problem model developed, the HYSDEL-MPT toolbox is able to generate results for any data set, however it is necessary to justify the results to showcase the importance of the optimisation platform. Therefore, the first step was to perform 'brute force' analyses to generate (all potential) feasible results, which can be used to justify the optimisation results. This was a complex method as it generates a large number of data patterns. Filters and assumptions were used to narrow down the amount of usable data patterns. Further constraints could be used to filter the optimal results and limit the number of occurrences for each optimal value, e.g. a cost per cycle or cycle limit could be assigned for the number of battery cycles.

66However, the reliability of the 'brute force' method is dependent on the resolution of the generated data. In this case, the patterns were generated using combinations of charging/ discharging values −40, −20, 0, 20, and 40 kWh/h. If the resolution of the charging/discharging range matrix is higher it will take more time to generate the combinations. Fig. 6 shows the number of times each optimal value has occurred, illustrating how multiple instances of charging/ discharging patterns generate the same optimal cost value. Further, it indicates that the optimal value is a point closer to the zero and the number of patterns is a lower value. Therefore, this is a clear indication that the pattern obtained from the MPT generates an optimal cost value. The other process was to manually generate charging and discharging patterns for each hour in a way how a fixed control [48] battery storage (connected to a typical real-time control-based hybrid inverter) would react to. Then those patterns were used to obtain cost values for the particular day and then observed whether the values are in a close range of the values obtained by the optimisation program. In this case, also it was evident that the optimisation program generates more feasible results or rather best charging/discharging pattern in order to gain an optimal value for the cost.

More controllability using terminal constraints

67One important factor of using MPT toolbox is the availability of the terminal constraints. This allows the user to assign a constraint value, which should be reached at the end of the control horizon (e.g. at the end of the day).

68For the case study, SOC was used as the terminal constraint. The optimisation model was modified in a way this will generate charging/discharging patterns, which give a pre-defined SOC level at the end of the control horizon while maintaining the objective of reaching an optimal value for the electrical energy cost of the microgrid. This scenario was tested and the results are presented in Figs. 7 and 8.

69According to Fig. 7, the SOC level at the end of the control horizon has reached the pre-defined value, which is 1.0 (100%). This is advantageous if the microgrid does not use a closed loop controller with comparatively longer control horizon, which is capable to adjust the charging/discharging patterns depending on the existing system state and future forecasting. In that case, these terminal constraints can help to maintain the SOC level to a predefined value, e.g. fully charged state, so that the microgrid is ready for another day of operation. Similarly, Fig. 8 shows the charging/discharging pattern when the pre-defined SOC level was assigned as 50%, which leads the electrical energy cost value to AUD$ 0.88 compared to AUD$ 6.88 in the case of SOC equals to 100%.

Closed-loop analyses

70Even though the open loop results are the optimal results for a particular day, for which the generation and load profiles were forecasted at the start of the day, the real profiles change with every hour as the day continues. This will lead to a variation of the optimal results whereas the battery charging/discharging profile remains same for the whole day if the results are taken from the open loop results.

71Closed loop analysis will enable the ability to foresee the future (prediction/receding horizon) and adjust the control output (charging/discharging) to obtain the optimal results on a continuous basis. For the analyses, different scenarios can be considered. In this case, two consecutive days are selected with 24 h prediction horizon.

72The generation and load profiles are kept the same for two days while the charging/discharging profile is generated considering the day ahead. The only feedback used for the closed loop was the SOC of the battery. Fig. 9 shows the results for the closed loop analysis for two days containing the same generation and load profiles. It is illustrated that at the end of the day one (at the 24th hour) the SOC level has been raised to a suitable level in preparation for the next 24 h prediction without any SOC level constraint. To demonstrate the performance of the closed loop controller, another scenario was created with zero solar generation ahead (worst case scenario), for which the system generated a charging/discharging profile that brings the SOC level to a higher level compared to the previous case, as required.

Cost for charging/discharging

73Li-ion batteries tend to have more life span than the other types of batteries. However, the installation of a battery storage system demands associated cost considerations. The operational costs of the battery, especially related to charging/discharging were not initially considered.

74In order to examine the effect of the cost of charging/ discharging, the objective function is changed by adding a cost for charging/discharging of each 1 kWh unit and the associated results are analysed. The cost for charging/discharging is then changed in a range while all the other values and constraints discussed above in the open loop analysis remain the same. The results show the battery goes to an idle mode where it does not charge/discharge further, due to the cost of the charging/discharging. This demonstrates that battery charging/discharging cost, usage of the battery, and export tariff all need to be carefully considered to observe the feasibility of a battery storage system in a microgrid. Table 2 shows the variation of battery usage with different battery cost per 1 kWh usage. It is evident that the usage of the battery goes down even with increments of AUD$ 0.01/kWh and gradually the battery storage system only uses the energy of the pre-charged battery, and then leads to idle operation. This analysis is based on export and import tariffs of AUD$ 0.05/kWh and AUD $ 0.12/kWh, respectively, as acquired from [49]. In Table 2 the values at which battery charge/discharge cost is approximately equal to import/export tariff are highlighted. These two costs may be used when a battery type needs to be selected for a project (most battery manufacturers provide a charging/discharging cost in terms of $/kWh).

75The relationship between export tariff and battery usage was also analysed. Fig. 10 shows the variation of usage of battery storage with the export tariff for each battery cost. There is a significant difference between no allocated cost for battery usage to when battery usage cost was AUD$ 0.01/kWh. Similar behaviour of the battery usage is observed for each case around the point where export tariff equals import tariff (AUD$ 0.12/kWh). However, there was a significant change after battery cost reached AUD$ 0.07/kWh where the battery goes to idle mode (no operation). This continues until the battery comes back to operation when the cost is AUD$ 0.13/kWh. Therefore, the designed battery (100 kWh) for this particular microgrid may be infeasible if the battery cost is within the range AUD$ 0.07-0.12/kWh and the export tariff falls in the range AUD$ 0.00-0.15/kWh. Graphs similar to Fig. 11 may be useful when selecting the battery storage systems for microgrids. Fig. 11 indicates the optimal cost variation for each case and illustrates where each cost variation sits compared to the no battery storage system case. The higher the battery charging/discharging cost, the closer the optimal cost graph gets to the cost surface with no battery storage system. In regions where battery charging/discharging is higher, it can be seen that the optimal cost is higher than to the no battery cost.

76Above initial analyses were mainly focused on the export tariff structures as it is a selective factor for the microgrid customer whereas the import tariff may not differ greatly from utility provider to provider.

77However, the effect of import tariff along with the export tariff together on the optimal cost and the usage of the battery were analysed. For this particular analysis two different battery charging/discharging costs were used.

78Figs. 12 and 13 both show how the MPC open loop controller performs better than the simple battery controller (SBC), which is discussed in [48], as the 'MPC' surface of the figure deviates from both 'No Battery' and 'SBC' surfaces. These figures also show another factor where the SBC poorly performs than the no battery values, in a low import tariff region (especially for the import tariff values lower than the battery charging/discharging values), where the 'SBC' surface emerges through the 'No Battery' surface. According to Fig. 13 the area where the SBC performs poorly compared to the no battery operation has increased with the higher charging/discharging cost.

79Further insight was needed to identify how the battery usage varies with all three factors, i.e. import tariff, export tariff, and charging/discharging cost. Fig. 14 illustrates how the battery usage has affected by the three factors. The battery usage drops with the increase of the import tariff and levels into an idle value where the battery is limited to operate only to that kWh value (166 kWh). Then, when the battery charging/discharging cost is increased to AUD$ 0.05, the battery drops its usage to the idle value at a lower value of import tariff compared to AUD$ 0.01 charging/ discharging cost. These findings further emphasise the benefit of using the MPC method, as it generates optimal results compared to SBC or no battery operation.

Conclusion

80The objective of this paper was to discuss the pathway of developing an optimisation platform and the associated case study results. A descriptive section is included in regard to defining a real controller on the HYSDEL and solving the optimisation problem using MPT, as it is often one of the bottlenecks associated with conditional constraints. This is required when different import and export tariff, as practically exists, are used in the controller. The case study has highlighted a number of practical issues with implementing the optimisation platform. Terminal constraints were used to obtain preferred horizon SOC levels for the battery, thereby ensuring self-sufficiency in case of no local generation in the microgrid.

81Closed loop results have proved the controller can be used when taking into account existing system state and future predictions of load and generation. The effects of using the battery cost as a constraint in the optimisation model can establish the feasibility of selecting different types of batteries with different charging/discharging costs. An extension of this work will be to assign TOU tariffs as opposed to flat-rate tariffs.

참고문헌 46건

  1. Microgrids IEEE Power and Energy Magazine · Institute of Electrical and Electronics Engineers · 2007 10.1109/mpae.2007.376583
  2. Multi-Parametric Toolbox 3.0 2022 European Control Conference (ECC) · 2013 10.23919/ecc.2013.6669862
  3. Fault tolerant predictive control design for reliable microgrid energy management under uncertainties Energy · Elsevier BV · 2015 10.1016/j.energy.2015.08.009
  4. Computational optimization techniques applied to microgrids planning: A review Renewable and Sustainable Energy Reviews · Elsevier BV · 2015 10.1016/j.rser.2015.04.025
  5. Stochastic-Predictive Energy Management System for Isolated Microgrids IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2015 10.1109/tsg.2015.2469631
  6. Microgrids research: A review of experimental microgrids and test systems Renewable and Sustainable Energy Reviews · Elsevier BV · 2010 10.1016/j.rser.2010.09.041
  7. Optimal control of distributed energy resources using model predictive control 2012 10.1109/pesgm.2012.6345596
  8. Energy efficient buildings facilitated by micro grid 2010 10.1109/pes.2010.5590040
  9. A model predictive control framework for reliable microgrid energy management International Journal of Electrical Power & Energy Systems · Elsevier BV · 2014 10.1016/j.ijepes.2014.03.017
  10. Trends in Microgrid Control IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2014 10.1109/tsg.2013.2295514
  11. A Multiobjective Approach to Multimicrogrid System Design IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2015 10.1109/tsg.2015.2399497
  12. Optimization classification, algorithms and tools for renewable energy: A review Renewable and Sustainable Energy Reviews · Elsevier BV · 2014 10.1016/j.rser.2014.07.120
  13. Operation Optimization of Standalone Microgrids Considering Lifetime Characteristics of Battery Energy Storage System IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2013 10.1109/tste.2013.2248400
  14. Battery energy storage technology for power systems—An overview Electric Power Systems Research · Elsevier BV · 2008 10.1016/j.epsr.2008.09.017
  15. Energy efficient microgrid management using Model Predictive Control 2011 10.1109/cdc.2011.6161246
  16. Microgrids of Commercial Buildings: Strategies to Manage Mode Transfer From Grid Connected to Islanded Mode IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2014 10.1109/tste.2014.2305657
  17. Optimal Economical Schedule of Hydrogen-Based Microgrids With Hybrid Storage Using Model Predictive Control IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2015 10.1109/tie.2015.2412524
  18. Using a MILP model for battery bank operation in the &amp;#x201C;White tariff&amp;#x201D; Brazilian context 2014 10.1109/irec.2014.6826921
  19. Novel control strategy for operation of energy storage in a renewable energy-based microgrid 2015 10.1109/aupec.2015.7324891
  20. Energy-Efficient Buildings Facilitated by Microgrid IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2010 10.1109/tsg.2010.2083705
  21. HYSDEL—A Tool for Generating Computational Hybrid Models for Analysis and Synthesis Problems IEEE Transactions on Control Systems Technology · Institute of Electrical and Electronics Engineers · 2004 10.1109/tcst.2004.824309
  22. Power management using model predictive control in a hydrogen-based microgrid 2012 10.1109/iecon.2012.6389059
  23. Model Predictive Control Design: New Trends and Tools 2006 10.1109/cdc.2006.377490
  24. Balancing autonomy and utilization of solar power and battery storage for demand based microgrids Journal of Power Sources · Elsevier BV · 2015 10.1016/j.jpowsour.2015.01.015
  25. Centralized Control for Optimizing Microgrids Operation IEEE Transactions on Energy Conversion · Institute of Electrical and Electronics Engineers · 2008 10.1109/tec.2007.914686
  26. A MPC Operation Method for A Photovoltaic System with Batteries IFAC-PapersOnLine · Elsevier BV · 2015 10.1016/j.ifacol.2015.09.068
  27. Nonlinear predictive energy management of residential buildings with photovoltaics &amp; batteries Journal of Power Sources · Elsevier BV · 2016 10.1016/j.jpowsour.2016.06.076
  28. Hybrid Model Predictive Control of a Residential HVAC System with PVT Energy Generation and PCM Thermal Storage Energy Procedia · Elsevier BV · 2015 10.1016/j.egypro.2015.12.192
  29. Microgrids management IEEE Power and Energy Magazine · Institute of Electrical and Electronics Engineers · 2008 10.1109/mpe.2008.918702
  30. Optimal Operation for Community-Based Multi-Party Microgrid in Grid-Connected and Islanded Modes IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2016 10.1109/tsg.2016.2564645
  31. Optimal energy management of a small-size building via hybrid model predictive control Energy and Buildings · Elsevier BV · 2017 10.1016/j.enbuild.2017.01.045
  32. Ramp-Limited Optimal Dispatch Strategy for PV-Embedded Microgrid IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2017 10.1109/tpwrs.2017.2670920
  33. A two-stage optimization and control for CCHP microgrid energy management Applied Thermal Engineering · Elsevier BV · 2017 10.1016/j.applthermaleng.2017.05.188
  34. Real-time Electricity Pricing: TOU-MPC Based Energy Management for Commercial Buildings Energy Procedia · Elsevier BV · 2017 10.1016/j.egypro.2017.03.781
  35. Optimal residential model predictive control energy management performance with PV microgeneration Computers & Operations Research · Elsevier BV · 2017 10.1016/j.cor.2017.12.003
  36. Lithium-Ion Battery Storage for the Grid—A Review of Stationary Battery Storage System Design Tailored for Applications in Modern Power Grids Energies · Multidisciplinary Digital Publishing Institute · 2017 10.3390/en10122107
  37. Optimal operation of hybrid PV-battery system considering grid scheduled blackouts and battery lifetime Solar Energy · Elsevier BV · 2018 10.1016/j.solener.2017.12.022
  38. Stochastic optimal control of a domestic microgrid equipped with solar panel and battery arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1801.06479
  39. Model Predictive Control (MPC) for Enhancing Building and HVAC System Energy Efficiency: Problem Formulation, Applications and Opportunities Energies · Multidisciplinary Digital Publishing Institute · 2018 10.3390/en11030631
  40. Microgrids energy management systems: A critical review on methods, solutions, and prospects Applied Energy · Elsevier BV · 2018 10.1016/j.apenergy.2018.04.103
  41. A stochastic MPC based approach to integrated energy management in microgrids Sustainable Cities and Society · Elsevier BV · 2018 10.1016/j.scs.2018.05.044
  42. A model predictive control based peak shaving application of battery for a household with photovoltaic system in a rural distribution grid Sustainable Energy Grids and Networks · Elsevier BV · 2018 10.1016/j.segan.2018.05.001
  43. Techno-economic analysis of a hybrid PV-CSP system with thermal energy storage applied to isolated microgrids Solar Energy · Elsevier BV · 2018 10.1016/j.solener.2018.08.078
  44. MPC-based approach for online demand side and storage system management in market based wind integrated power systems International Journal of Electrical Power & Energy Systems · Elsevier BV · 2018 10.1016/j.ijepes.2018.09.041
  45. Aging-aware predictive control of PV-battery assets in buildings Applied Energy · Elsevier BV · 2018 10.1016/j.apenergy.2018.12.003
  46. A Multiobjective Approach to Multimicrogrid System Design IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2015 10.1109/tsg.2015.2399497