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

An Optimal Energy Management Technique Using the $\epsilon$ -Constraint Method for Grid-Tied and Stand-Alone Battery-Based Microgrids

관련 수소연료전지 · (7) MEA(막전극접합체)

기본 정보

저자
  1. Elian João Agnoletto — São Carlos School of Engineering, University of São Paulo, São Carlos, Brazil
  2. Daniel Silva de Castro — São Carlos School of Engineering, University of São Paulo, São Carlos, Brazil
  3. Rodolpho V. A. Neves — Department of Electrical Engineering, Federal University of Viçosa, Viçosa, Brazil
  4. Ricardo Q. Machado — São Carlos School of Engineering, University of São Paulo, São Carlos, Brazil
  5. Vilma A. Oliveira — São Carlos School of Engineering, University of São Paulo, São Carlos, Brazil
DOI
10.1109/access.2019.2954050
저널
IEEE Access
발행년도
2019
발행기관
Institute of Electrical and Electronics Engineers
피인용수
20
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2019.2954050
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W2991476682

평가 내용

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

초록

The intermittent characteristics of microgrids (MGs) have motivated the development of energy management systems (EMSs) in order to optimize the use of distributed energy resources. In current studies, the implementation of an EMS followed by experimental-based analyses for both grid-tied and stand-alone MG operation modes is often neglected. Additionally, the design of a management strategy that is capable of preserving the storage device lifetime in battery-based MGs using a power gradient approach is hardly seen in the literature. In this context, this work presents the application of an EMS for battery-based MGs which is suitable for both grid-tied and stand-alone operation modes. The proposed EMS is formulated as an optimal power flow (OPF) problem using the ε-constraint method which is responsible for computing the current references used by the EMS to control the MG sources. In the optimization problem, the total generation cost is minimized such that the active power losses are kept within pre-established boundaries, and a battery management strategy based on power gradient limitation is included. Finally, the effectiveness of the proposed EMS is evaluated by two scenarios which enable detailed analyses and validation. The first considers a dispatchable and a non-dispatchable source, whereas the second a dispatchable source and a storage device. The experimental results showed that the proposed EMS is efficient in both operation modes and is also capable of smoothing the state of charge (SoC) behavior of the storage device.

본문 61,224자

본문 펼치기
Received October 31, 2019, accepted November 10, 2019, date of current version November 26, 2019. _Digital Object Identifier 10.1109/ACCESS.2019.2954050_ # An Optimal Energy Management Technique Using the ϵ -Constraint Method for Grid-Tied and Stand-Alone Battery-Based Microgrids ELIAN J. AGNOLETTO 1, DANIEL SILVA DE CASTRO 1, RODOLPHO V. A. NEVES 2, RICARDO QUADROS MACHADO 1, (Senior Member, IEEE), AND VILMA A. OLIVEIRA 1, (Member, IEEE) 1Sao Carlos School of Engineering, University of S˜ ao Paulo, S˜ ao Carlos 13566-590, Brazil˜ 2Department of Electrical Engineering, Federal University of Viçosa, Viçosa 36570-900, Brazil Corresponding author: Elian J. Agnoletto (elianmt@usp.br) This work was supported in part by the Fundação de Amparo à Pesquisa do Estado de São Paulo (FAPESP) under Grant 2013/20721-4, Grant 2014/50851-0, and Grant 2016/25017-1, in part by the Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq) under Grant 233605/2014-2 and Grant 305892/2017-7, and in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (CAPES) under Finance Code 001 and Grant 88881.030370/2013-0. ABSTRACT The intermittent characteristics of microgrids (MGs) have motivated the development of energy management systems (EMSs) in order to optimize the use of distributed energy resources. In current studies, the implementation of an EMS followed by experimental-based analyses for both grid-tied and stand-alone MG operation modes is often neglected. Additionally, the design of a management strategy that is capable of preserving the storage device lifetime in battery-based MGs using a power gradient approach is hardly seen in the literature. In this context, this work presents the application of an EMS for battery-based MGs which is suitable for both grid-tied and stand-alone operation modes. The proposed EMS is formulated as an optimal power flow (OPF) problem using the _ϵ_ -constraint method which is responsible for computing the current references used by the EMS to control the MG sources. In the optimization problem, the total generation cost is minimized such that the active power losses are kept within pre-established boundaries, and a battery management strategy based on power gradient limitation is included. Finally, the effectiveness of the proposed EMS is evaluated by two scenarios which enable detailed analyses and validation. The first considers a dispatchable and a non-dispatchable source, whereas the second a dispatchable source and a storage device. The experimental results showed that the proposed EMS is efficient in both operation modes and is also capable of smoothing the state of charge ( _SoC_ ) behavior of the storage device. INDEX TERMS Battery power gradient, distributed generation, energy management system, microgrid, optimal power flow, storage device. I. INTRODUCTION The connection of distributed generators (DGs) to electrical power systems and the renewable energy sources intermittent characteristics have motivated the study of energy management strategies to optimize microgrids (MGs) operations, therefore improving DGs performance in an intelligent, safe, reliable and coordinated way [1]. The control concepts applied to MGs are established hierarchically through the primary, secondary and tertiary levels. The energy management is executed at the tertiary level by The associate editor coordinating the review of this manuscript and approving it for publication was Zhen Li. solving an optimal power flow (OPF) problem which optimizes the energy resources usage [2]. This is performed based on an objective function differentiation. Typically, the OPF considers power balance constraints, emission of pollutants, fuel cost, performance, security boundaries, power sharing and stability [1], [3]–[9]. Basically, an energy management system (EMS) is addressed following either a decentralized or a centralized architecture. In the former, the management strategy runs locally with slow communication links. In the latter, on the other hand, it operates on the highest control layer and fast communication links are required [10]. The advantage of the centralized approach is that the EMS configuration provides broad observability of the MGs, which promotes optimal overall operation in terms of voltage and current (amplitude and phase) minimal requirements to run an optimization algorithm which computes each operating point that will be sent to the DGs. In terms of MGs applications, it is important to state that although the centralized approach incorporates the aforementioned advantages, the data communication link between the control unit and the management unit must be implemented in a way to avoid unnecessary power consumption and data congestion, leading to low efficiency and additional delays, thus compromising the EMS performance. Depending on the amount of data demanded by the management unit and the MG size, the event trigger or data-driven strategy for data processing and communication can be suitably used to reduce or overcome these issues [11], [12]. Unfortunately, there are conditions where the centralized EMS algorithm does not consider connection impedances among sources, in which case the equality constraints are solely described by the power balance at the point of common coupling (PCC) [13]–[16]. However, when impedances are considered, the equality constraints are given by power flow equations and the MG buses voltage constraints can be introduced into the OPF formulation [6], [9], [17]. In this way, the optimization algorithm is capable of finding solutions in which the voltages are kept within the limits established according to power quality standards. In general, the OPF problem optimizes multi-objective functions using heuristic-based methods, such as genetic algorithm, ant colony and particle swarm, or even classical methods as weighted sum and _ϵ_ -constraint [6], [7], [9], [16], [18]–[20]. The heuristic-based methods are procedures in which the gradient information is not used into the searching process [18]. Although these methods find feasible solutions for the objective function, they do not ensure optimality [21]. Some proposed algorithms solve the OPF problem by using the weighted sum method that assigns weights for the objectives and transforms the multi-objective searching into a mono-objective problem [9]. Even though weighted sum methods are intuitive and easy to approach, it does not find the optimal Pareto’s solutions when the problem is non-convex, which is the case of the OPF [18]. In addition, the normalization and the weights assigned to each function have to be performed accurately, since it is important that the weights express the different objectives real effect [18]. The _ϵ_ -constraint method is an alternative solution to reduce the difficulties of the weighted sum when solving non-convex problems. This method optimizes one objective and considers the others as inequality constraints [18]. The MGs operate in grid-tied and stand-alone modes. Nevertheless, in the majority of papers only one of them is evaluated, where the droop controller technique is usually employed to ensure power sharing among the DGs and the main grid [4], [9], [14], [22], [23]. However, its disadvantage appears when the MG is in stand-alone mode, where a secondary control loop is required to correct the steady-state voltage and frequency deviations caused by the droop controllers. Alternatively, a switching control strategy can be used as another technique to keep MGs in proper operation. In this case, the operation in the grid-tied mode is performed by regulating the DGs output currents injected into the grid, whereas in the stand-alone mode the voltage and frequency regulations are performed according to a master DG with slave DGs operating in current control mode [16]. This approach is addressed in [16], [24] and [25]. However, the power flow equations and battery power gradient are not considered as constraints, what leads to an untied bus voltage and battery lifetime degradation, respectively. As for batteries, the power gradient, the large state of charge ( _SoC_ ) variations (>50%), the charging and discharging cycles and the idle-time are commonly responsible to speed-up the battery degradation [8], [26]–[28]. An effective solution for saving the device lifetime, which is usually approached in the literature, is based on the battery power gradient limitation introduced in the objective function or in the optimization problem constraints [8], [17]. In [17], a quadratic term was inserted into the objective function to penalize high rates of power variation in the storage devices. Nevertheless, this type of procedure underuses the battery power delivery capability and thus increases operational costs. In order to overcome this drawback, an inequality constraint that limits the power gradient can be included in the OPF problem formulation [8]. However, this constraint alone does not ensure the optimization algorithm convergence along all the operating points, specifically when the _SoC_ reaches its minimum or maximum thresholds. This work proposes an optimal centralized EMS for grid-tied and stand-alone MGs composed by dispatchable and non-dispatchable sources, as well as energy storage devices. In a way to reduce the weighted sum method implementation difficulties, which are related to the weights definition and the objectives normalization values, the EMS optimization algorithm is based on the solution of an OPF problem performed according to the _ϵ_ -constraint method. This algorithm minimizes the MG total generating cost and keeps the active power losses below a pre-established value. Since batteries are expensive devices in MGs, an additional power gradient constraint which is set to prevent its degradation and thus preserve their lifetime was introduced in the optimization problem formulation. Experimental tests were carried out to evaluate the proposed EMS in terms of MG energy management and effectiveness in reducing battery degradation by avoiding high battery power and _SoC_ gradients. II. SYSTEM DESCRIPTION The MG studied in this work is composed by two three-phase voltage source inverters (VSIs). These VSIs are connected to the main grid through LCL filters, leading to the three buses shown in Fig. 1. The buses 1, 2 and 3 correspond to the connection point of the two capacitors and the PCC, respectively. The FIGURE 1. Microgrid general diagram with the proposed EMS. three-phase currents of the LCL filters flowing through the input inductors ( _Li_ ) are _i_ <sup>_abc_</sup> _iinv_ 1 <sup>and</sup> <sup>_i_</sup> _i_ <sup>_abc_</sup> _inv_ 2 <sup>, whereas those flowing</sup> through the output inductors ( _Lo_ ) are _i_ <sup>_abc_</sup> _oinv_ 1 <sup>and</sup> <sup>_i_</sup> _o_ <sup>_abc_</sup> _inv_ 2 <sup>.</sup> <sup>In</sup> <sup>the</sup> proposed approach, the three-phase voltages measured on buses 1, 2 and 3 correspond to _v_ <sup>_abc_</sup> 1 <sup>,</sup> <sup>_v_</sup> 2 <sup>_abc_</sup> and _v_ <sup>_abc_</sup> 3 <sup>,</sup> <sup>and</sup> the current flowing through the grid is represented by _i_ <sup>_abc_</sup> _grid_ <sup>.</sup> Local loads are connected to the bus 3 and their three-phase currents are denoted as _i_ <sup>_abc_</sup> _load_ <sup>.</sup> <sup>Moreover,</sup> <sup>the</sup> <sup>voltage</sup> <sup>_vabc_</sup> _grid_ <sup>is</sup> used to synchronize and connect the inverters to the grid. The circuit breakers _K_ 1 and _K_ 2 can be closed to form the MG, while the circuit breaker _Kgrid_ is responsible for switching the MG between grid-tied and stand-alone operation modes. <sup>_abc_</sup> _iinv_ 1 <sup>and</sup> <sup>_i_</sup> _i_ <sup>_abc_</sup> _inv_ 2 <sup>_abc_</sup> _oinv_ 1 <sup>and</sup> <sup>_i_</sup> _o_ <sup>_abc_</sup> _inv_ <sup>_abc_</sup> 1 <sup>,</sup> <sup>_v_</sup> 2 <sup>_abc_</sup> and _v_ <sup>_abc_</sup> 3 _i_ <sup>_abc_</sup> _load_ <sup>.</sup> <sup>Moreover,</sup> <sup>the</sup> <sup>voltage</sup> <sup>_vabc_</sup> _grid_ The design of controllers is performed according to the procedures shown in [29]. III. PROPOSED ENERGY MANAGEMENT SYSTEM The proposed EMS structure is composed by a data processing unit and a control unit, both running at a frequency of 10.8 kHz, along with a low-frequency energy management unit which runs at 0.1 Hz as illustrated in Fig. 1. The EMS operates by updating the MG energy resources references with a fixed time-step, named as _TEMS_, in an online scheme. The solution of an optimization problem yields proper values for the references of the EMS. FIGURE 2. EMS real-time processing scheme. Considering that _N_ indicates the current iteration of the EMS after _N TEMS_ seconds, Fig. 2 illustrates how the entire algorithm is processed in real-time. The upward arrows represent the moments where each iteration starts. At the beginning of each iteration, the processor takes _Tw_ seconds to write the previous iteration optimization results in the variables associated with the inverters reference currents. In the sequence, voltage and current measurements are acquired and the related RMS values are computed, which lasts up to _Tacq_ seconds. The current iteration optimization step is then performed in the interval _Topt_ seconds, which is based on the measured values. The corresponding results are written at the beginning of the next iteration. From Fig. 2, it is possible to conclude that the quantity _TEMS_ - ( _Tw_ + _Tacq_ + _Topt_ ) (1) gives the idle time that prevents the EMS algorithm from losing its real-time synchronization. In this case, the constraint _Tw_ + _Tacq_ + _Topt_ ≤ _TEMS_ (2) must be observed to ensure the EMS proper operation. _A._ _DATA PROCESSING UNIT_ In this unit, the measured data are processed, the control signals are calculated and sent to the inverters, and the commands are sent to the breakers _K_ 1, _K_ 2 and _Kgrid_ . It contains a processor board DS1007, which is responsible for processing the entire algorithm, a high-speed analog-todigital board DS2004 for analog signals acquisition, and a digital waveform output board DS5101, which is used to generate the pulse width modulation (PWM) signals to the inverters. _B._ _CONTROL UNIT_ The control unit is embedded in the real-time platform dSPACE 1007, where the signal conditioning, the second order generalized integrator (SOGI)-based fundamental frequency estimation algorithm, the frequency locked loop (FLL) algorithm and the proportional-resonant controllers (PRs) are run along with the RMS and average currents, voltages and phases values computation. For all control steps, the Simulink/MATLAB environment is used to produce the system description file (SDF) according to the MG description. _signal_ 1 and _signal_ 2, denoted as _φsignal_ <sup>(1)</sup> 1− _signal_ 2 <sup>, are calculated</sup> in the stationary reference frame ( _αβ_ ) by the SOGI algorithm. In order to obtain the grid voltage fundamental frequency ( _ωv_ <sup>(1)</sup> _grid_ <sup>), a FLL procedure is used along with the SOGI, form-</sup> ing the SOGI-FLL. Further details about SOGI and FLL structures can be obtained in [30]. The inverters control loops are implemented in the _αβ_ frame, as presented in Fig. 4. The control structure is based on the PR voltage and current controllers, which can be designed following the procedure in [31]. When the inverters operate in the voltage control mode, the voltage across the LCL filter FIGURE 3. Calculating the angular frequency and phase difference between two signals. The buses 1, 2 and 3 voltages measurements ( _v_ ), currents measurements ( _i_ ) and phases displacements ( _φ_ ) are defined as _v_ = [ _v_ <sup>(1)</sup> 1 <sup>(1)</sup> 2 _v_ <sup>(1)</sup> 3 <sup>(1)</sup> 3 <sup>]</sup> (3) <sup>(1)</sup> 1 _v_ <sup>(1)</sup> 2 <sup>(1)</sup> _oinv_ 1 <sup>_i_</sup> <sup>(1)</sup> _oinv_ _φv_ <sup>(1)</sup> 1 <sup>_φ_</sup> _v_ <sup>(1)</sup> 2 <sup>_i_</sup> _load_ <sup>(1)</sup> <sup>_i_</sup> _grid_ <sup>(1)</sup> _v_ <sup>(1)</sup> 3 <sup>_φ_</sup> _i_ <sup>(1)</sup> _oinv_ _i_ <sup>(1)</sup> _oinv_ 2 <sup>_φ_</sup> _i_ <sup>(1)</sup> _grid_ _i_ <sup>(1)</sup> _grid_ <sup>_φ_</sup> _i_ <sup>(1)</sup> _load_ _i_ = [ _i_ <sup>(1)</sup> _oinv_ <sup>_i_</sup> <sup>(1)</sup> _oinv_ 2 <sup>_i_</sup> _load_ <sup>(1)</sup> <sup>_i_</sup> _grid_ <sup>(1)</sup> <sup>]</sup> (4) _φ_ = [ _φv_ <sup>(1)</sup> 1 _v_ <sup>(1)</sup> 2 <sup>_φ_</sup> _v_ <sup>(1)</sup> 3 _iload_ _i_ <sup>(1)</sup> _oinv_ 1 <sup>_φ_</sup> _i_ <sup>(1)</sup> _oinv_ × _φv_ <sup>(1)</sup> 1 _v_ <sup>(1)</sup> 1− _ioinv_ 1 <sup>_φ_</sup> _v_ <sup>(1)</sup> 2 _v_ <sup>(1)</sup> 2− _ioinv_ 2 <sup>_φ_</sup> _v_ <sup>(1)</sup> 3 _v_ <sup>(1)</sup> 3− _igrid_ <sup>_φ_</sup> _v_ <sup>(1)</sup> 3 (5) _v_ <sup>(1)</sup> 3− _iload_ <sup>]</sup> where _φv_ <sup>(1)</sup> 1 _v_ <sup>(1)</sup> 1− _ioinv_ 1 <sup>and</sup> <sup>_φ_</sup> _v_ <sup>(1)</sup> 2− where _φv_ <sup>(1)</sup> 1− _ioinv_ 1 <sup>and</sup> <sup>_φ_</sup> _v_ <sup>(1)</sup> 2− _ioinv_ 2 <sup>are</sup> <sup>the</sup> <sup>phases</sup> <sup>between</sup> <sup>the</sup> inverters 1 and 2 capacitors voltages and inductors _Lo_ currents, respectively. The phase displacements _φ_ <sup>(1)</sup> _v_ 3− _igrid_ <sup>and</sup> _φ_ <sup>(1)</sup> _v_ 3 <sup>(1)</sup> _v_ 3− _igrid_ <sup>and</sup> _φ_ <sup>(1)</sup> _v_ 3− _iload_ <sup>are between the PCC voltage and the grid and load</sup> currents, respectively. Furthermore, the phase displacements _φv_ <sup>(1)</sup> 1 <sup>,</sup> <sup>_φ_</sup> _v_ <sup>(1)</sup> 2 <sup>,</sup> <sup>_φ_</sup> _v_ <sup>(1)</sup> 3 <sup>,</sup> <sup>_φ_</sup> _i_ <sup>(1)</sup> _oinv_ 1 <sup>,</sup> <sup>_φ_</sup> _i_ <sup>(1)</sup> _oinv_ 2 <sup>,</sup> <sup>_φ_</sup> _i_ <sup>(1)</sup> _grid_ <sup>and</sup> <sup>_φ_</sup> _i_ <sup>(1)</sup> _load_ <sup>are</sup> <sup>referenced</sup> _v_ <sup>(1)</sup> 1 <sup>,</sup> <sup>_φ_</sup> _v_ <sup>(1)</sup> 2 _v_ <sup>(1)</sup> 3 <sup>,</sup> <sup>_φ_</sup> _i_ <sup>(1)</sup> _oinv_ _v_ <sup>(1)</sup> 2 <sup>,</sup> <sup>_φ_</sup> _v_ <sup>(1)</sup> 3 _i_ <sup>(1)</sup> _oinv_ 1 <sup>,</sup> <sup>_φ_</sup> _i_ <sup>(1)</sup> _oinv_ _i_ <sup>(1)</sup> _oinv_ 2 <sup>,</sup> <sup>_φ_</sup> _i_ <sup>(1)</sup> _grid_ _i_ <sup>(1)</sup> _grid_ <sup>and</sup> <sup>_φ_</sup> _i_ <sup>(1)</sup> _load_ _i_ <sup>(1)</sup> _load_ <sup>are</sup> <sup>referenced</sup> to the signal _v_ <sup>(1)</sup> _grid_ to the signal _v_ <sup>(1)</sup> _grid_ <sup>.</sup> <sup>The</sup> <sup>index</sup> <sup>(1)</sup> <sup>refers</sup> <sup>to</sup> <sup>the</sup> <sup>fundamental</sup> frequency. From _v_, _i_ and _φ_, it is possible to calculate the RMS voltages on each bus, the RMS currents and the average phase displacements, which are denoted as _V_ = [ _V_ 1 _V_ 2 _V_ 3] (6) _I_ = [ _Ioinv_ 1 _Ioinv_ 1 _Iload_ _Igrid_ ] (7) _�_ = [ _�v_ 1 _�v_ 2 _�v_ 3 _�ioinv_ 1 _�ioinv_ 2 _�igrid_ _�iload_ × _�v_ 1− _ioinv_ 1 _�v_ 2− _ioinv_ 2 _�v_ 3− _igrid_ _�v_ 3− _iload_ ] _._ (8) As shown in Fig. 3, the extraction of the angular frequency, denoted as _ω_ <sup>(1)</sup> _signal_ 1 <sup>, and the phase difference between</sup> _signal_ 1 and _signal_ 2, denoted as _φsignal_ <sup>(1)</sup> 1− _signal_ 2 <sup>, are calculated</sup> FIGURE 4. Inverter control loops in the _αβ_ reference frames. capacitor is adjusted and synchronized with the main grid according to the references ~~√~~ _v_ <sup>_α_</sup> <sup>∗</sup> = _v_ <sup>_β_</sup> <sup>∗</sup> = 2 _V_ <sup>∗</sup> _cos_ ( _ωv_ <sup>(1)</sup> _grid_ <sup>_t_</sup> <sup>)</sup> (9) 2 _V_ <sup>∗</sup> _sin_ ( _ωv_ <sup>(1)</sup> _grid_ <sup>_t_</sup> <sup>)</sup> (10) ~~√~~ in which _V_ <sup>∗</sup> is the root mean square (RMS) phase-to-neutral grid voltage reference value. In addition, the voltage control mode is also used to provides MG voltage and frequency regulations in the stand-alone mode. In the grid-tied mode, both inverters are set to operate in current control mode, since the voltage and frequency are defined by the main grid. In the current control mode, the current references are calculated by optimization, which correspond to _i_ <sup>(1)</sup> _o_ <sup>_t_</sup> <sup>+</sup> <sup>_�_</sup> _i_ <sup>∗</sup> _o_ _i_ <sup>(1)</sup> _o_ <sup>_t_</sup> <sup>+</sup> <sup>_�_</sup> _i_ <sup>∗</sup> _o_ _i_ <sup>_α_</sup> _o_ <sup>∗</sup> = _i_ <sup>∗</sup> _o_ <sup>)</sup> (11) _i_ <sup>∗</sup> _o_ <sup>)</sup> (12) and, for the stand-alone mode, it is _x_ 0( _sta_ ) = [ _Pinv_ 1 _Qinv_ 1 _V_ 1 _�v_ 1 _V_ 3 _�v_ 3 × _Pinv_ 2 _Qinv_ 2 _V_ 2 _�v_ 2 _SoC_ ] _._ (16) The vector _x_ 0 corresponds to the system real operating point at the moment that the optimization is performed. After the vector _x_ 0 is updated, the OPF problem is executed according to the power flow equations between buses _j_ and _k_, which are _Pjk_ = _Gjk_ _Vj_ <sup>2</sup> <sup>−</sup> <sup>_Gjk_</sup> <sup>_VjVk_</sup> <sup>_cos_</sup> <sup>(</sup> <sup>_�v_</sup> _j_ <sup>−</sup> <sup>_�v_</sup> _k_ <sup>)</sup> + − _Bjk_ _VjVk_ _sen_ ( _�vj_ - _�vk_ ) (17) _Qjk_ = - _Bjk_ _Vj_ <sup>2</sup> <sup>+</sup> <sup>_Bjk_</sup> <sup>_VjVk_</sup> <sup>_cos_</sup> <sup>(</sup> <sup>_�v_</sup> _j_ <sup>−</sup> <sup>_�v_</sup> _k_ <sup>)</sup> + − _Gjk_ _VjVk_ _sen_ ( _�vj_ - _�vk_ ) (18) where _Gjk_ and _Bjk_ are the line conductance and susceptance between _j_ and _k_ buses, respectively. Other inputs of the OPF problem, which are properly discussed in Section V, are the renewable source profile along with the inverters and the grid generation fees, denoted as _c_ 1, _c_ 2 and _c_ 3, respectively. If the convergence of the OPF reaches the specified tolerance, the algorithm computes the RMS current and phase displacement references for each inverter, yielding the optimization problem solution denoted as _x_ . It is important to state that the OPF is executed by the fmincon MATLAB solver, which finds the minimum of a constrained nonlinear multi-variable function. For solving the optimization problem, the sequential quadratic programming (SQP) algorithm is used. At each iteration, an approximation of the Hessian of the Lagrangian function using a quasi-Newton updating rule is performed. This is then used to generate a quadratic programming sub-problem whose solution is employed to form a search direction for a line search procedure. In this way, the SQP algorithm implemented in this work preserves the optimal characteristic of the computed solutions since it minimizes the Lagrangian by following decreasing directions until the first order optimality measure reaches a given tolerance. More details about the SQP algorithm can be found in [32]. The optimization horizon defined for the energy management is named as _H_, the control level sampling time as _Ts_ and the renewable source profile sampling rate as _Treal_ . The management unit is scaled down from _Treal_ to _TEMS_, allowing the optimization to run _H_ _/Treal_ times across the period _H_, according to aux in Fig. 5. The values _Treal_ and _H_ are expressed in hours, whereas _TEMS_ and _Ts_ in seconds. For the purpose of keeping a consistent updating time of _TEMS_ seconds, the algorithm waits until the cont counter reaches the defined _TEMS_ _/Ts_ value, which allows the references to be written in the SDF. As a protection mechanism, if the OPF problem converges to an infeasible point, the algorithm maintains the current references previous values. As for the communication link, the data traffic between the control unit and the management unit is established only by the RMS voltages on each bus, the RMS currents and _i_ <sup>_β_</sup> _o_ <sup>∗</sup> = ~~√~~ ~~√~~ 2 _Io_ <sup>∗</sup> <sup>_cos_</sup> <sup>(</sup> <sup>_ω_</sup> _i_ <sup>(1)</sup> _o_ 2 _Io_ <sup>∗</sup> <sup>_sin_</sup> <sup>(</sup> <sup>_ω_</sup> _i_ <sup>(1)</sup> _o_ where _ω_ <sup>(1)</sup> _io_ where _ω_ <sup>(1)</sup> is the fundamental angular frequency of the _io_ current flowing through the inductor _Lo_, extracted from the SOGI-FLL algorithm, _Io_ <sup>∗</sup> <sup>and</sup> <sup>_�_</sup> <sup>∗</sup> _io_ <sup>are</sup> <sup>the</sup> <sup>OPF</sup> <sup>solu-</sup> tion, obtained in the management unit, which is described next. _o_ <sup>∗</sup> <sup>and</sup> <sup>_�_</sup> <sup>∗</sup> _io_ _C._ _MANAGEMENT UNIT_ The optimization algorithm, responsible for the MG energy management, runs on this unit. It is implemented in a MATLAB script and yields the solution of the OPF problem established according to the flowchart in Fig. 5. From the RMS and the average values, denoted by _V_, _I_ and _�_, the active and reactive powers of the inverters, the load and the main grid, which are named as _P_ = [ _Pinv_ 1 _Pinv_ 2 _Pload_ _Pgrid_ ] (13) _Q_ = [ _Qinv_ 1 _Qinv_ 2 _Qload_ _Qgrid_ ] (14) can be calculated. From breaker _Kgrid_ current state, the MG operation mode is checked. In the sequence, the optimization problem initial conditions vector, which is denoted as _x_ 0, is updated by using (6), (7), (8), (13) and (14). For the grid-tied mode, _x_ 0 is given as _x_ 0( _grt_ ) = [ _Pinv_ 1 _Qinv_ 1 _Pgrid_ _Qgrid_ _V_ 1 _�v_ 1 × _V_ 3 _�v_ 3 _Pinv_ 2 _Qinv_ 2 _V_ 2 _�v_ 2 _SoC_ ] (15) FIGURE 5. MG energy management flowchart. the average phase displacements, which are denoted as _V_, _I_ and _�_, respectively. In this work, the amount of data in the communication link for the MG studied is small, hence data congestion and additional delays are not introduced by the proposed EMS implementation strategy. Nevertheless, if vast communication is required, the event trigger or data-driven strategy presented in [11] and [12] are interesting solutions to successfully address communication issues. IV. OPTIMIZATION PROBLEM FORMULATION The optimization problem is formulated according to a main objective function, the _m_ <sup>_th_</sup> objective function, the equality and inequality constraints, which are denoted as _f_ 1( _x_ ), _fm_ ( _x_ ), _ceq_ ( _x_ ) and _c_ ( _x_ ), respectively. It is important to state that both the equality and inequality constraints are responsible for establishing the system behavior. The optimization method used in this work is the _ϵ_ -constraint method, which allows to treat a problem with multiple objectives in a mono-objective way. The optimization problem is thus formulated as follows [18]: Minimize _f_ 1( _x_ ) such that _fm_ ( _x_ ) ≤ _ϵm,_ _m_ = 2 _,_ 3 _, . . ., n_ _ceq_ ( _x_ ) = 0 _c_ ( _x_ ) ≤ 0 where _ϵm_ is the _m_ <sup>_th_</sup> objective function upper limit and _n_ is the number of objectives. In the proposed strategy, _n_ = 2, which yields objective functions _f_ 1( _x_ ) and _f_ 2( _x_ ). As _j_ starts from 2, hence only _ϵ_ 2 is used. In this way, _f_ 1( _x_ ) is minimized and _f_ 2( _x_ ) is defined as an inequality constraint. _A._ _OBJECTIVE FUNCTION_ In this work, the considered objective functions are the MG total generation cost and the active power losses in the LCL filter of each inverter. 1) TOTAL GENERATION COST The MG total generation cost is represented by the function _f_ 1( _x_ ) = _c_ 1 _Pinv_ 1 + _c_ 2 _Pinv_ 2 + _c_ 3 _Pgrid_ (19) where the generation fees _c_ 1, _c_ 2, and _c_ 3, expressed in R$ _/_ pu, correspond to the assigned gain for each analyzed scenario. When the MG operates in the stand-alone mode ( _Kgrid_ = 0), _c_ 3 = 0 and _Pgrid_ = 0. 2) ACTIVE POWER LOSSES The connection lines among the buses are represented by _Lo_ and their active power losses equations are inserted in the optimization problem objective function. The active power losses can be defined as _f_ 2( _x_ ) = _Pinv_ 1 + _Pinv_ 2 (20) in which the individual losses can be calculated via (17), such that _Pinv_ 1 = _P_ 13 + _P_ 31 (21) _Pinv_ 2 = _P_ 23 + _P_ 32 _._ (22) _B._ _OPERATIONAL CONSTRAINTS_ The optimization problem constraints correspond to the equations that describe the MG model and also the MG limits, which are defined by equality and inequality constraints, _ceq_ ( _x_ ) and _c_ ( _x_ ), respectively. 1) EQUALITY CONSTRAINTS - _ceq_ ( _x_ ) These are based on the power flow equations of each bus, the MG bus references equations and the battery state of charge _SoC_, such as _Pinv_ 1 − _P_ 13 = 0 (23) _Qinv_ 1 + _Q_ 13 = 0 (24) _Pinv_ 2 − _P_ 23 = 0 (25) _Qinv_ 2 + _Q_ 23 = 0 (26) _P_ 31 + _P_ 32 + _Pload_ + _Pgrid_ = 0 (27) _Q_ 31 + _Q_ 32 + _Qload_ + _Qgrid_ = 0 (28) _Vref_ - _Vrefa_ = 0 (29) _�Vref_ - _�Vrefa_ = 0 (30) _SoC_ - _SoCa_ + _�SoC_ = 0 (31) where voltages limits, and are given by _P_ <sup>2</sup> _P_ <sup>2</sup> _P_ <sup>2</sup> <sup>2</sup> _inv_ 1 <sup>+</sup> <sup>_Q_</sup> <sup>2</sup> <sup>2</sup> _inv_ 2 <sup>+</sup> <sup>_Q_</sup> <sup>2</sup> <sup>2</sup> _grid_ <sup>+</sup> <sup>_Q_</sup> <sup>2</sup> <sup>2</sup> _inv_ 1 <sup>≤</sup> <sup>_S_</sup> <sup>~~2~~</sup> <sup>2</sup> _inv_ 2 <sup>≤</sup> <sup>_S_</sup> <sup>~~2~~</sup> <sup>2</sup> _grid_ <sup>≤</sup> <sup>_S_</sup> <sup>~~2~~</sup> _inv_ <sup>~~2~~</sup> 1 (33) _inv_ <sup>~~2~~</sup> 2 (34) _grid_ <sup>~~2~~</sup> (35) _�SoC_ = 100 <sup>_<u>Pinv</u>_</sup> <sup><u>1</u></sup> <sup>_<u>Treal</u>_</sup> _Pinv_ 1 _TD_ (32) _<u>P</u>_ _~~i~~_ _nv_ 1 ≤ _Pinv_ 1 ≤ _Pinv_ 1 (36) _<u>P</u>_ _~~i~~_ _nv_ 2 ≤ _Pinv_ 2 ≤ _Pinv_ 2 (37) _<u>V</u>_ 1 ≤ _V_ 1 ≤ _V_ 1 (38) _<u>�v</u>_ 1 ≤ _�v_ 1 ≤ _�v_ 1 (39) _<u>V</u>_ 2 ≤ _V_ 2 ≤ _V_ 2 (40) _<u>�v</u>_ 2 ≤ _�v_ 2 ≤ _�v_ 2 (41) _<u>SoC</u>_ ≤ _SoC_ ≤ _SoC_ (42) in which, _Sinv_ 1, _Sinv_ 2 and _Sgrid_ are the maximum apparent power per <u>phase</u> of the inverters and the grid, respectively, _<u>P</u>_ _~~i~~_ _nv_ 1, _<u>Pinv</u>_ 2, _Pinv_ 1 and _Pinv_ 2 are the inverters lower and upper active power limits, _<u>V</u>_ ~~1~~, _<u>V</u>_ ~~2~~, _<u>�</u>_ _~~v~~_ 1, _<u>�</u>_ _~~v~~_ 2, _V_ 1, _V_ 2, _�v_ 1 and _�v_ 2 are the lower and upper voltage and phase displacement limits on the buses 1 and 2, and _<u>SoC</u>_ and _SoC_ are the lower and upper state of charge limits. _C._ _ADAPTIVE PENALIZATION FACTOR_ Some papers address the problem of the influence of the battery power gradient on the battery lifetime and propose strategies to limit its fast power transients [8], [17]. In order to mitigate this problem, in [8], it was proposed the inequality constraint | _PB_ - _PBa_ | ≤ _�P_ (43) with _�P_ = _KPB_ (44) where _�P_ is the battery maximum power gradient, _PBa_ <u>is</u> the power produced by the battery at the previous step, _PB_ is the battery maximum power and _K_ is the penalization factor, which was <u>chosen</u> as 0.15. However, if _K_ is <u>fixed,</u> whenever _PB_ ≥ _KPB_ and the _SoC_ is either _<u>SoC</u>_ or _SoC_, the optimization algorithm fails. When the _SoC_ reaches the limit _<u>SoC</u>_ <u>,</u> as <u>exemplified</u> in Fig. 6, the power variation must be equal to 4 _�P_ such that the storage device output power be null ( _PB_ = 0) and the _SoC_ remains at the lower limit imposed by the minimum constraint _<u>SoC</u>_ <u>. If that is not the case, the</u> _SoC_ will continue to decrease until the point this constraint is violated. This occurs because <u>when</u> the battery is supplying the maximum power ( _PB_ = _PB_ ) and its state of charge is minimal ( _SoC_ = _<u>SoC</u>_ <u>),</u> if constraint (43) is achieved, the _SoC_ will be reduced to a value that is lower than _<u>SoC</u>_ <u>,</u> while _PB_ remains positive. The same process occurs when the battery is charging with maximum power ( _PB_ = _<u>PB</u>_ ). To alleviate this problem, in this work, the use of an adaptive penalization factor _K_ for each storage device operating _Vrefa_ and _�vrefa_ are the RMS voltage and the average phase displacement references measured at the moment in which the optimization is performed, respectively. The previous and the current states of charge are _SoCa_ and _SoC_, respectively, and _TD_ is the period of the total battery charge/discharge (100% _SoC_ variation), expressed in hours. The positive signals in (24) and (26) are related to the reactive power flow convention, where _Q_ _<_ 0 indicates that the inverter is generating reactive power, while _Q_ _>_ 0 indicates it is consuming. The constraints (29) and (30) are associated with the reference bus to ensure that, after the optimization finishes, the RMS _Vref_ and the average phase displacement _�ref_ remain the same. Considering that the reference bus changes according to the MG operation, in the grid-tied mode ( _Kgrid_ = 1) the reference is established by the grid resulting in _Vref_ = _V_ 3 and _�Vref_ = _�v_ 3. On the other hand, in the stand-alone mode ( _Kgrid_ = 0), the bus 2 is set to the reference bus, using voltage and frequency control. This bus is related to a dispatchable source, represented by the inverter 2 and defined by _Vref_ = _V_ 2 and _�Vref_ = _�v_ 2. 2) INEQUALITY CONSTRAINTS - _c_ ( _x_ ) These constraints are related to the MG boundaries, which are the sources generation capacity, as well as the buses FIGURE 6. Behavior of battery active power and _SoC_ (red) with and (blue) without the proposed battery power gradient constraint. FIGURE 7. Areas of the battery power gradient constraint according to _K_ . FIGURE 8. Photovoltaic power profile (a) and generation fees (b) for dispatchable and non-dispatchable sources. point, according to the regions defined in Fig. 7, is proposed. In this case, region-I is delimited by ( _<u>SoC</u>_ + _δSoC_ ) ≤ _SoC_ ≤ ( _SoC_ - _δSoC_ ) (45) where _δSoC_ corresponds to | _�SoC_ | with the storage device either <u>producing</u> or absorbing maximum active power ( _PB_ = _PB_ ), which is calculated by _δSoC_ = 100 <sup>_<u>Treal</u>_</sup> _TD_ _._ (46) FIGURE 9. Generation fees with dispatchable sources and storage devices. FIGURE 10. Experimental bench. TABLE 1. Parameters used in the optimization problem. device operating point reaches region-II, _�P_ corresponds to the previous step of the absolute battery power | _PBa_ |. When the _SoC_ is close to either _<u>SoC</u>_ or _SoC_, the maximum power gradient is relaxed, that is _�P_ = | _PBa_ |, to avoid that the optimization problem solution converges to an infeasible point, as shown in Fig. 6. Region-III is achieved when the _SoC_ is either _<u>SoC</u>_ or _SoC_, and _PB_ has to be zero to avoid violation of constraint (42). The storage device operating point remains in this region In region-I, _K_ is constant and the battery maximum power gradient is such that _�P_ = _KPB_ . However, when the storage FIGURE 11. Three-phase active power behavior of the inverters, grid and load (a) without and (b) with the constraint (48), and (c) comparison of the MG total losses with and without constraint (48). FIGURE 12. Behavior of the MG individual and total cost (a) without and (b) with constraint (48) and (c) a comparison between the total cost for both cases. until the _SoC_ returns to the region-I. Furthermore, region-III limits the power gradient for the next battery charging or discharging process, eliminating fast transients on _PB_ when _PBa_ = 0. In order to limit the battery power gradient according to the regions shown in Fig. 7, the constraint [ _PB_ - _PBa_ ] <sup>2</sup> ≤ _�P_ 2 (47) which is a quadratic form of (43), is inserted into the optimization problem to improve the algorithm convergence. Additionally, the energy management algorithm uses a constraint on the active power losses which is given as _f_ 2( _x_ ) ≤ _ϵPload_ (48) where _ϵ_ is chosen as a percentage of the maximum load of the MG. V. EVALUATION SCENARIOS In order to validate the proposed EMS, two scenarios under different operating conditions are evaluated. The analyzed MG parameters are the losses limits, the variable generation costs and the different energy sources topologies when a group of photovoltaic arrays, battery and conventional sources are used. It is important to state that both grid-tied and stand-alone modes are considered during the scenarios evaluation. In the grid-tied mode, as both inverters operate in current control mode, the voltage and frequency are held by the grid. Upon occurring the transition from grid-tied to stand-alone mode, the inverter 1 is kept in current control mode, while the inverter 2 is set to voltage control mode to provide MG voltage and frequency support. _A._ _DISPATCHABLE AND NON-DISPATCHABLE SOURCES_ In this scenario, inverter 1 is a non-dispatchable source and is supplied by a photovoltaic array with a solar profile updated at a 5-min sampling rate, as shown in Fig. 8(a). On the other hand, inverter 2 is a dispatchable energy source capable of supplying power in a controlled way, such as diesel or thermal generators. In this context, Fig. 8(b) presents the generation cost related to the inverters and the grid. The inverter 1 generation cost is considered null ( _c_ 1 = 0) since it represents a renewable energy source, while the generation cost of inverter 2 is _c_ 2 = 0 _._ 8. When compared to _c_ 2, the grid generation cost _c_ 3 has a random profile, since it represents the cost variations inside the optimization horizon _H_ . The highlighted regions in Fig. 8(b), which are defined by 0 ≤ _t_ ≤ 1h40, 8h20 ≤ _t_ ≤ 8h40, 13h50 ≤ _t_ ≤ 14h10 and 21h10 ≤ _t_ ≤ 22h50, correspond to the time intervals at which the MG operates in the stand-alone mode. In these time intervals, the inverter 2 operates in voltage control mode, which maintains the MG voltage and frequency levels. _B._ _DISPATCHABLE SOURCE AND_ _ENERGY STORAGE DEVICE_ In this scenario, inverter 1 is an energy storage device (battery) able to deliver maximum power during two consecutive hours. Additionally, this device has an arbitrary generation fee ( _c_ 1 = 0 _._ 5) in the entire 24h, and it is inserted to penalize FIGURE 13. Optimization parameters results obtained when running the proposed EMS without considering constraint (48). the battery discharging process. This fee is needed to preserve the battery lifetime, prioritize its charging process and keep the _SoC_ at levels higher than _<u>SoC</u>_ <u>.</u> As in the previous scenario, the regions highlighted in Fig. 9 show the moments where the MG is operating in the stand-alone mode (the same time intervals are considered). Furthermore, inverter 2 corresponds to a dispatchable source with a constant generation fee ( _c_ 2 = 0 _._ 8), while the grid has a variable generation fee, as can be seen in Fig. 9. VI. EXPERIMENTAL RESULTS The experimental bench uses two three-phase Danfoss FC 302 inverters, a dSPACE 1007 platform with a 2GHz dual-core processor and a 1GB DRAM memory, and a DS2004 High-Speed A/D measurement board. The complete experimental bench is shown in Fig. 10. The management level is executed by a central computer and implemented in a MATLAB script, which reads the contents in the SDF, executes the optimization algorithm and writes the inverters current references in the same SDF. The controllers run in real-time, while in the management unit the time is scaled down from minutes to seconds (5min:10s). Table 1 presents the system parameters used to solve the optimization problem. _A._ _DISPATCHABLE AND NON-DISPATCHABLE SOURCES_ Considering that inverters 1 and 2 are a photovoltaic array and a dispatchable source, respectively, Fig. 11 shows the behavior of the three-phase active power of these inverters along with the grid and the load profiles, with and without the losses constraint established in (48). The highlighted areas in Fig. 11 correspond to the time intervals at which the MG FIGURE 14. Three-phase active power behavior of the inverters, grid and load (a) without and (b) with the power gradient constraint, and the comparison with and without the power gradient constraint (c) states of charge and (d) MG total losses. operates in the stand-alone mode, that is the active power supplied or absorbed by the grid is zero. During these time intervals, the grid is not available and thus the MG voltage and frequency are established by bus 2, which is set as the reference bus. Taking into account that the generation fee _c_ 1 = 0 for the photovoltaic array, this source is prioritized in terms of power delivery. In this way, the photovoltaic source will operate at the maximum power point whenever the power demanded by the local load is greater than or equal to its maximum generating capacity. The dispatchable source and grid operate according to the load profile and the fees _c_ 2 and _c_ 3 shown in Fig. 8(b). In Figs. 11(a) and 11(b), when _Pgrid_ _<_ 0 the grid supplies power to the MG, whereas in the moments when _Pgrid_ _>_ 0 the MG is delivering power to the main grid. The comparison between the MG total electrical losses for both cases is presented in Fig. 11(c). As can be observed, the most significant difference between these cases occurs in the time intervals 9h30 ≤ _t_ ≤ 10h and 10h30 ≤ _t_ ≤ 11h30. During these intervals _c_ 2 _<_ _c_ 3 in which case the EMS adjusts the inverter 2 to operate in its maximum generation capability without considering constraint (48) in the OPF problem, as can be seen in Fig. 11(a). In this case, the MG is capable of supplying all the active power required by the load and the exceeding energy is delivered to the main grid. Nevertheless, when the constraint (48) is included in the optimization algorithm, as shown in Fig. 11(b), the inverter 2 does not operate in its maximum generation capability. This occurs because, although maximum generation capability is economically desired, the EMS needs to decrease the generated power _Pinv_ 2 to keep the MG total electrical losses below the pre-established _ϵ_ boundary. The individual generation cost related to both the inverters 1 and 2 sources ( _f_ 1 _inv_ 1 and _f_ 1 _inv_ 2) and the main grid ( _f_ 1 _grid_ ), along with the total MG generation cost ( _f_ 1 _total_ ), are presented in Fig. 12. Considering that the inverter 1 is connected to a renewable source, where the generation fee _c_ 1 = 0, no generation cost is applied. The cost _f_ 1 _total_ indicates if the MG is operating either buying or selling energy to the main grid. FIGURE 15. Behavior of the MG individual and total cost (a) without and (b) with the constraint (47) and (c) a comparison between the total cost for both cases. When _f_ 1 _total_ _<_ 0, the total power generated by the sources in this case is greater than that consumed by the local load. Thus, the MG operates in profit, since the exceeding energy is sold to the main grid. On the other hand, when _f_ 1 _total_ _>_ 0, the MG is not self-sufficient, in which case it needs to buy energy from the main grid to keep the local loads fully supplied. The comparison between the total MG generation cost of both cases, with and without considering constraint (48), is shown in Fig. 12(c). Since the LCL filters inductors resistive losses are relatively small ( _Ro_ = 0 _._ 12 _�_ ), the active power profiles and the MG total electrical losses are similar, as can be seen in Fig. 11. For this reason, the total cost curves _f_ 1 _total_ obtained for both cases also describe a similar behavior. However, when the MG losses constraint is inserted, the total generation cost tends to be greater owing to the fact that the EMS starts now operating not only focusing on the best economic approach, but also on attaining the boundaries introduced by constraint (48). In Fig. 13, it is possible to observe the experimental measurements of the processing times related to the EMS real-time operation, the first order optimality measure and the optimization algorithm iterations when the case in Fig. 11(a) is tested. When testing the other case, which is presented in Fig. 11(b), the results are similar. As discussed in the Fig. 2 description, the EMS execution time is calculated as _Tw_ + _Tacq_ + _Topt_ ≈ _Tacq_, which is kept around 7s along the entire 24 hours. The value of _Tw_ is fixed at 50ms and _Topt_ _<_ 1s. Since _TEMS_ = 10s, the EMS is consistently run within a 10s time-frame, which ensures a fixed updating rate of the reference variables. For all operating points, the first order optimality measure is below 2.10 <sup>−6</sup> and the algorithm takes less than 60 iterations to reach convergence. _B._ _DISPATCHABLE SOURCE AND_ _ENERGY STORAGE DEVICE_ Considering that the inverter 1 is supplied by an energy storage device and the inverter 2 is a dispatchable source, Fig.14 shows the behavior of the three-phase active power of these inverters along with the grid and the load profiles, with and without the power gradient constraint established in (47), in which, in this scenario, _PB_ and _PBa_ correspond to _Pinv_ 1 and _Pinv_ 1 _a_, respectively. In both cases, the storage device initial state of charge is _SoC_ 0 = 50%. In this case, for example, the first highlighted region, which starts at _t_ = 0h, shows that the battery is delivering energy to the local load, since _c_ 1 _< c_ 2. When the state of charge reaches its lower limit, that is _<u>SoC</u>_ = 30%, the battery stops delivering power and the load starts to be fully supplied by the dispatchable source. In Fig. 14(a), it is possible to see the abrupt variations occurring in the power _Pinv_ 1, which alternates instantly between the storage device charge and discharge processes. This is observed due to the fact that when the gradient constraint (47) is not considered, the power transients either produced or consumed by the battery becomes free to alternate <u>between</u> the upper and the lower allowed limits, which are _Pinv_ 1 and _<u>P</u>_ _~~i~~_ _nv_ 1. In order to suppress fast transients that might compromise the storage device lifetime, constraint (47) is inserted in FIGURE 16. Optimization parameters results obtained when running the proposed EMS without considering the constraint (47). the optimization problem. The penalization factor considered was _K_ = 0 _._ 25, which limit the storage device power gradient in 25% of its maximum power between two consecutive optimization algorithm executions. The behaviors of the three-phase active powers, the battery state of charge and the total MG electrical losses are presented in Fig. 14. The comparison between the battery state of charge for both cases, without and with constraint (47), is shown in Fig.14(c). Note that after including the constraint, the transition between the charge and the discharge processes of the battery were smooth due to the power gradient limitation. In both cases, the losses constraint represented by (48) is maintained in the OPF solution, as can be seen in Fig.14(d). Note that the losses remain below the pre-established _ϵ_ value ( _ϵ_ = 1%) along all the universe of discourse. In addition, with the power gradient constraint, smaller total losses in the MG and decreased battery degradation in its lifetime are guaranteed. The sources and the main grid individual generation cost, along with the MG total generation cost, are shown in Fig. 15. From the comparison presented in Fig. 15(c), where the total MG generation cost with and without constraint (47) is considered, it is possible to see that greater values of cost _f_ 1 _total_ are attained when the constraint is inserted. Knowing that this constraint limits the power generated by the battery, the cost increases since part of the power demanded by the local load starts to be provided by either inverter 2 or the main grid, which have a higher generation fee than the battery. In Fig. 16, it is presented the parameters related to the EMS execution time, the first order optimality measure and the optimization algorithm iterations when constraint (47) is not applied. As observed in the previous scenario (see Section VI-A), the EMS execution time was around 7s. As can be seen, along the entire 24 hours the first order optimality measure was kept below 6.10 <sup>−6</sup> and the algorithm takes less than 60 iterations to reach convergence. Since the optimization parameters results presented in Fig. 16, which are related to the case in Fig. 14(a), describe a similar behavior compared to those obtained when the case in Fig. 14(b) was tested, only the former results are presented. VII. CONCLUSION In this work, an energy management system based on an OPF problem for MG, which allows operation in both grid-tied and stand-alone modes, was presented. The optimization problem was solved by the _ϵ_ -constraint method and prioritized the generation cost minimization while ensuring that the active power losses remained below a pre-established value _ϵ_ and also suppressing damaging fast transients in the energy storage device. In order to validate the proposed EMS, two scenarios were analyzed under different types of sources, such as dispatchable and non-dispatchable sources, and storage devices. For the two evaluated scenarios, the first order optimality measure was kept below 6 × 10 <sup>−6</sup> during the entire observed 24 hours, which demonstrate the effectiveness of the proposed approach. According to the experimental results, the proposed EMS was capable of smoothing fast transitions during batteries charge and discharge processes. Considering that batteries are expensive components in MGs, the implemented strategy, which also focuses on the power gradient limitation of storage devices, showed to be an efficient method to approach the MGs energy management, since it allows increasing the battery lifetime. Although in this work the active power losses in the connection lines are considered to be relatively small (around 1%) due to the sources generation capacities and the LCL filters resistance values, more significant active power losses quantities can be found with other MGs configurations. In this way, it is interesting that an EMS be flexible to permit setting the allowed maximum total losses values. The proposed EMS kept the current references updating consistently at a 10s fixed rate, as presented in the experimental results. Since the tertiary control layer used in MGs usually have a slow dynamic response, typically reaching the minutes range, the EMS structure presented in this work is also suitable for more complex and larger MGs, which requires a higher algorithm convergence time and, consequently, a higher EMS sampling time. Overall, the results showed that the proposed approach, which is based on the _ϵ_ -constraint method, yields an effective solution by considering both the MG total electrical losses and the storage device power gradient as constraints in the power flow optimization problem formulation. Although a cost criterion to verify how the battery lifetime is in fact affected by the proposed solution was not defined in this work, it can be treated as a study-case to enrich future versions of our research. In this case, the benefits introduced by our approach in preserving batteries in a MG can be evaluated. REFERENCES [1] M. F. Zia, E. Elbouchikhi, and M. Benbouzid, ‘‘Microgrids energy man agement systems: A critical review on methods, solutions, and prospects,’’ _Appl. Energy_, vol. 222, pp. 1033–1055, Jul. 2018. [2] A. Bidram and A. Davoudi, ‘‘Hierarchical structure of microgrids control system,’’ _IEEE Trans. Smart Grid_, vol. 3, no. 4, pp. 1963–1976, Dec. 2012. [3] E. Planas, J. Andreu, and J. I. Gárate, I. M. de Alegría, and E. Ibarra, ‘‘AC and DC technology in microgrids: A review,’’ _Renew. Sustain. Energy Rev._, vol. 43, pp. 726–749, Mar. 2015. [4] K. Balasubramaniam, P. Saraf, R. Hadidi, and E. B. Makram, ‘‘Energy management system for enhanced resiliency of microgrids during islanded operation,’’ _Electr. Power Syst. Res._, vol. 137, pp. 133–141, Aug. 2016. [5] M. Elsied, A. Oukaour, T. Youssef, H. Gualous, and O. Mohammed, ‘‘An advanced real time energy management system for microgrids,’’ _Energy_, vol. 114, pp. 742–752, Nov. 2016. [6] M. A. Abido and M. Waqar Ahmed, ‘‘Multi-objective optimal power flow considering the system transient stability,’’ _IET Gener., Transmiss. Distrib._, vol. 10, no. 16, pp. 4213–4221, 2016. [7] C. Deckmyn, T. L. Vandoorn, J. Van de Vyver, J. Desmet, and L. Vandevelde, ‘‘A microgrid multilayer control concept for optimal power scheduling and voltage control,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 9, no. 5, pp. 4458–4467, Sep. 2018. [8] M. Ruiz-Cortés, E. González-Romera, R. Amaral-Lopes, E. Romero-Cadaval, J. Martins, M. I. Milanés-Montero, and F. Barrero-González, ‘‘Optimal charge/discharge scheduling of batteries in microgrids of prosumers,’’ _IEEE Trans. Energy Convers._, vol. 34, no. 1, pp. 468–477, Mar. 2019. [9] G. Agundis-Tinajero, N. L. D. Aldana, A. C. Luna, J. Segundo-Ramírez, N. Visairo-Cruz, J. M. Guerrero, and J. C. Vazquez, ‘‘Extended-optimalpower-flow-based hierarchical control for islanded AC microgrids,’’ _IEEE_ _Trans. Power Electron._, vol. 34, no. 1, pp. 840–848, Jan. 2019. [10] J. B. Almada, R. P. S. Le ao, R. F. Sampaio, and G. C. Barroso, ‘‘A central ized and heuristic approach for energy management of an AC microgrid,’’ _Renew. Sustain. Energy Rev._, vol. 60, pp. 1396–1404, Jul. 2016. [11] X. Liu, L. Li, Z. Li, X. Chen, T. Fernando, H. H.-C. Iu, and G. He, ‘‘Event-trigger particle filter for smart grids with limited communication bandwidth infrastructure,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 9, no. 6, pp. 6918–6928, Nov. 2018. [12] S. Li, L. Li, Z. Li, X. Chen, T. Fernando, H. H.-C. Iu, G. He, Q. Wang, and X. Liu, ‘‘Event-trigger heterogeneous nonlinear filter for wide-area measurement systems in power grid,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 10, no. 3, pp. 2752–2764, May 2019. [13] P. T. Baboli, M. Shahparasti, M. P. Moghaddam, M. R. Haghifam, and M. Mohamadian, ‘‘Energy management and operation modelling of hybrid AC–DC microgrid,’’ _IET_ _Gener.,_ _Transmiss._ _Distrib._, vol. 8, no. 10, pp. 1700–1711, Oct. 2014. [14] A. C. Luna, N. L. Diaz, M. Graells, J. C. Vasquez, and J. M. Guerrero, ‘‘Online energy management system for distributed generators in a grid-connected microgrid,’’ in _Proc._ _IEEE_ _Energy_ _Convers._ _Congr._ _Exposit. (ECCE)_, Sep. 2015, pp. 4616–4623. [15] M. Marzband, S. S. Ghazimirsaeid, H. Uppal, and T. Fernando, ‘‘A real time evaluation of energy management systems for smart hybrid home microgrids,’’ _Electr. Power Syst. Res._, vol. 143, pp. 624–633, Feb. 2017. [16] A. C. Luna, L. Meng, N. L. Diaz, M. Graells, J. C. Vasquez, and J. M. Guerrero, ‘‘Online energy management systems for microgrids: Experimental validation and assessment framework,’’ _IEEE Trans. Power_ _Electron._, vol. 33, no. 3, pp. 2201–2215, Mar. 2018. [17] W. Shi, X. Xie, C. C. Chu, and R. Gadh, ‘‘Distributed optimal energy management in microgrids,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 6, no. 3, pp. 1137–1146, May 2015. [18] K. Deb, _Multi-Objective_ _Optimization_ _Using_ _Evolutionary_ _Algorithms_ . Hoboken, NJ, USA: Wiley, 2001. [19] A. H. Fathima and K. Palanisamy, ‘‘Optimization in microgrids with hybrid energy systems—A review,’’ _Renew. Sustain. Energy Rev._, vol. 45, pp. 431–446, May 2015. [20] B. Zhao, X. Wang, D. Lin, M. Calvin, J. Morgan, R. Qin, and C. Wang, ‘‘Energy management of multiple microgrids based on a system of systems architecture,’’ _IEEE_ _Trans._ _Power_ _Syst._, vol. 33, no. 6, pp. 6410–6421, Nov. 2018. [21] L. Mellouk, A. Aaroud, D. Benhaddou, K. Zine-Dine, and M. Boulmalf, ‘‘Overview of mathematical methods for energy management optimization in smart grids,’’ in _Proc._ _3rd_ _Int._ _Renew._ _Sustain._ _Energy_ _Conf._ _(IRSEC)_, 2015, pp. 1–5. [22] P. Malysz, S. Sirouspour, and A. Emadi, ‘‘An optimal energy storage control strategy for grid-connected microgrids,’’ _IEEE Trans. Smart Grid_, vol. 5, no. 4, pp. 1785–1796, Jul. 2014. [23] D. E. Olivares, C. A. Cañizares, and M. Kazerani, ‘‘A centralized energy management system for isolated microgrids,’’ _IEEE_ _Trans._ _Smart_ _Grid_, vol. 5, no. 4, pp. 1864–1875, Jul. 2014. [24] Q. Jiang, M. Xue, and G. Geng, ‘‘Energy management of microgrid in grid connected and stand-alone modes,’’ _IEEE Trans. Power Syst._, vol. 28, no. 3, pp. 3380–3389, Aug. 2013. [25] R. V. A. Neves, R. Q. Machado, V. A. Oliveira, X. Wang, and F. Blaabjerg, ‘‘Multitask fuzzy secondary controller for AC microgrid operating in stand-alone and grid-tied mode,’’ _IEEE Trans. Smart Grid_, vol. 10, no. 5, pp. 5640–5649, Sep. 2019. [26] A. Zeh, M. Müller, M. Naumann, H. C. Hesse, A. Jossen, and R. Witzmann, ‘‘Fundamentals of using battery energy storage systems to provide primary control reserves in Germany,’’ _Batteries_, vol. 2, no. 3, p. 29, 2016. [27] K. Uddin, R. Gough, J. Radcliffe, J. Marco, and P. Jennings, ‘‘Techno economic analysis of the viability of residential photovoltaic systems using lithium-ion batteries for energy storage in the United Kingdom,’’ _Appl._ _Energy_, vol. 206, pp. 12–21, Nov. 2017. [28] C. Ju, P. Wang, L. Goel, and Y. Xu, ‘‘A two-layer energy management system for microgrids with hybrid energy storage considering degradation costs,’’ _IEEE Trans. Smart Grid_, vol. 9, no. 6, pp. 6047–6057, Nov. 2018. [29] X. Ruan, X. Wang, D. Pan, W. Li, and C. Bao, _Control_ _Techniques_ _for_ _LCL-Type Grid-Connected Inverters_ . Beijing, China: Springer, 2018. [30] P. Rodriguez, A. Luna, I. Candela, R. Mujal, R. Teodorescu, and F. Blaabjerg, ‘‘Multiresonant frequency-locked loop for grid synchronization of power converters under distorted grid conditions,’’ _IEEE Trans. Ind._ _Electron._, vol. 58, no. 1, pp. 127–138, Jan. 2010. [31] A. G. Yepes, F. D. Freijedo, J. Doval-Gandoy, Ó. López, J. Malvar, and P. Fernandez-Comesaña, ‘‘Effects of discretization methods on the performance of resonant controllers,’’ _IEEE Trans. Power Electron._, vol. 25, no. 7, pp. 1692–1712, Jul. 2010. [32] J. Nocedal and S. Wright, _Numerical_ _Optimization_ (Springer Series in Operations Research and Financial Engineering). New York, NY, USA: Springer, 2006. ELIAN J. AGNOLETTO was born in Marcelino Ramos, Brazil. He received the B.S. degree in electrical engineering from the Universidade Federal de Mato Grosso, in 2012, and the M.S. degree in electrical engineering from the Universidade de São Paulo, in 2015, where he is currently pursuing the Ph.D. degree. His research interests include renewable power systems, energy management systems applied to distributed generation in microgrids, and power quality issues of electrical systems. DANIEL SILVA DE CASTRO received the B.Eng. degree in electrical engineering from the Federal University of Ouro Preto, João Monlevade campus, MG, Brazil, in 2018. He is currently pursuing the M.Sc. degree in electrical engineering with the University of Sao Paulo. His research interests˜ include analysis and design of new power converters, applied control in power electronic devices and electric machines, microgrids, and real-time simulation of dynamic systems. RODOLPHO V. A. NEVES received the B.S. degree in electrical engineering from the Universidade Federal de Viçosa, Brazil, in 2011, and the M.Sc. and Ph.D. degrees in electrical engineering from the Universidade de São Paulo, São Carlos, Brazil, in 2013 and 2018, respectively. From 2015 to 2016, he was a Visiting Researcher with Aalborg University, Denmark. He is currently an Assistant Professor with the Department of Electrical Engineering, Universidade Federal de Viçosa. His research interests include control systems and microgrid management. RICARDO QUADROS MACHADO was born in Santa Maria, Brazil. He received the B.S. degree from the University of Santa Maria, Santa Maria, in 1997, and the M.S. and Ph.D. degrees in electrical engineering from the University of Campinas, Campinas, Brazil, in 2000 and 2005, respectively. From 2002 to 2003, he was a Visiting Researcher with the University of Padova, Padova, Italy, and from 2005 to 2007, he was a Postdoctorate with the Federal University of Santa Maria, Santa Maria. From 2013 to 2014, he was a Visiting Professor with the University of Toronto, Toronto, Canada. From 2007 to 2018, he was an Assistant Professor with the University of São Paulo, São Carlos, Brazil, where he is currently an Associate Professor. His main research interests include processing of energy in dc/dc and dc/ac converters, digital control of power converters, distributed generation systems, smart grids, and control of renewable energy sources. VILMA A. OLIVEIRA received the B.Eng. degree in electronics from the Universidade do Estado do Rio de Janeiro, Brazil, in 1976, the M.Sc. degree in electrical engineering from the Universidade Federal do Rio de Janeiro, in 1980, and the Ph.D. degree in electrical engineering from the University of Southampton, U.K., in 1989. In 1990, she joined the Electrical and Computing Engineering Department, Universidade de São Paulo, São Carlos, Brazil, where she is currently a Full Professor. Her research interests include fuzzy control and control design and its applications.

섹션 본문

섹션 본문이 없습니다.

참고문헌 32건

  1. Multi-Objective Optimization Using Evolutionary Algorithms 2001
  2. Online energy management system for distributed generators in a grid-connected microgrid 2022 IEEE Energy Conversion Congress and Exposition (ECCE) · 2015 10.1109/ecce.2015.7310313
  3. Hierarchical Structure of Microgrids Control System IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2012 10.1109/tsg.2012.2197425
  4. A Centralized Energy Management System for Isolated Microgrids IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2014 10.1109/tsg.2013.2294187
  5. An Optimal Energy Storage Control Strategy for Grid-connected Microgrids IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2014 10.1109/tsg.2014.2302396
  6. Distributed Optimal Energy Management in Microgrids IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2014 10.1109/tsg.2014.2373150
  7. Multiresonant Frequency-Locked Loop for Grid Synchronization of Power Converters Under Distorted Grid Conditions IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2010 10.1109/tie.2010.2042420
  8. Optimization in microgrids with hybrid energy systems – A review Renewable and Sustainable Energy Reviews · Elsevier BV · 2015 10.1016/j.rser.2015.01.059
  9. Energy Management of Microgrid in Grid-Connected and Stand-Alone Modes IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2013 10.1109/tpwrs.2013.2244104
  10. AC and DC technology in microgrids: A review Renewable and Sustainable Energy Reviews · Elsevier BV · 2014 10.1016/j.rser.2014.11.067
  11. Energy management and operation modelling of hybrid AC–DC microgrid IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2014 10.1049/iet-gtd.2013.0793
  12. Effects of Discretization Methods on the Performance of Resonant Controllers IEEE Transactions on Power Electronics · Institute of Electrical and Electronics Engineers · 2010 10.1109/tpel.2010.2041256
  13. A centralized and heuristic approach for energy management of an AC microgrid Renewable and Sustainable Energy Reviews · Elsevier BV · 2016 10.1016/j.rser.2016.03.002
  14. Energy management system for enhanced resiliency of microgrids during islanded operation Electric Power Systems Research · Elsevier BV · 2016 10.1016/j.epsr.2016.04.006
  15. Overview of mathematical methods for energy management optimization in smart grids 2015 10.1109/irsec.2015.7454972
  16. An advanced real time energy management system for microgrids Energy · Elsevier BV · 2016 10.1016/j.energy.2016.08.048
  17. Multi‐objective optimal power flow considering the system transient stability IET Generation Transmission & Distribution · Institution of Engineering and Technology · 2016 10.1049/iet-gtd.2016.1007
  18. Fundamentals of Using Battery Energy Storage Systems to Provide Primary Control Reserves in Germany Batteries · Multidisciplinary Digital Publishing Institute · 2016 10.3390/batteries2030029
  19. A real-time evaluation of energy management systems for smart hybrid home Microgrids Electric Power Systems Research · Elsevier BV · 2016 10.1016/j.epsr.2016.10.054
  20. A Microgrid Multilayer Control Concept for Optimal Power Scheduling and Voltage Control IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2017 10.1109/tsg.2017.2658865
  21. Online Energy Management Systems for Microgrids: Experimental Validation and Assessment Framework IEEE Transactions on Power Electronics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tpel.2017.2700083
  22. A Two-Layer Energy Management System for Microgrids With Hybrid Energy Storage Considering Degradation Costs IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2017 10.1109/tsg.2017.2703126
  23. Event-Trigger Particle Filter for Smart Grids With Limited Communication Bandwidth Infrastructure IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2017 10.1109/tsg.2017.2728687
  24. Control Techniques for LCL-Type Grid-Connected Inverters CPSS power electronics series · Springer Nature · 2017 10.1007/978-981-10-4277-5
  25. Techno-economic analysis of the viability of residential photovoltaic systems using lithium-ion batteries for energy storage in the United Kingdom Applied Energy · Elsevier BV · 2017 10.1016/j.apenergy.2017.08.170
  26. Event-Trigger Heterogeneous Nonlinear Filter for Wide-Area Measurement Systems in Power Grid IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2018 10.1109/tsg.2018.2810224
  27. Microgrids energy management systems: A critical review on methods, solutions, and prospects Applied Energy · Elsevier BV · 2018 10.1016/j.apenergy.2018.04.103
  28. Energy Management of Multiple Microgrids Based on a System of Systems Architecture IEEE Transactions on Power Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tpwrs.2018.2840055
  29. Optimal Charge/Discharge Scheduling of Batteries in Microgrids of Prosumers IEEE Transactions on Energy Conversion · Institute of Electrical and Electronics Engineers · 2018 10.1109/tec.2018.2878351
  30. Extended-Optimal-Power-Flow-Based Hierarchical Control for Islanded AC Microgrids IEEE Transactions on Power Electronics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tpel.2018.2813980
  31. Multitask Fuzzy Secondary Controller for AC Microgrid Operating in Stand-Alone and Grid-Tied Mode IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2018 10.1109/tsg.2018.2888925
  32. Numerical optimization WORLD SCIENTIFIC eBooks · World Scientific · 2006 10.1142/9789812774248_0002