Next Article in Journal
Frequency Stability Evaluation in Low Inertia Systems Utilizing Smart Hierarchical Controllers
Next Article in Special Issue
A Stochastic MPC Based Energy Management System for Simultaneous Participation in Continuous and Discrete Prosumer-to-Prosumer Energy Markets
Previous Article in Journal
Extending the Application of the Smart Readiness Indicator—A Methodology for the Quantitative Assessment of the Load Shifting Potential of Smart Districts
Previous Article in Special Issue
Evaluating the Economic Benefits of a Smart-Community Microgrid with Centralized Electrical Storage and Photovoltaic Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Economic Management Based on Hybrid MPC for Microgrids: A Brazilian Energy Market Solution

by
Eduardo Conte
1,
Paulo R. C. Mendes
2 and
Julio E. Normey-Rico
1,*
1
Department of Automation and Systems, Federal University of Santa Catarina, Florianópolis 88040-900, Brazil
2
Fraunhofer ITWM, 67663 Kaiserslautern, Germany
*
Author to whom correspondence should be addressed.
Energies 2020, 13(13), 3508; https://doi.org/10.3390/en13133508
Submission received: 4 June 2020 / Revised: 2 July 2020 / Accepted: 3 July 2020 / Published: 7 July 2020
(This article belongs to the Special Issue Model Predictive Control for Energy Management in Microgrids)

Abstract

:
This paper proposes a microgrid central controller (MGCC) solution to the energy management problem of a renewable energy-based microgrid (MG). This MG is a case study from the Brazilian energy market context and, thus, has some operational particularities and rules to be obeyed. The MGCC development was based on a hybrid model predictive control (HMPC) strategy using the mixed logical dynamic (MLD) approach to deal with logical constraints within the HMPC structure, which results in a mixed integer programming (MIP) problem. The development of the solution is done through economic and dynamic modeling of the MG components; furthermore, it also takes into account the energy compensation rules of the Brazilian energy market and the white energy tariff. These conditions are specified through a set of MLD constraints. The effectiveness and performance of the proposed solution are evaluated through high-fidelity numerical simulation.

Graphical Abstract

1. Introduction

One of the great advantages of some renewable energies is the possibility of generating energy directly in the region where it is consumed, with great emphasis on solar photovoltaic and small wind generation. Thus, this context enables the use of renewable energy in a distributed way, where each consuming unit is able to produce energy for self-sustenance. Considering this new scenario, the concept of the microgrid (MG) appears as a key solution, enabling the guarantee of operational reliability of electrical systems and, at the same time, presenting cost economies to the consumer units [1]. Microgrids are defined as “a cluster of loads and microsources operating as a single controllable system that provides energy and heat to their local area” [2].
The energy management problem of microgrids is carried by units which have been progressively called microgrid central controllers (MGCCs), which are responsible for implementing different control strategies that ensure the adequate energy generation efficiency and also enhances economic concerns. Many different approaches of algorithms for MGCCs, especially the ones based on model predictive control (MPC) [3] and its variants, are available in the literature [4,5,6,7,8,9,10,11,12].
Recently, [4] depicted the main state-of-the-art techniques of MPC applied to energy management in microgrids. In [5], the development of an optimal control for renewable energy microgrids with hybrid energy storage system (ESS) is presented using a hybrid MPC [6] aiming to maximize the economic benefit of the microgrid and to minimize the degradation causes of the storage systems. In other hand, the optimal load sharing of a renewable MG with hybrid ESS through an advanced optimization-based control technique is the research object in [7]. A hierarchical MPC structure acting in different time scales aiming to optimize the economic profit and the electric vehicles charging procedure while ensuring the MG energy balance is discussed in [8]. The formulation of a MPC controller for the optimal economical schedule of a MG system considering the combined heat and hydrogen has been presented in [9]. In [10], a comparison among three stochastic MPC techniques is of interest and effectiveness, performance, pros and cons are completely and strenuously discussed. The assurance of the closed-loop stability and recursive feasibility of a MG controlled by hybrid MPC using ellipsoidal terminal constraints and the Lyapunov decreasing condition is the main contribution of [11]. Regarding the Brazilian energy scenario, many works related to sugarcane-based (ethanol and sugar producing) MGs have been published in the last years by the authors, with emphasis to [12,13]. In [14], a MPC-based approach for grid-forming inverters in an islanded MG was proposed in order to define the optimal control actions that contemporarily track the desired reference signals and accounts for equality and inequality constraints. A hierarchical scheme consisting of two levels, voltage reference generation loop and voltage tracking loop, using finite control set-model predictive control (FCS-MPC) and applied for paralleled voltage source inverters (VSIs), was proposed in [15].
In this work, the Brazilian energy market rules are taken into account. Recent modifications were proposed in order to modernize and give flexibility to the market rules in which two main topics are of most interest from the energy management point of view: (1) the white tariff and (2) the energy compensation trade. The white tariff was conceived as a way to stimulate consumption outside peak hours, allowing consumption profile planning. Through use of that tariff, some demand response programs can be used in order to optimize the consumer’s energy costs and flatten the consumption peaks. This tariff is divided into three well-known different fixed spots (off-peak, intermediate and peak) as described in the RN 414 of ANEEL [16]. The energy compensation rule allows the units with energy production capacity to inject energy into the main grid in order to generate credits that can be consumed later. Thus, the grid can be used as a virtual stock (VS) of energy. In accordance with the new rules, the energy virtually stored in the main grid can be consumed in up to 36 months [16]. Thus, the white tariff and compensation rules can be added to the algorithm of the MGCC in order to perform accurate economic energy management that explores all possibilities available in the market.
The proposed MGCC is based on a hybrid model predictive control (HMPC) strategy, once the microgrid and market operational rules were modeled using the mixed logical dynamical (MLD) framework. To the authors’ knowledge, a solution to this problem does not exist in the literature, as the type of compensation rules considered here have not been studied before, which characterizes this work as a key landmark in the Brazilian context. However, the solution is also applicable to other energy markets with compensation rules and fixed spot prices like the Brazilian market presented in the paper. Moreover, simulation tests with a high-fidelity model of a microgrid of the μGridLab of Federal University of Santa Catarina (Brazil) were carried out in order to illustrate the advantages of the MGCC using different scenarios—that is, to show how the MGCC can take benefits from the modeled rules and provide more suitable energy management actions.
Therefore, the main contributions of this work are: (i) the proposal of a new MGCC that takes into account the compensation rules in its optimization problem through the virtual stocks modeling framework; (ii) simulation tests with a high-fidelity model of a microgrid; (iii) a methodology that can be used to analyze and design MGCC in other energy markets with similar rules than the Brazilian ones. This work differs from the existing references in the sense that it is proposed a novel formulation for the spot market based in compensation rules. As explained above, it is a new market model applied in the Brazilian spot market, and there is no solution for this problem proposed in the existing literature. Note that this type of compensation energy system is not used in other countries, and classical solutions cannot be applied to optimize the operation of the microgrid.
The rest of this document is organized as follows: the Brazilian spot market rules, as well as the main ideas of the proposed solution and a description of the μGridLab microgrid, are given in Section 2. Section 3 presents the MG modeling and control algorithm. Section 4 discusses the simulation results, and the paper ends with conclusions in Section 5.

2. Spot Market Rules and Proposed Solution

This section presents the Brazilian spot market rules, as well as the main ideas of the proposed solution and a description of the μGridLab microgrid where the simulation study is developed.

2.1. Spot Market Rules

Recently, the Brazilian market rules changed and the so-called “white tariff”, which varies according to the time of day and penalizes the cost at peak times, became an interesting option for the users that produce and consume energy, the prosumers. Another important mechanism that has been created is the compensation rule, which allows the units with production capacity to inject energy to the main grid and use it with no purchase costs in other time periods when the load demand is bigger than the energy generation. These conditions allow small consumers, including those operating in low voltage networks, to generate their own energy and dispatch into the main grid autonomously, which creates an energy credit (compensation) that can be used (compensated) in up to 36 months [16].
At this point, it is important for the reader to understand the concept of energy injection and compensation. On one hand, the first concept is, in essence, the excess of energy generated—in other words, the amount of energy that is not instantaneously consumed, but is dispatched/supplied/injected to the main grid. According to the market rules, this energy will result in a credit that can be consumed in the future. On the other hand, the energy compensation concept resides in the usage of this energy credit—for example, in periods where the consumption is greater than the energy production capacity.
We also stress that for one to take benefit out of this energy market scheme, the price of the produced energy should be equal or lower than the price of the credit in each tariff spot. Another characteristic of these rules is that in peak periods, the energy price is bigger than in the other spots, which adds a degree of freedom to produce more energy than needed and inject the excess into the grid in peak periods. Thus, this allows one to generate credits with high values that can be translated in a bigger amount of energy in off-peaks and intermediate spots because of the credit conversion factors.
However, the energy credits are computed by the electricity provider, and to take them into account in the MGCC, it is necessary to model the market rules in the form that they can be dealt in the optimization problem. To solve this issue, the concept of virtual stocks (VS) proposed in this work arises as a powerful tool that can represent with accuracy the market operation, adding better possibilities of decision to the MGCC.
It is important to note here that, as the Brazilian market is different from other markets (e.g., European markets), the Brazilian prosumer cannot have economic benefits by selling energy to the DSO (there is no possibility to sell the energy to the DSO); the only possibility is to convert the injected energy into credits to be used in the future. Another important difference is that energy prices do not oscillate daily and remain constant for weeks or months, thanks to most of the electricity generated coming from large-scale hydroelectric power plants that, in most of the cases, have storage capacities that guarantee the fixed spot prices.
The main contribution of this work is the proposal of a new MGCC that takes the compensation rules in its optimization problem into account through the virtual stocks modeling framework. This concept allows the MGCC take the advantage of deciding the optimal solution for the energy management over the prediction horizon using the rules of energy injection/compensation and the different conversion factors among the three tariff spots. The solution presented hereafter uses the Brazilian energy market as a use case, but it is important to bear in mind that the methodology discussed here can be applied to every energy market with similar rules.

2.1.1. White Tariff

According to [17], in order to use the white tariff, a consumer unit must have the sum of the nominal powers of the transformers equal to or less than 112.5 kVA, which is the case of the μGridLab MG used as a case study in this paper. The white tariff is composed by 3 different spots, off-peak, intermediate and peak, and its costs are presented in Table 1. These prices will be used as weights in the main grid cost function, as well as converter factors in the virtual stocks modeling, as explained in following sections.

2.1.2. Compensation Rules

Hereafter, the modeling of the compensation rules and its integration in the MGCC, which is the novel contribution of this paper, will be discussed. For such, the concept of the virtual stocks (VS) is introduced. The control objectives, the dynamic models and the operational constraints are proposed under the following assumptions:
  • Since there are three spots within the white tariff, three different VSs were proposed, one for each spot.
  • The energy stored in the VSs has a minimum value of zero and no maximum value constraint.
  • The energy injected to the grid at each tariff spot is stored in its respective VS.
  • The energy compensation occurs primarily in the respective tariff spot. In cases where the VS is depleted in its respective tariff spot, it is possible to use the energy of other VS. In this case, a conversion factor γ given by the relation among the tariff spot prices is applied. This modeling approach is compatible with the energy compensation rules [19].
  • The cost function to be minimized ponders the energy exchanged with the grid—this way, the main objective is to meet the produced energy with the demand as much as possible using the MG renewable sources.
  • The compensated power is the sum of all powers extracted from the VSs.
  • When the MG is using the compensated power, in other words, the energy from the VSs, it is not allowed to inject energy in the main grid.
  • The MG is only allowed to buy energy from the grid if there is no more energy available in the VSs.
The following sections aims to detail how the previous assumptions were implemented in the optimization problem.

2.2. Proposed Control Solution

In order to solve the presented problem, a MGCC composed of two hierarchical MPC levels is proposed. The high-level MGCC is responsible for the economic management of the micro-network and it is the focus of this work. It operates on a time scale of hours and determines the operation points for the lower level. The low level is responsible to ensure the energy balance of the MG following the targets defined by the high-level MGCC and it is out of the scope of this work. It operates on a time scale of minutes and guarantees the operation of the MG as close as possible to the economic optimum but allows eventual deviations from this point when necessary. For the design and tuning of the high-level MGCC, correct operation of the low-level MGCC is assumed. A schematic of how this strategy works is shown in Figure 1.
The main objective of the high-level MGCC is to operate the MG attending the demands and obtaining the minimum operation cost. Note that the efficient operation of the microgrid has to consider not only direct costs associated to the energy consumption, but also other indirect costs related to the several equipment operations, as will be detailed in the formulation of the cost functions of each one of the MG components in Section 3.
The manipulated (decision) variables of the high-level MGCC are the desired values (set-points/references) at each sample time of 15 min of the generated power, startup and shutdown of the dispatchable sources, the charge/discharge power of the storage systems, the power extracted/injected from/to the grid, and a set of variables related to the market rules and virtual stocks modeling, as depicted in Section 3. Moreover, some of these variables can be continuous such as the generated power of a dispatchable source or the grid power, as well as binary—for example, the startup or shutdown operations of a dispatchable energy source.
The high-level MGCC is based on a hybrid model predictive control (HMPC) framework, which is an optimization-based control technique where the main goal is to minimize an objective function though a prediction horizon subjected to dynamic models and operational constraints. The term hybrid is used because the optimization problem has real and binary decision variables; in other words, it is a mixed integer optimization problem (MIOP). As in other MPC approaches, a receding horizon strategy is used, and only the first control action of the horizon is applied to the plant, recalculating the optimal solution at the next sample time with the new information available from the process [4]. In a general form, the optimization problem proposed in this work is presented in Equation (1), where the objective function is the sum of dispatchable sources, external grid and storage systems cost functions expressed over the prediction horizon ( N ) and subjected to the dynamic models of the storage systems and virtual stocks ( F 3 ( x , u ) ) , to the dispatchable sources and storage systems operational constraints, and to the energy market rules and to the energy balance constraints (respectively, F 1 ( x , u ) and F 2 ( x , u ) ). In this problem, u is the vector of all decision continuous and binary variables related to each equipment operation, x is the vector of state variables, k in Equations (1) and (2) represents the time and j represents the instant in the prediction horizon N . The detailed descriptions of all parts of the optimization problem are provided in Section 3.
m i n x , u J ( x , u ) = m i n x , u   [ j = 1 N J d i s p a t c h a b l e   s o u r c e s ( k + j ) + J g r i d ( k + j ) + J s t o r a g e   s y s t e m s ( k + j ) ] s . t . F 1 ( x , u ) = 0 F 2 ( x , u ) 0 d x d t = F 3 ( x , u )
The general energy balance is presented in the following equation and aims to ensure that all produced energy at each time instant of the prediction horizon will be used by the loads, stored in the storage systems or injected in the grid. This is an equality constraint where the sum of the power of all network components must equal to zero:
i = 1 n l P l o a d s i ( k + j ) = i = 1 n n d P n o n d i s p a c h a b l e i ( k + j ) + P g r i d ( k + j ) i = 1 n s P s t o r a g e i ( k + j ) + i = 1 n d P d i s p a c h a b l e i ( k + j )
where n l is the number of loads, n n d is the number of non-dispatchable energy sources, n s is the number of storage systems, and n d is the number of dispatchable energy sources. The nomenclature P s u b means the power of each MG component expressed by the sub-indices s u b .
Remark 1.
The studied system has both AC and DC loads, but here, it was considered with a power factor near 1, and only the active power was used in the energy balance. Although this assumption simplifies the equations, it does not conceptually affect the results of the study.

2.3. GridLab Microgrid

The microgrid (MG) studied in this work is located in the μGridLab at the Federal University of Santa Catarina (Brazil) and is compound by a battery bank, a gas microturbine emulator, photovoltaic panels, a wind turbine emulator, DC loads and connection with the main grid, as can be seen in Figure 2.
The battery bank consists of 10 lithium-ion battery modules (model Beckett 8224S) [20] with approximately 3000 life cycles. The total capacity of the bank is 10 kWh and the charge and discharge powers are 5 kW and 10 kW, respectively. In order to simulate the behavior of a gas microturbine, the model Capstone C3 [21] was developed, which is an emulator based on power electronics converters with an apparent power of 30 kVA.
The photovoltaic array consists of 10 panels (2 kW each), resulting in a maximum power of 20 kW. The wind turbine is emulated through the coupling of an electric motor and a generator with a capacity of 11 kW. The motor receives a profile to simulate the mechanical torque generated by the wind and the generator transforms the mechanical torque in an electric energy profile. The adjustable DC loads allow the reception of a power reference and can then vary between 0 and 35.5 kWh. The microgrid also has a connection to the main grid, which can be switched on and off, thus allowing operation in grid-connected and island modes.

3. Microgrid Economic Modeling and Control

This section presents the economic modeling of each MG component, as well as the inclusion of compensation rules in the optimization problem of the MPC. The modeling is based on the operational costs and it represents (roughly) the real cost of using each component, thus, minimizing the total cost function allows us to obtain the optimal operation point of the microgrid components. Hereafter, each of the component modeling and operational aspects will be depicted.

3.1. Energy Balance

The energy balance ensures that all energy produced is used by the loads, stored in the batteries or injected in the grid. This is an equality constraint where the sum of the power of all network components must equal to zero. It is important to note that the solar panels and wind turbines are non-dispatchable energy sources, and, from the control theory point of view, they act as disturbances in the system (MG).
P s o l a r ( k ) + P w i n d ( k ) + P g r i d ( k ) P b a t ( k ) + P t u r b ( k ) = ( i = 1 N P l o a d s i ( k ) )
In Equation (3), P l o a d s i ( k ) is the power consumed by the loads, P s o l a r ( k ) is the power produced in the photovoltaic panels, P w i n d ( k ) is the power generated by the wind turbine, P g r i d ( k ) is the power consumed/injected from/to the grid, P b a t ( k ) is the charge/discharge battery power and P t u r b ( k ) is the microturbine generated power.

3.2. Microturbine

3.2.1. Costs of Operation Points

In order to model the costs of microturbine operation points, the datasheet of the capstone turbine model C30 was used [21]. The data presented in the datasheet can be approximated, with small error, by the following linear model, which represents the cost per hour ( C o s t t u r b ) of the microturbine as a function of the generated power ( P t u r b ).
C o s t t u r b = N G T ( L C + A C   P t u r b )
The linear coefficient ( L C = 1527.1428 ( l h ) ) represents the microturbine fuel hourly consumption without energy generation, while the angular coefficient ( A C = 311.4286   ( l k W h ) ) represents the fuel hourly consumption rate during the generation process. Finally, NTG is the natural gas tariff ( N G T = 0.0015719   ( R $ l ) ) , defined according to Resolution No. 098 of the Public Services Regulation Agency of Santa Catarina [22,23], used in Equation (4) in order to express the economic turbine operation cost in Brazilian currency. It is important to take the fact that the coefficients in Equation (4) were obtained for environmental conditions of 15 °C and 1 atm into account [24].

3.2.2. Microturbine Conversion Efficiency

It is well-known that the pressure varies with altitude; however, the MG is located in a coast city with an altitude close to zero and the variation of the microturbine conversion efficiency related to the pressure will be neglected. On the other hand, considerable ambient temperature oscillations directly influence the microturbine efficiency. In order to consider the ambient temperature variations, the weight factor E f f ( T e m p ) is introduced and it varies according to the efficiency vs. temperature curve presented in Figure 3. The curve has been normalized so that E f f ( T e m p ) is 1 at 15 °C. This normalization is given by multiplying the original efficiency curve by (1/0.26), where 0.26 represents the efficiency at 15 °C [21].

3.2.3. Startup and Shutdown Costs

In this work, the microturbine startup ( S U C = 0.037023   ( R $ ) ) and shutdown ( S D C = 0.185115   ( R $ ) ) total operation costs were considered. To obtain these values in local currency, the maximum startup time (2 min) and shutdown time (10 min) are multiplied by NTG and LC, as during these periods, the microturbine consumes gas without generating energy.

3.2.4. Objective Function

The objective function of the microturbine is a composition of the operating point, startup and shutdown costs. In this work, the sample time of 15 min for the high-level MGCC was used, which is bigger than the startup and shutdown times. Thus, when the high-level MGCC decides to change the operational state of the microturbine, the low-level MGCC is responsible to implement it, and this state is only possible to be changed in the next execution of the high-level MGCC.
Finally, the microturbine objective function is defined as:
J t u r b = E f f ( T e m p )   N G T   T s   δ t u r b ( k ) ( L C + A C   P t u r b ( k ) ) + S D ( k ) + S U ( k )
Equation (5) considers three terms: one for the normal operation, one for the shutdown process and one for the startup process. In Equation (5), δ t u r b ( k ) is a binary variable that represents the microturbine on/off state at time instant k , P t u r b ( k ) is the power of the turbine, T s is the sampling period and the variables S U ( k ) and S D ( k ) represent startup and shutdown of the turbine, respectively, being defined by the following constraints:
{ S U ( k ) S U C . [ δ t u r b ( k ) δ t u r b ( k 1 ) ] S D ( k ) S D C . [ δ t u r b ( k 1 ) δ t u r b ( k ) ] S U ( k ) 0 S D ( k ) 0
To understand the behavior of Equation (6), let us first assume the startup scenario with δ t u r b ( k 1 ) = 0 and δ t u r b ( k ) = 1 . In this case, we have the first and fourth constraints active, and the startup of the turbine is performed at a cost of S U C . In the opposite scenario, δ t u r b ( k 1 ) = 1 and δ t u r b ( k ) = 0 , the second and third constraints are active and the turbine shutdown is carried out with cost S D C . In other words, minimization of the variables S U ( k ) and S D ( k ) implies, in minimization, changes in operational conditions in the turbine weighted by its economic costs. Note that if δ t u r b ( k ) = δ t u r b ( k 1 ) , these costs are not considered in the sample time.
Remark 2.
Note that for the startup process, the cost will include the SU cost and the normal operation consumption for one sample. This is not exact, but the introduced error was not significant. This occurs because the sampling time is bigger than the startup period, and both terms depend on the variable δ t u r b ( k ) . The way to avoid this effect it to introduce one more binary decision variable with a set of MLD constraints, but since the error is infimum and startup procedures just happen during a few specific periods of the day, it does not justify the cost to augment the complexity of the optimization problem. Thus, the authors understand that the current solution is the one that provides the better compromise between the modeling and computational complexity and desired operation of the MG.
The microturbine power limits are given by:
{ P t u r b ( k ) M t u r b . δ t u r b ( k ) P t u r b ( k )   m t u r b
where M t u r b is the maximum power value (30kVA) and m t u r b is the minimum power value (0kVA). When δ t u r b ( k ) = 1 , the power stays among the minimal and maximum limits, while in the case of δ t u r b ( k ) = 0 , the turbine power should be zero.

3.3. Electrical Main Grid

3.3.1. Virtual Stocks Dynamic Model

In order to represent the behavior of the virtual stock, the following models were used:
{ E O P ( k + 1 ) = E O P ( k ) + γ 1 T s P O P O P ( k ) + γ 2 T s P I O P ( k ) + γ 3 T s P P O P ( k ) + T s P g r i d O P i n j e c t e d ( k ) E I ( k + 1 ) = E I ( k ) + γ 4 T s P O P I ( k ) + γ 5 T s P I I ( k ) + γ 6 T s P P I ( k ) + T s P g r i d I i n j e c t e d ( k ) E P ( k + 1 ) = E P ( k ) + γ 7 T s P O P P ( k ) + γ 8 T s P I P ( k ) + γ 9 T s P P P ( k ) + T s P g r i d P i n j e c t e d ( k )
where E s u b 1 ( k ) represents the energy of each stock related to the three white tariff spots. The subscript s u b 1 was used to generalize the problem since the same logic will apply to tariff spots periods OP—off-peak; I—intermediate, P—peak). P s u b 2 s u b 3 ( k ) represents the power consumed from the virtual stock with sub-index s u b 3 during the time of spot with sub-index s u b 2 , taking into account that s u b 2 s u b 3 . The power injected to the grid at each time spot is expressed by P g r i d s u b 1 i n j e c t e d ( k ) . The constants γ n are the conversion factors given by the relation between the cost ( C s u b 1 ) of the tariff spots:
γ 1 = 1 γ 2 = C O P C I =   0.7123 γ 3 = C O P C P = 0.4627 γ 3 = C O P C P = 0.4627 γ 5 = 1 γ 6 = C I C P = 0.6496 γ 7 = C P C O P = 2.1612 γ 8 = C P C I = 1.5395 γ 9 = 1
A simplified scheme of the virtual stocks operation is shown in Figure 4.

3.3.2. Minimum Value Constraints

To ensure that stocks will assume only positive values, the following constraints were added to the problem:
{ E O P ( k ) 0 E I ( k ) 0 E P ( k ) 0

3.3.3. Usage of the VS Correspondent to the Actual Spot Period

The virtual stocks, in accordance with the energy market rules and to guarantee the compensation of the injected energy at the current tariff spot, must be subject to the following constraints according to the tariff spot:
Off - peak :   P I O P = P I I = P I P = P P O P = P P I = P P P = 0
Intermediate :   P O P F P = P O P I = P F O = P P O P = P P I = P P P = 0
Peak : P O P O P = P O P I = P O P P = P I O P = P I I = P I P = 0
To understand the operation of these constraints, let us take a look at the scenario where the MGCC is operating in the off-peak period. In this case, if the MGCC decide to consume the energy from the off-peak VS, it will be done by the variable P O P O P ( k ) ; if it is needed to use energy from the intermediate and peak VSs, the MGCC will use the variables P O P I ( k ) and P O P P ( k ) , respectively. During this spot period, the constraint imposed by Equation (11) should work in order to guarantee that the operation will be done as expected. It is important to ensure that the right decision variable will be used, since each of them is related to the conversion factor γ n that represents the energy flow among the VSs. The same reasoning holds for the other two spots periods. This modeling framework is directly connected with assumption 4 of Section 2.1.2.

3.3.4. Priority among the VSs

To represent the existing priority in energy compensation, given by the consumption of the virtual stock relative to the current spot period, the use of the following logical connectives is required:
Off - peak :   E O P ( k ) > 0         P O P I ( k ) = 0     a n d       P O P P ( k ) = 0
Intermediate :   E I ( k ) > 0           P I O P ( k ) = 0     a n d     P I P ( k ) = 0
Peak : E P ( k ) > 0           P P O P ( k ) = 0     a n d       P P I ( k ) = 0
This existing logical priority defines which storage will be used and is represented by the multiplexers showed in Figure 4. These constraints only allow using the VS referred to other spots if the VS of the current spot is out of energy. The presented conditions are related to assumption 4 of Section 2.1.2.
In order to enable the use of logical propositions by the MPC, the MLD framework is used [25]. In addition, since some constraints must have different behaviors according to the current tariff spot, the vector of binary variables defined in Equation (17) will be used, which will be decided out of the optimization problem and sent as a parameter. These vectors, which have a size equal to the prediction horizon, are conveniently used in some constraints that will be presented later. If at time instant k , the MGCC is operating in the spot period OP, for example, v e c t o r O P ( k ) = 1 , otherwise v e c t o r O P ( k ) = 0 .
v e c t o r s u b 1 ( k ) = { 1 ,   if   k   is   reffered   spot   period 0 ,   else
An auxiliary binary variable δ s u b 1 ( k ) is used to force E s u b 1 ( k ) to zero when the condition is satisfied. Thus, it is desired that this variable is equal to zero if and only if E s u b 1 ( k ) is greater than zero:
E s u b 1 ( k ) > 0     δ s u b 1 ( k ) = 0
To model this logical condition in the form of a constraint, the constants M e and m e that represent the maximum and minimum values of E s u b 1 ( k ) , respectively, are used. It should be emphasized that in this particular case, m e = 0 since the value of the stored energy credit may not be negative and M e because there is no ceiling for the value of the energy credit in the compensation system. In order to ensure the condition of equivalence, it must be verified that the logical implication is taken care of in both directions.
To guarantee that E s u b 1 ( k ) > 0   δ s u b 1 ( k ) = 0 , the following inequality is considered:
E s u b 1 ( k ) M e ( 1 δ s u b 1 ( k ) ) + ε
where ε is a constant of positive value close to zero. Note that this constraint meets this implication by forcing δ s u b 1 ( k ) to zero when E s u b 1 ( k ) assumes positive values. There is ambiguity when E s u b 1 ( k ) = ε , but it does not interfere with the desired implication, since E s u b 1 ( k ) ε M e is still valid.
To ensure that δ s u b 1 ( k ) = 0     E s u b 1 ( k ) > 0 , the following inequality is considered:
E s u b 1 ( k ) ε ( 1 δ s u b 1 ( k ) )
Note that this constraint meets this implication by forcing E s u b 1 ( k ) to assume positive values when δ s u b 1 ( k ) is equal to zero.
With δ s u b 1 ( k ) defined well, a continuous auxiliary variable z s u b 2 s u b 3 ( k ) will be introduced, so that z s u b 2 s u b 3 ( k ) = δ s u b 1 ( k ) P s u b 2 s u b 3 ( k ) . Then, Equation (8) is rewritten, replacing P s u b 2 s u b 3 ( k ) by z s u b 2 s u b 3 ( k ) , as follows:
{ E O P ( k + 1 ) = E O P ( k ) + γ 1 T s P O P O P ( k ) + γ 2 T s z I O P ( k ) + γ 3 T s z P O P ( k ) + T s P g r i d O P i n j e c t e d ( k ) E I ( k + 1 ) = E I ( k ) + γ 4 T s z O P I ( k ) + γ 5 T s P I I ( k ) + γ 6 T s z P I ( k ) + T s P g r i d I i n j e c t e d ( k ) E P ( k + 1 ) = E P ( k ) + γ 7 T s z O P P ( k ) + γ 8 T s z I P ( k ) + γ 9 T s P P P ( k ) + T s P g r i d P i n j e c t e d ( k )
It is important to note that both the δ s u b 1 ( k ) , P s u b 2 s u b 3 ( k ) and z s u b 2 s u b 3 ( k ) , are decision variables, so that this multiplication between variables will generate a bilinearity in the objective function. To solve this problem, we adopt the approach introduced in [21], where the auxiliary variable z s u b 2 s u b 3 ( k ) , subject to some constraints, is used to represent the bilinearity behavior, as follows:
{ P s u b 2 s u b 3 ( k ) m s t o c k . ( 1 δ s u b 1 ( k ) ) . v e c t o r s u b 1 ( k ) P s u b 2 s u b 3 ( k ) M s t o c k . δ s u b 1 ( k ) . v e c t o r s u b 1 ( k ) z s u b 2 s u b 3 ( k ) M s t o c k . δ s u b 1 ( k ) . v e c t o r s u b 1 ( k ) z s u b 2 s u b 3 ( k ) m s t o c k . δ s u b 1 ( k ) . v e c t o r s u b 1 ( k ) z s u b 2 s u b 3 ( k ) P s u b 2 s u b 3 ( k ) m s t o c k . ( 1 δ s u b 1 ( k ) ) . v e c t o r s u b 1 ( k ) z s u b 2 s u b 3 ( k ) P s u b 2 s u b 3 ( k ) M s t o k . ( 1 δ s u b 1 ( k ) ) . v e c t o r s u b 1 ( k )
where M s t o c k and m s t o c k represent, respectively, the minimum and maximum values of P s u b 2 s u b 3 ( k ) . When δ s u b 1 ( k ) = 0 , we have z s u b 2 s u b 3 ( k ) = 0 and P s u b 2 s u b 3 ( k ) = 0 , which represent that, at spot period sub2, there is no consumption from the VS sub3. The case of δ s u b 1 ( k ) = 1 implies that z s u b 2 s u b 3 ( k ) = P s u b 2 s u b 3 ( k ) and m s t o c k P s u b 2 s u b 3 ( k ) M s t o c k , which means that, at spot period sub3, consumption from the VS sub2 exists. At this point, it is important to point out that the possible combinations of the values of variables sub1, sub2 and sub3 are depicted in Table 2.

3.3.5. Cost Function

The portion of the cost function relative to the grid can be expressed by:
J g r i d = C s u b 1 P g r i d ( k ) T s
where P g r i d ( k ) represents the grid power and C s u b 1 represents the cost of electricity at the time that depends on the current tariff spot presented in Table 1. The positive values of P g r i d ( k ) imply purchasing energy from the grid, while negative values imply injecting power to the grid.
To relate the injected power P g r i d s u b 1 i n j e c t e d ( k ) with the grid power P g r i d ( k ) , a set of MLD constraints is defined as follows:
{ P g r i d ( k ) M g r i d . ( 1 δ a u x ( k ) ) P g r i d ( k ) m g r i d . δ a u x ( k ) z a u x ( k ) M g r i d . δ a u x ( k ) z a u x ( k ) m g r i d . δ a u x ( k ) z a u x ( k ) P g r i d ( k ) m g r i d . ( 1 δ a u x ( k ) ) z a u x ( k ) P g r i d ( k ) M g r i d . ( 1 δ a u x ( k ) ) P g r i d s u b 1 i n j e c t e d ( k ) = z a u x ( k )
where δ a u x ( k ) is a binary auxiliary variable; z a u x ( k ) is a continuous auxiliary variable; and M g r i d and m g r i d represent, respectively, the minimum and maximum values of P g r i d ( k ) . When δ a u x ( k ) = 0 , we have z a u x ( k ) = 0 and P g r i d s u b 1 i n j e c t e d ( k ) = 0 , which represent no power injection in the grid, but it allows consumption of the power from the grid. The case of δ a u x ( k ) = 1 implies that z a u x ( k ) = P g r i d ( k ) and P g r i d s u b 1 i n j e c t e d ( k ) = z a u x ( k ) , which means that a power injection in the grid is happening.
In order for the energy injection not be accounted in all stocks simultaneously, the tariff spot vectors were used. By using the tariff spot vectors, only the VS referent to the current spot period will receive the injected power. Finally, Equation (21) must be rewritten as:
{ E O P ( k + 1 ) = E O P ( k ) + γ 1 T s P O P O P ( k ) + γ 2 T s z I O P ( k ) + γ 3 T s z P O P ( k ) + T s P g r i d O P i n j e c t e d ( k ) v e c t o r O P ( k ) E I ( k + 1 ) = E I ( k ) + γ 4 T s z O P I ( k ) + γ 5 T s P I I ( k ) + γ 6 T s z P I ( k ) + T s P g r i d I i n j e c t e d ( k ) v e c t o r I ( k ) E P ( k + 1 ) = E P ( k ) + γ 7 T s z O P P ( k ) + γ 8 T s z I P ( k ) + γ 9 T s P P P ( k ) + T s P g r i d P i n j e c t e d ( k ) v e c t o r P ( k )

3.3.6. Compensated Power and Variables Interlocking

The variable related to total compensated power P c o m p ( k ) , which represents the total power used from the VSs, does not appear in the cost function since its cost is zero. However, it appears in the constraints as a decision variable.
P c o m p ( k ) = P O P O P ( k ) + z O P I ( k ) + z O P P ( k ) + P I I ( k ) + z I O P ( k ) + z I P ( k ) + P P P ( k ) + z P O P ( k ) + z P I ( k )
Furthermore, to ensure the interlocking between energy compensation and injection, that is, P c o m p ( k ) 0     P g r i d s u b 1 i n j e c t e d ( k ) = 0 and P c o m p ( k ) = 0     P g r i d s u b 1 i n j e c t e d ( k ) 0 , the following constraints were added:
{ P c o m p ( k ) M g r i d . δ c o m p ( k ) P g r i d s u b 1 i n j e c t e d ( k )   M g r i d . ( 1 δ c o m p ( k ) )
where δ c o m p ( k ) is a binary variable and M g r i d is the maximum value of P g r i d ( k ) . When δ c o m p ( k ) = 0 , there is no compensation from the VS, but power injection is allowed; however, in the case δ c o m p ( k ) = 1 , the opposite statement is true.
In the same way, to ensure the interlocking between energy compensation and energy purchase, that is, E O P ( k ) + E I ( k ) + E P ( k ) > 0     P g r i d ( k ) 0 , the following constraints are added:
{ E O P ( k ) + E I ( k ) + E P ( k ) M e . δ e ( k ) P g r i d ( k ) M g r i d . ( 1 δ e ( k ) )
Here, when δ e ( k ) = 0 , there is no compensation and the purchase from the grid is allowed; otherwise, the opposite situation rules.

3.4. Battery Bank

3.4.1. Objective Function

To estimate the cost of using the batteries, two important aspects were considered: the loss of energy in the conversion and the degradation of the battery. The cost of using the battery considering purchase cost, efficiency and total number of cycles can be modeled as:
J b a t _ s u p = C B t o t a l N c i c l e s T s ( z b a t ( k ) η C P b a t ( k ) η D + z b a t ( k ) η D )
where C B t o t a l is the purchasing cost of the battery, N c i c l e s is the number of complete cycles, η C and η D are the battery charge and discharge efficiencies, P b a t ( k ) is the battery power at instant k , and T s the sampling period. Moreover, in order to allow the use of different values for the charge/discharge efficiencies, the auxiliary variables z b a t ( k ) (continuous) and δ b a t ( k ) (binary) were introduced, so that z b a t ( k ) = δ b a t ( k ) P b a t ( k ) . The MLD constraints that guarantee the desired operation for the battery modes switching are given by:
{ P b a t ( k ) m b a t ( 1 δ b a t ( k ) ) P b a t ( k ) M b a t   δ b a t ( k ) z b a t ( k ) M b a t   δ b a t ( k ) z b a t ( k ) m b a t δ b a t ( k ) z b a t ( k ) P b a t ( k ) m b a t ( 1 δ b a t ( k ) ) z b a t ( k ) P b a t ( k ) M b a t ( 1 δ b a t ( k ) )
where M b a t (positive value) and m b a t (negative number) are, respectively, the maximal and minimal values allowed for P b a t . Note that z b a t ( k ) and δ b a t ( k ) allow us to switch the cost function according the battery charge/discharge modes. The variable δ b a t ( k ) is associated with the charge ( δ b a t ( k ) = 1 ) or discharge ( δ b a t ( k ) = 0 ). Note that when P b a t ( k ) > 0 , we have δ b a t ( k ) = 1 and z b a t ( k ) = P b a t ( k ) , which means that the battery is charging, therefore the charge efficiency is used. Otherwise, P b a t ( k ) < 0 implies that δ b a t ( k ) = 0 and z b a t ( k ) = 0 , and the discharge efficiency is used.
The efficiency of a battery depends on the charge or discharge speed. In this work, we chose to use near-normal efficiencies for lithium-ion batteries [26,27], then considered a charge efficiency of 92% and discharge efficiency of 95%.

3.4.2. Constraints

The optimization of the batteries cost must be subject to the dynamics of the behavior of the batteries, which is expressed by constraints. In order to model the dynamics of the battery, the MLD framework was used, since it allows representing logical variables in a suitable way to represent the restrictions in MPC. The modeling was based on the one presented by [4]. The battery bank state of charge is represented by:
S O C ( k + 1 ) = S O C ( k ) + η D T s 100 C a p P b a t ( k ) + T s 100 C a p ( η C η D ) z b a t ( k )
where S O C ( k ) is the state of charge at time k and C a p is the battery capacity.

4. Simulation Results

The simulations were developed in MATLAB software [28], where the controllers were described using the YALMIP modeling language [29] and the solver Gurobi [30] was used. Real data referring to the year 2019 were used to generate the vectors of solar incidence, temperature and wind speed. The sampling time used for the MPC was 15 min and the prediction horizon adopted was 24 samples (equivalent to 6 h). The control horizon is equal to the prediction horizon since the optimization problem does not have severe temporal and processing constraints, considering the computation time of the solution (less than 1 s).
In this section, three different simulation scenarios are evaluated. The first scenario seeks to represent the nominal operating conditions of the μGridLab microgrid, while the second scenario analyses the results if there is a 50% increase in expected demand. Finally, in the third scenario, an island operation of the MG in nominal conditions is studied and compared to scenario 1.

4.1. Scenario 1

In this scenario, a one-day period simulation is performed to observe the results graphically and a complete month simulation (period of 30 days) is simulated with the intention of performing the monthly economic analysis.
Figure 5, Figure 6, Figure 7 and Figure 8 show all the interesting variables during one day of operation. From Figure 5, where the generated and demanded power (kW) are shown, it can be observed that in many periods, the MGCC chooses to use the microturbine to generate power. This is due to the low cost of the microturbine use (compared to the grid power exposed in Figure 7b), thus, the controller prioritizes the energy generation through the microturbine instead of consuming power from the network. The microgrid also uses all generated power by the wind turbine and the PV (photovoltaic) panels. It is important to point out that in some periods of the day, the load demand is bigger than the generated power, but in these moments, as can be seen in Figure 7b, the compensated power from grid helps to feed the loads.
Figure 6 shows the SOC (state of charge) and power in the batteries. As can be seen, the battery power presents some oscillations near the operating point, as the battery plays the role of aiding the system in damping the effect of the renewable energy variations and load changes so that the energy balance is guaranteed and the variation of the energy exchanged with the external grid is minimized. It is important to note that in the period between approximately 12 and 19 h, these oscillations are large, and are in accordance with the ones observed in the solar generation due to the strong presence of clouds, which causes abrupt variations of irradiation. On sunny days, it is not possible to observe this phenomenon. The constraints imposed in the controller ensure that the SOC is between 100% and 20% as recommended for the correct operation of the batteries.
Figure 7a shows the energy of the virtual stocks for the three tariff spots. Initially, the stocks have zero energy, so, it is assumed that in this scenario, there is no previous energy credit from previous months. This would be the case for the MG first month operation in the compensation system. It should be noted that in this scenario, there are several moments that happens the injection of energy for subsequent use. The energy injection at peak hours is the one that generates more offset credits.
The relationship between the compensated power, the grid power and the injected power in this scenario is shown in Figure 7b. It can be seen that the controller does not choose to purchase power from the grid, but only compensates for credits obtained, since grid power is always negative, which means that the power is being injected into the grid. This fact can be explained by the high price of energy in relation to the energy generated by microturbine and renewable sources.
Figure 8 shows the value of the objective function during the first day of the scenario 1. As expected, the minimum values of the objective function occur in the period between 11 h and 19 h, where the microturbine is not operating most of the time and there is a peak in the photovoltaic generation as well as in the wind turbine.
With respect to economic costs, the one-day period of the obtained operating data is presented in the second column of Table 3. It is noted that at the end of the day, there was an excess balance of compensated energy. The total operating cost of the microgrid during this day was R$ 221.84, but a credit of R$ 18.78 was generated for later use; this credit is calculated as the sum of the products between the power stored in each virtual store by its respective tariff (see Table 1).
In order to analyze the monthly economic operation of this scenario, a simulation is performed for a period of 30 days under the same conditions, and the data referring to the first 30 days of the month of January 2019 were used. In this case, the operation data are presented in the third column of Table 3.
Note that in this period, there was more energy injection than compensation; in addition, the MGCC has never decided to purchase energy once the compensated energy has zero cost. At the end of 30 days, there was R$ 19.57 of credit to be compensated in the upcoming months. The total cost of operation during the month considering the use of the battery and the turbine is R$ 8116.78.
For comparison purposes, the energy cost is calculated if all demand is supplied by the grid. In this case, the total operation cost is obtained by applying the cost of the conventional tariff to the energy demand (R$ 8755.27). This gives a 7.86% increasing in the energy bill with respect the distributed generators plus white tariff compensation system. Of course, the comparison with the use of the grid power only serves to give the reader a better perception of the values, since a rigorous economic analysis would have to take into account the purchase cost of the turbine, the wind generator and the PV panels. This analysis is disregarded in this work since the studied MG already has these components.

4.2. Scenario 2

As a second scenario to be analyzed, a 50% increase in energy demand is proposed. The curves obtained for this case have profiles similar to those obtained in the first scenario—this way, they will not be presented. In this case, simulating again the periods of 1 (one) day and 30 days give the operation data shown in Table 4.
In fact, the MGCC behaves in an expected way as well in this more severe scenario, using all the power of the compensation system and virtual stocks in order to take advantage of the conversion factors among the spots and achieve a good economic efficiency. For comparative purposes, the equivalent cost of purchasing grid power for the 30 days’ case with a conventional tariff is R$ 12845.85. Thus, in this case, the proposed control strategy gives a 3.72 % reduction in the energy bill.

4.3. Scenario 3

Finally, in order to validate the controller and the sizing of the microgrid, a third scenario is simulated with the MG operating in islanded mode, which means without the connection to the power grid. The 1 (one) day and 30 days’ results are given in Table 5 for the same loads as in scenario 1.
Here, it is possible to compare scenarios 1 and 3, and as expected, the MG is capable of operating in both modes. Analyzing Table 3 and Table 5, is it possible to conclude that the controller works more efficiently in the connected mode with a 4.76% reduction in the energy bill compared with the islanded mode. This happens because there is an extra economic element, the virtual stocks and compensation system, allowing more freedom in the optimization. The cost of battery use was lower in the island mode because the MGCC opted for the use of the turbine to assist in damping short-term oscillations.

5. Conclusions

This work proposed a MGCC strategy for simulation and control of microgrids considering the Brazilian energy compensation system. The Brazilian energy compensation rules are different from the ones used in other countries; thus, it is necessary to develop specific control strategies to take advantages of the particular processes and reduce the electricity bill. Therefore, the proposed MGCC considers in its formulation all the particularities of the local market and allows the user to take more profit of the installed EMS. The considered microgrids include renewable energy sources and conventional ones. The proposed strategy consisted of a MPC using mixed-integer programming, being the main contribution and innovation, the modeling and implementation of a set of virtual stocks that allow one to optimally manage the power consumption considering the Brazilian energy compensation rules. Through the analysis of the results, it is possible to conclude that the behavior of the proposed MGCC is in agreement with the expected one, taking management decisions that allow the operation of the microgrid in a more efficient way, reducing the energy bill in the studied scenarios. Although the obtained results were obtained in a particular microgrid, the methodology is general and can be applied to other microgrids and could also be simply adapted to other energy compensation systems. Regarding applicability, for companies selling EMS systems, the use of an advanced control system such as the one proposed here gives a competitive edge without increasing costs too much. On the other hand, users can reduce their energy bills and have faster payback. As for future works, the authors plan on implementation of a demand management layer and stochastic energy management techniques can be taken into account.

Author Contributions

Modelling of the process, the elaboration of the control codes and simulations, E.C.; process modelling, the formulation of the control strategy, the simulations and the analysis of the results, P.R.C.M.; formulation of the control strategy and the analysis of the results, J.E.N.-R.; All authors have worked in the organization of the material, writing of the paper, drawing figures and elaborating the conclusions. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by CNPq, grant number 304032/2019-0.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Ton, D.T.; Smith, M.A. The U.S. Department of Energy’s Microgrid Initiative. Electr. J. 2012, 25, 84–94. [Google Scholar] [CrossRef]
  2. Lasseter, R.H. MicroGrids. In Proceedings of the IEEE Power Engineering Society Winter Meeting, New York, NY, USA, 27–31 January 2002; Volume 1, pp. 305–308. [Google Scholar]
  3. Camacho, E.F.; Bordons, C. Model Predictive Control; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
  4. Bordons, C.; Garcia-Torres, F.; Ridao, M.A. Model Predictive Control of Microgrids; Springer: Gewerbestrasse, Switzerland, 2019. [Google Scholar]
  5. Garcia-Torres, F.; Bordons, C. Optimal economical schedule of hydrogen-based microgrids with hybrid storage using model predictive control. IEEE Trans. Ind. Electron. 2015, 62, 5195–5207. [Google Scholar] [CrossRef]
  6. Sanfelice, R.G. Hybrid Model Predictive Control. In Handbook of Model Predictive Control; Raković, S., Levine, W., Eds.; Birkhäuser: Cham, Switzerland, 2019. [Google Scholar]
  7. Garcia-Torres, F.; Valverde, L.; Bordons, C. Optimal load sharing of hydrogen-based microgrids with hybrid storage using model-predictive control. IEEE Trans. Ind. Electron. 2016, 63, 4919–4928. [Google Scholar] [CrossRef]
  8. Mendes, P.R.C.; Valverde, L.; Bordons, C.; Normey-Rico, J.E. Energy management of an experimental microgrid coupled to a v2g system. J. Power Sources 2016, 327, 702–713. [Google Scholar] [CrossRef]
  9. Fu, C.; Lin, J.; Song, Y.; Zou, Y.; Mu, S. Model predictive control of an integrated energy microgrid combining power to heat and hydrogen. In Proceedings of the IEEE Conference on Energy Internet and Energy System Integration, Beijing, China, 26–28 November 2017; pp. 1–6. [Google Scholar]
  10. Velarde, P.; Valverde, L.; Maestre, J.M.; Ocampo-Martinez, C.; Bordons, C. On the comparison of stochastic model predictive control strategies applied to a hydrogen-based microgrid. J. Power Sources 2017, 343, 161–173. [Google Scholar] [CrossRef] [Green Version]
  11. Olama, A.; Mendes, P.R.C.; Camacho, E.F. Lyapunov-based hybrid model predictive control for energy management of microgrids. IET Gener. Transm. Distrib. 2018, 12, 5770–5780. [Google Scholar] [CrossRef]
  12. Vergara-Dietrich, J.D.; Morato, M.M.; Mendes, P.R.C.; Cani, A.A.; Normey-Rico, J.E.; Bordons, C. Advanced chance-constrained predictive control for the efficient energy management of renewable power systems. J. Process. Control. 2019, 74, 120–132. [Google Scholar] [CrossRef]
  13. Morato, M.M.; Regner, D.J.; Mendes, P.R.C.; Cani, A.A.; Normey-Rico, J.E.; Bordons, C. Fault analysis, detection and estimation for a microgrid via H2/Hinf LPV observers. Int. J. Electr. Power Energy Syst. 2019, 105, 823–845. [Google Scholar] [CrossRef]
  14. Labella, A.; Filipovic, F.; Petronijevic, M.; Bonfiglio, A.; Procopio, R. An MPC Approach for Grid-Forming Inverters: Theory and Experiment. Energies 2020, 13, 2270. [Google Scholar] [CrossRef]
  15. Chen, T.; Abdel-Rahim, O.; Peng, F.; Wang, H. An Improved Finite Control Set-MPC-Based Power Sharing Control Strategy for Islanded AC Microgrids. IEEE Access 2020, 8, 52676–52686. [Google Scholar] [CrossRef]
  16. ANEEL. Normative Resolution N°414. [S.l.]. 2010; p. 260. Available online: http://www2.aneel.gov.br/cedoc/bren2010414.pdf (accessed on 10 May 2020).
  17. ANEEL. White Tariff. Available online: http://www.aneel.gov.br/tarifa-branca (accessed on 10 May 2020).
  18. CELESC. All about White Tariff—CELESC Informative. Available online: https://www.celesc.com.br/arquivos/central-ajuda/tarifa-branca_2020.pdf (accessed on 10 May 2020).
  19. ANEEL. Normative Resolution N° 517. [S.l.]. 2012; p. 3. Available online: http://www2.aneel.gov.br/cedoc/ren2012517.pdf (accessed on 10 May 2020).
  20. Beckett Energy Systems. Installation and Operating Manual—Advanced Battery Storage Units; R. W. Beckett Corporation: North Ridgeville, OH, USA, 2015; p. 16. [Google Scholar]
  21. CAPSTONE. Datasheet—Capstone Model C30 Performance; Capstone Turbine Corporation: Los Angeles, CA, USA, 2006; p. 14. [Google Scholar]
  22. ARESC. Resolution ARESC N°098; Santa Catarina Public Services Regulation Agency: Florianópolis, Brazil, 2018; p. 7.
  23. SCGÁS. Industrial Tariff. Available online: http://www.scgas.com.br/site/industrial/conteudos/tg3 (accessed on 10 May 2020).
  24. ISO. ISO 3977-2:1997-Gas Turbines-Procurement-Part 2: Standard Reference Conditions and Rating. Available online: https://www.iso.org/standard/24755.html (accessed on 10 May 2020).
  25. Bemporad, A.; Morari, M. Control of Systems Integrating Logic, Dynamics, and Constraints; Automatica: Zürich, Switzerland, 1999; Volume 35, pp. 407–427. [Google Scholar]
  26. ALLCELL. A Comparison of Lead Acid to Lithium-Ion in Stationary Storage Applications; AllCell Technologies LLC.: Chicago, IL, USA, 2012; p. 14. [Google Scholar]
  27. SAFT. Intesium Smart 58M-Indoor; Saft Industrial Battery Group: Bagnolet, France, 2015; p. 2. [Google Scholar]
  28. MATHWORKS. Matlab; Society for Industrial and Applied Mathematics SIAM: Philadelphia, PA, USA, 2017. [Google Scholar]
  29. Löfberg, J. YALMIP: A toolbox for modeling and optimization in MATLAB. In Proceedings of the IEEE International Conference on Robotics and Automation, New Orleans, LA, USA, 2–4 September 2004; pp. 284–289. [Google Scholar]
  30. Gurobi. Gurobi Optimizer. Available online: http://www.gurobi.com/ (accessed on 10 May 2020).
Figure 1. Proposed microgrid central controller (MGCC).
Figure 1. Proposed microgrid central controller (MGCC).
Energies 13 03508 g001
Figure 2. μGridLab microgrid (MG) diagram.
Figure 2. μGridLab microgrid (MG) diagram.
Energies 13 03508 g002
Figure 3. Normalized Efficiency vs. Temperature curve. (source: [21]).
Figure 3. Normalized Efficiency vs. Temperature curve. (source: [21]).
Energies 13 03508 g003
Figure 4. Virtual stocks scheme.
Figure 4. Virtual stocks scheme.
Energies 13 03508 g004
Figure 5. Scenario 1—Generated and demanded power (kW). Microturbine in black, PV panels in red, wind turbine in blue and demand power in green.
Figure 5. Scenario 1—Generated and demanded power (kW). Microturbine in black, PV panels in red, wind turbine in blue and demand power in green.
Energies 13 03508 g005
Figure 6. Scenario 1—Battery power (kW) and SOC (%).
Figure 6. Scenario 1—Battery power (kW) and SOC (%).
Energies 13 03508 g006
Figure 7. Scenario 1—(a) Energy in virtual storage (kWh); (b) grid power. Grid (in blue), compensated (in black) and injected (in red) power (kW).
Figure 7. Scenario 1—(a) Energy in virtual storage (kWh); (b) grid power. Grid (in blue), compensated (in black) and injected (in red) power (kW).
Energies 13 03508 g007
Figure 8. Scenario 1—Value of the objective function.
Figure 8. Scenario 1—Value of the objective function.
Energies 13 03508 g008
Table 1. Cost of energy in R$/kWh at the white tariff (R$ is the Brazilian real, official currency).
Table 1. Cost of energy in R$/kWh at the white tariff (R$ is the Brazilian real, official currency).
SpotsTimeCost (R$/kWh)
Peak17:30 h to 20:29 h0.83916
Intermediatefrom16:30 h to17:29 h0.53394
from 20:30 h to 21:29 h
Off-peak21:30 h to 16:29 h0.39765
Source: ([18]).
Table 2. Combinations of sub-indices.
Table 2. Combinations of sub-indices.
VariablesCombinations
123456
sub1OPOPIIPP
sub2OPOPIIPP
sub3IPOPPOPI
Table 3. Operating data for scenario 1.
Table 3. Operating data for scenario 1.
First Day30 Days
Battery usage costR$ 41.54R$ 980.58
Cost of using the turbineR$ 180.30R$ 7136.20
Total operating costR$ 221.84R$ 8116.78
Remaining energy creditR$ 18.78R$ 19.57
Table 4. Operating data for scenario 2.
Table 4. Operating data for scenario 2.
First Day30 Days
Battery usage costR$ 44.81R$ 2280.71
Cost of using the turbineR$ 263.5R$ 10103.93
Total operating costR$ 308.31R$ 12384.64
Remaining energy creditR$ 8.90R$ 0.00
Table 5. Operating data for scenario 3.
Table 5. Operating data for scenario 3.
First Day30 Days
Battery usage costR$ 32.57R$ 798.07
Cost of using the turbineR$ 187.64R$ 7724.09
Total operating costR$ 220.21R$ 8522.17

Share and Cite

MDPI and ACS Style

Conte, E.; Mendes, P.R.C.; Normey-Rico, J.E. Economic Management Based on Hybrid MPC for Microgrids: A Brazilian Energy Market Solution. Energies 2020, 13, 3508. https://doi.org/10.3390/en13133508

AMA Style

Conte E, Mendes PRC, Normey-Rico JE. Economic Management Based on Hybrid MPC for Microgrids: A Brazilian Energy Market Solution. Energies. 2020; 13(13):3508. https://doi.org/10.3390/en13133508

Chicago/Turabian Style

Conte, Eduardo, Paulo R. C. Mendes, and Julio E. Normey-Rico. 2020. "Economic Management Based on Hybrid MPC for Microgrids: A Brazilian Energy Market Solution" Energies 13, no. 13: 3508. https://doi.org/10.3390/en13133508

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop