Next Article in Journal
Evaluation of Current Signature in Bearing Defects by Envelope Analysis of the Vibration in Induction Motors
Next Article in Special Issue
Variable Renewable Energy and Market Design: New Products and a Real-World Study
Previous Article in Journal
Hydrogen Production from Formic Acid Attained by Bimetallic Heterogeneous PdAg Catalytic Systems
Previous Article in Special Issue
The Application of Ontologies in Multi-Agent Systems in the Energy Sector: A Scoping Review
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:

Reactive Power Management Considering Stochastic Optimization under the Portuguese Reactive Power Policy Applied to DER in Distribution Networks

INESC TEC - INESC Technology and Science, Centre for Power and Energy Systems, 4200-465 Porto, Portugal
INESC-ID, Department of Electrical and Computer Engineering, Instituto Superior Técnico-IST, Universidade de Lisboa, 1049-001 Lisbon, Portugal
EDP Distribution; 1050-121 Lisbon, Portugal
Author to whom correspondence should be addressed.
Energies 2019, 12(21), 4028;
Original submission received: 1 October 2019 / Revised: 16 October 2019 / Accepted: 21 October 2019 / Published: 23 October 2019
(This article belongs to the Special Issue Multi-Agent Energy Systems Simulation)


Challenges in the coordination between the transmission system operator (TSO) and the distribution system operator (DSO) have risen continuously with the integration of distributed energy resources (DER). These technologies have the possibility to provide reactive power support for system operators. Considering the Portuguese reactive power policy as an example of the regulatory framework, this paper proposes a methodology for proactive reactive power management of the DSO using the renewable energy sources (RES) considering forecast uncertainty available in the distribution system. The proposed method applies a stochastic sequential alternative current (AC)-optimal power flow (SOPF) that returns trustworthy solutions for the DSO and optimizes the use of reactive power between the DSO and DER. The method is validated using a 37-bus distribution network considering real data. Results proved that the method improves the reactive power management by taking advantage of the full capabilities of the DER and by reducing the injection of reactive power by the TSO in the distribution network and, therefore, reducing losses.

1. Introduction

The implementation of renewable energy sources (RES) and the deployment of distributed energy resources (DER) have created a trend of evolution in the distribution network that requires the adaptation of the conventional practices to handle the behavior that is related to the RES [1]. These new procedures are compelled to have a more proactive role by the distribution system operator (DSO), controlling and/or contracting DER to deal with voltage and line/transformers congestions problems [2]. Incorporating forecast in the system operation of the DSO, as well as creating contract services with the DER, where the power flexibility is enabled to change the expected operating point, can contribute to resolve the network operational problems [3]. The power flexibility may be divided for active or reactive power, which can assist in the network problems at a certain cost. This will ensure that the DSO can maintain the ability of granting network access to consumers and producers, with power quality, safety, and stability.
The transmission system operator (TSO) and DSO coordination may be a path to explore as DSO finds here the opportunity to coordinate a reactive power service with the TSO. This coordination intends to avoid voltage and/or congestion problems in the transmission system assuring that the distribution continues working without problems. Depending on the policies and agreements, this service can be remunerated given an extra advantage to the DERs. In fact, preventive reactive power management models are emerging as a potential solution for improving the coordination between the DSO and the TSO, while ensuring proper levels of voltage control in the system, as shown in [4].
There are many literature examples regarding approaches on reactive power management with fixed active power injection as in [5,6]. These, however, do not consider networks with strong RES penetration. A stochastic approach for ensuring voltage stability is proposed in [7]. The method considers a two-stage stochastic model with multi-objectives, such as minimization of power losses, operation, and management costs and wind power costs. Similarly, [8] proposes a stochastic model for corrective voltage control under severe contingencies, considering the uncertainty of wind power producer and consumer demand. A coordinated active and reactive optimization of an active distribution network considering energy storage systems and relaxed optimal power flow is proposed in [9]. It proposes a multi-objective function for minimizing power losses, operation costs and voltage deviation, however, the reactive power provision to assist in the TSO/DSO coordination is disregarded.
Most of these works disregard the full behavior of the distribution grid, introducing approximations and linearized versions of the full alternative current optimal power flow (AC-OPF). This can lead to sub-optimal solutions that may be infeasible. Thus, [10] proposes a voltage sensitivity analysis for adjusting the reactive power setpoint of DER in order to improve voltage stability and provide reactive power to upper levels of the network. Complementarily, [11] models an adaptive control of the reactive power setpoints of wind farms to assist the TSO/DSO coordination, minimizing the losses while ensuring proper level of reactive power provision. Still, none of these works can schedule in advance adequate reactive power setpoints for DER, considering the uncertain and variable behavior of RES.
In this scope, the main objective of this paper is to propose a stochastic reactive power management model to assist the DSO in the reactive power management ahead of the operating hour. The main contributions of this paper are threefold:
  • To design a two-stage stochastic reactive power management model considering a full AC-OPF. It has the purpose of aiding the decision-making of the DSO under the uncertain and variable behavior of RES connected in the distribution network;
  • To propose a reactive power service provided by the DSO to the TSO in advance of the operating hour. This service can be used by the TSO in the transmission system management, defining a reactive power operation in the TSO/DSO boundary substations. This can help the TSO in different services like the voltage control and congestion management in the transmission system;
  • Take into account the Portuguese reactive power policy on distribution grids, assessing the behavior and applicability of the proposed model.
This paper is structured as follows: Section 2 describes the Portuguese reactive power policies and introduces the sequential AC-optimal power flow (SOPF) tool model; Section 3 presents the mathematical formulation of the stochastic approach for reactive power management; Section 4 validates the proposed model based on a 37-bus distribution network with real data; Section 5 presents the most important conclusions.

2. Reactive Power Policies

2.1. Portuguese Reactive Power Policy

The Portuguese reactive power policy for the distribution network is based on the total inductive and capacitive reactive power that a generating unit produces in an hour [12]. The reactive power is dependent on the active power injected by the generating unit in the form of tan ϕ. The reactive power must have a deviation of less than +/−5% from the defined tan ϕ.
Each day is divided into four periods: peak, full hours, valley and super valley. Yet, reactive power has only two classifications: peak and off-peak. There are two different schemes referring to the generating units. The ordinary scheme encompasses conventional units, whereas the special scheme, RES, industrial and urban waste, cogeneration and micro-producers. The ordinary scheme is limited to tan ϕ = 0.4 for the peak period and tan ϕ = 0 for off-peak hours.
For the special scheme, Table 1 illustrates the relationship between active and reactive power.
Similarly, there is a contractual agreement between the TSO and the DSO whereby the upstream connection will have a profile of tan ϕ as regulated for the special scheme. This means that between seven–22 h the tan ϕ should be within −0.3 and 0.3 and in the remaining hours tan ϕ = 0, with a deviation of less than +/−5% of the tan ϕ. Failure to do so results in a penalty applied to the entity responsible for the failure. This penalty is modelled in steps of tan ϕ infringement for peak hours. Equation (1) illustrates the current 3 steps violation of the limits penalties [13,14]:
0.3 tan ϕ < 0.4 , 0.4 tan ϕ < 0.5 , 0.5 tan ϕ
with penalty factor applied to the reference price of reactive power of 0.33, 1 and 3 for each respective step.

2.2. Proactive Reactive Power Management

Though DERs are applying current reactive power policies, the distribution system does not take full advantage of DER’s technical capabilities (especially RES) or consider their variable and intermittent behavior. More precisely, the uncertain DERs production is often overlooked, and their reactive power contribution is as well. This may lead to difficulties in reactive power management, especially in distribution networks with a high level of DER integration. In this scope, the SOPF tool proposed in this paper utilizes a two-stage stochastic reactive power management model (presented in Figure 1) to account for the uncertainty and variability related to the DER. The model has been developed for single period simulation using information from a representative set of scenarios for the DER. Stochastic optimization is used as a means to handle the uncertainty of DER. Such a probabilistic approach is integrated into the reactive power management problem through scenarios of active power generation of the DER. As DER’s active power generation is uncertain, reactive power can be as well. Still, reactive power generation curve depends on the level of active power generation, and therefore, the reactive power can be constrained by tan ϕ.
In the first stage, the DSO will contract in a day-ahead operating stage, the upward and downward reactive power flexibility that will be used during the operating stage. This represents the maximum reactive power fluctuation of the expected reactive operating point of the DER.
As for the operating stage, the second stage of the model, the DSO will activate the reactive power flexibility needed to overcome the system requirements, respecting the reactive power policy and the technical characteristics of the network (i.e., voltage and thermal limits).
The SOPF tool will then have as its output the amount and type of flexibility the DSO may need to operate the distribution system in expectation, ahead of the operating hour, outputting the upward and downward reactive power flexibility. The upward reactive power flexibility stands for increasing reactive power injection or decreasing reactive power absorbing in the grid, while downward reactive power flexibility stands for the opposite of the upward reactive power flexibility. Note that the reactive power flexibility should be contracted to the distributed generation to maintain the reactive power profile agreed with the TSO while outputting the optimal scheduling of the static equipment (capacitor banks and transformers with on-load tap changer—OLTC) managed by the DSO.
Nevertheless, the SOPF tool is scalable to consider distribution networks with hundreds of nodes, DER, and scenarios at the expense of computational effort. In addition, it does not consider network reconfiguration (which is a common tool for distribution grid management) but can be adapted to include it. Still, this would lead to increased complexity of the tool, hence the computational effort. Therefore, a tradeoff between system complexity and computational effort must be performed to ensure reliable solutions within the DSO operating window for day-ahead simulation.

3. Mathematical Formulation

The proactive reactive power management accounts for the uncertainty factor of renewable energy sources (RES). By utilizing the policies mentioned in Section 3.1, the proposed tool aims to manage the reactive power of the distribution network and to provide reactive power control according the TSO needs.

3.1. Objective Function

The objective Function (2) aims to minimize the operating costs of the DSO to maintain the distribution grid operating within the limits. It includes the costs related to each of the stages, in which the first stage (FDA) comprises the here-and-now decisions and the second-stage (FRT) the wait-and-see decisions.
min F D A + F R T
where F D A and F R T are described as in (3) and (4).
F D A = g = 1 N G ( C D E R ( g ) Q , U P R D E R ( g ) Q , U P + C D E R ( g ) Q , D W R D E R ( g ) Q , D W ) + p T S O Q , U P R L X T S O Q , U P + p T S O Q , D W R L X T S O Q , D W
F R T = ω = 1 Ω π ( ω ) g = 1 N G C D E R ( g ) a c t r D E R ( g , ω ) Q , U P - r D E R ( g , ω ) Q , D W + C D E R ( g ) c u t P D E R ( g , ω ) c u t + p T S O r l x , a c t r l x T S O ( ω ) Q , U P - r l x T S O ( ω ) Q , D W + p T S O ( ω ) E x t r a r l x T S O ( ω ) E x t r a + l = 1 N L C ( l ) D R P ( l , ω ) D R + c b = 1 N C B l v = 1 N l e v e l s C C B ( c b ) Z C B ( c b , ω , l v ) + t r f = 1 N T R F l v = 1 N l e v e l s C T R F ( t r f ) Z T R F ( t r f , ω , l v )
F D A represents the first-stage decision of contracting reactive power flexibility. Here, DER provides cost inflicted, upward and downward reactive power flexibility. It is mathematically presumed that the TSO request of reactive power may be needed to be relaxed (represented by R L X ). This mathematical relaxation proposes the possibility of a certain deviation of the requested tan ϕ value in the upstream connection and is affected by its own penalty. The tan ϕ value is dependent on agreements between the TSO and the DSO.
Concerning F R T , it portrays the real-time operating costs of the distribution network. By the cost of an activation price, generators may change their reactive power operating point. In cases of higher need of flexibility (when the DSO cannot entirely provide the service), a different relaxation is activated through the binary variable rlxExtra allowing the DSO to provide part of the TSO request. By applying an even greater cost, it is possible to curtail the generators active power for relaxing situations where active power is creating problems in the distribution network. Demand response can also be contemplated to decrease the active power consumption, which in turn will reduce the reactive power consumption, under even greater penalties for this relaxation. These alternatives options will ensure that DSO prioritizes DER and consumers over providing the reactive power service to the TSO.
Capacitor banks and the transformers OLTC ability are also considered with a cost related to the lifetime degradation of the equipment by changing the tap set point [16].

3.2. First-Stage Constraints

The first-stage constraints, seen in (5) and (6), represent the DER flexibility for upward and downward reactive power. Similar constraints are applied to the mathematical relaxation of the external supplier flexibility.
R D E R ( g ) Q , U P , M i n R D E R ( g ) Q , U P R D E R ( g ) Q , U P , M a x , g { 1 , , N G }
R D E R ( g ) Q , D W , M i n R D E R ( g ) Q , D W R D E R ( g ) Q , D W , M a x , g { 1 , , N G }

3.3. Second-Stage Constraints

The second-stage constraints refer to the operating stage constraints that are introduced by the uncertainty of RES production. DER active power relates to its operating point for the energy schedule. This value is assumed as fixed by the conditional mean forecast for active power generation. This leads to the active power curtailment in the operating stage to be limited by:
P D E R ( g , ω ) c u t P D E R ( g ) o p + Δ P D E R ( g , ω ) , g { 1 , , N G } , ω { 1 , , Ω }
The difference of active power between the realization scenario and the expected forecast in each scenario is represented as ΔP. The active power flowing from the upstream connection (TSO) is limited by the contracted boundaries between the TSO and the DSO and by the capacity of the transformers at the substation interconnection. Active power can be injected/absorbed by the TSO as seen in (8).
P T S O ( ω ) M a x P T S O ( ω ) P T S O ( ω ) M a x , ω { 1 , , Ω }
In addition, the second-stage also includes the bounds of the second-stage variables and the non-anticaptivity constraints, given by:
r D E R ( g , ω ) Q , U P R D E R ( g ) Q , U P , g { 1 , , N G } , ω { 1 , , Ω }
r D E R ( g , ω ) Q , D W R D E R ( g ) Q , D W , g { 1 , , N G } , ω { 1 , , Ω }
Constraints (9) and (10) are also applied to the mathematical relaxation represented through external suppliers.
Each DER has the possibility to provide inductive or capacitive reactive power under the operation limits defined in the Portuguese regulation.
( P D E R ( g ) o p + Δ P D E R ( g , ω ) P D E R ( g , ω ) c u t ) tan ϕ Q D E R ( g ) o p + r D E R ( g , ω ) Q , U P r D E R ( g , ω ) Q , D W ( P D E R ( g ) o p + Δ P D E R ( g , ω ) P D E R ( g , ω ) c u t ) tan ϕ , g { 1 , , N G } , ω { 1 , , Ω }
In (12) and (13), it is represented the upward/downward activation of the mathematical relaxation for the TSO. This relaxation considers a high penalty because the main goal is to provide the service for the TSO request.
r l x T S O ( ω ) Q , U P R L X T S O Q , U P , ω { 1 , , Ω }
r l x T S O ( ω ) Q , D W R L X T S O Q , D W , ω { 1 , , Ω }
As a last resource to find a solution for congestion and voltage problems, demand response is used by the DSO, being constrained by:
P L ( l , ω ) D R P L ( l ) , l { 1 , , N L } , ω { 1 , , Ω }
Then, the actual reactive power consumption of consumer l is given by:
Q L ( l , ω ) = ( P L ( l ) P L ( l , ω ) D R ) tan ϕ , l { 1 , , N L } , ω { 1 , , Ω }
where tan ϕ can be settled at 0.3 as assumed in [17].
Regarding the capacitor banks and transformers with OLTC, these devices are owned by the DSO and located in the substation. This means that the DSO has the knowledge of their characteristics. Capacitor banks are used to provide reactive power being modelled by levels of reactive power as in (16) and (17).
Q C B ( c b , ω , l v ) = Q C B ( c b , l v ) l e v e l s X C B ( c b , ω , l v ) , c b { 1 , , N C B } , ω { 1 , , Ω } , l v { 1 , , N l e v e l s }
l v = 1 N l e v e l s X C B ( c b , ω , l v ) = 1 , c b { 1 , , N C B } , ω { 1 , , Ω }
The cost of changing the tap of the capacitor banks is multiplied by ZCB, which represents the difference between the tap selection in the present period with the previous one, which is constrained by:
X C B ( c b , ω , l v ) t 1 X C B ( c b , ω , l v ) Z C B ( c b , ω , l v ) ,
X C B ( c b , ω , l v ) X C B ( c b , ω , l v ) t 1 Z C B ( c b , ω , l v ) , c b { 1 , , N C B } , ω { 1 , , Ω } , l v { 1 , , N l e v e l s }
The transformers with OLTC constraints for voltage control are modelled as:
Δ V T R F ( t r f , ω , l v ) = V T R F ( t r f , l v ) l e v e l s X T R F ( t r f , ω , l v ) , ω { 1 , , Ω } , t r f { 1 , , N T R F } , l v { 1 , , N l e v e l s }
l v = 1 N l e v e l s X T R F ( t r f , ω , l v ) = 1 , ω { 1 , , Ω } , t r f { 1 , , N T R F }
V s b ( ω ) = V s b ( ω ) r e f + l v = 1 N l e v e l s Δ V T R F ( t r f , ω , l v ) , ω { 1 , , Ω } , t r f { 1 , , N T R F }
where ΔVTRF represents the voltage level to be activated in the transformer by the DSO. V T R F l e v e l s is a parameter representative of all possible taps of the transformer, and XTRF is the binary variable for selection of a unique tap level. V s b r e f is the reference of voltage magnitude at the substation before the use of OLTC ability by the transformer, while the final voltage value at the substation is denoted by Vsb. In addition, the cost for changing the tap of the transformer is included in the objective function (5), where ZTRF is the linearization of the absolute function, as the capacitor banks. Thus, the constraints are:
X T R F ( t r f , ω , l v ) t 1 X T R F ( t r f , ω , l v ) Z T R F ( t r f , ω , l v ) ,
X T R F ( t r f , ω , l v ) X T R F ( t r f , ω , l v ) t 1 Z T R F ( t r f , ω , l v ) , t r f { 1 , , N T R F } , ω { 1 , , Ω } , l v { 1 , , N l e v e l s }
Moreover, an AC-OPF is used to model the power flow in the distribution network. Therefore, the active power balance in each bus is modelled as:
g = 1 N G ( P D E R ( g ) o p , i + Δ P D E R ( g , ω ) i P D E R ( g , ω ) c u t ) + P T S O i + l = 1 N L ( P L ( l , ω ) D R , i P L ( l ) i ) = G i i V i ( ω ) 2 + V i ( ω ) j T L i V j ( ω ) ( G i j cos θ i j ( ω ) + B i j sin θ i j ( ω ) ) , i { 1 , , N B u s } , ω { 1 , , Ω } , θ i j ( ω ) = θ i ( ω ) θ j ( ω )
Additionally, the reactive power balance is given by:
g = 1 N G Q D E R ( g , ω ) o p , i + r D E R ( g , ω ) Q , U P , i - r D E R ( g , ω ) Q , D W , i - l = 1 N L Q L ( l , s ) i + c b = 1 N C B l v = 1 N l e v e l s Q C B ( c b , ω , l v ) i + Q T S O ( ω ) o p , i + r l x T S O ( ω ) Q , U P , i - r l x T S O ( ω ) Q , D W , i + r l x T S O ( ω ) E x t r a , i = V i ( ω ) j T L i V j ( ω ) G i j sin θ i j ( ω ) - B i j cos θ i j ( ω ) - B i i V i ( ω ) 2 , i 1 , . . . , N B u s , ω 1 , . . . , Ω , θ i j ( ω ) = θ i ( ω ) - θ j ( ω )
There is also the consideration that the energy flowing through the distribution lines has a thermal limit that should not be exceeded, being limited as in (27) and (28).
| V i ( ω ) ¯ [ y i j ¯ V i j ( ω ) ¯ + y s h ( i ) ¯ V i ( ω ) ¯ ] * | S T L M a x , V i j ( ω ) ¯ = V i ( ω ) ¯ V j ( ω ) ¯ , i , j { 1 , , N B u s } , ω { 1 , , Ω } , i j
| V j ( ω ) ¯ [ y i j ¯ V j i ( ω ) ¯ + y s h ( j ) ¯ V j ( ω ) ¯ ] * | S T L M a x , V j i ( ω ) ¯ = V j ( ω ) ¯ V i ( ω ) ¯ , i , j { 1 , , N B u s } , ω { 1 , , Ω } , i j
Voltage magnitude must stay between the limits established by the DSO, assuming the slack bus voltage magnitude as fixed.
V M i n i V i ( ω ) V M a x i , ω { 1 , , Ω }

4. Case Study

This section presents the case study used to apply and test the model developed for the Portuguese reactive management policies. The simulation has been carried out with MATLAB and GAMS tools.

4.1. 37-Bus Distribution System

The present case study is based on a 37-bus distribution network (originally presented in [18]) that was adapted to support five DER in the form of three combined heat and power (CHPs) and two wind turbines, as one can see in Figure 2.
The distribution network is connected to a high voltage network through two power transformers of 10 MVA each. It also possesses 22 consumption points that represent 1908 consumers (1850 residential consumers, two industrial consumers, 50 commercial stores, and six service buildings) [18], with the consumption characteristics and profile being adopted from [19]. The total active and reactive power consumption in the network is summarized in Table 2.
There are two transformers and two capacitor banks being considered in the network. More precisely, the transformers have OLTC ability with a maximum voltage deviation of 0.1 p.u. In addition, the capacitor banks also have steps with a total capacity of reactive power production of 5.4 MVAr (one capacitor bank with 4.5MVAr and the other with 0.9 MVAr). The cost reflecting the use of the transformers and capacitor banks (with the OLTC ability that reduces the equipment lifetime) is determined by [16]. It is assumed that both types of equipment are owned and managed by the DSO.
The network is composed of different DER. More precisely, three CHP units and two wind turbines which can provide reactive power flexibility, accordingly to their technical limits.
It is assumed that the DER active power generation should be fully absorbed by the network, following the standard regulation. Therefore, Table 3 shows the generic characteristics of the DER, including the expected operating point (e.g., wind power forecast).
The DER characteristics, as well as the cost for upward and downward reactive power flexibility, are given in Table 4.
RESs are modelled through stochastic variables. Thus, upward and downward reactive power flexibility is constrained by their technical limits. In [20,21] can be found the scenarios used to model the uncertainty of wind power forecast. A set of 10 scenarios were extracted for each wind generator. In this case study, the standard reactive power policy of the DER is subjected to the Portuguese regulation, following Table 1.
Regarding the upstream connection, it must be established the tan ϕ agreed between the TSO and the DSO for the substation of interconnection. In this case, it has been considered that the tan ϕ varies throughout the day according to the regulation established in [12]. More precisely, the TSO must provide a tan ϕ of 0 with +/−5% of deviation between 22:00 and the 07:00. In the remaining period, the tan ϕ is expected to be 0.3 with +/−5% deviation. Note that the tan ϕ can vary from these values, taking into account specific agreement between the DSO and the TSO for a specific substation of interconnection. The case study was constructed assuming that active power from DER can be greater or less than the load on the network. Thus, the TSO can either inject or absorb active power depending on the realization of wind generation over time.

4.2. Results

The tool will attempt, by using capacitor banks, transformers with OLTC and DER, to contract optimal reactive power flexibility and with this, meet the desired reactive power profile defined by the DSO.
It is important to note that active power production in the DERs is fixed according to the previous forecast of the energy dispatched for each hour. Wind power plants have a forecast point determined for the next 24 h along with 10 possible hourly scenarios, as in Figure 3.
Using wind active power as an input and considering the flexibility limits, the expected reactive power production operation is determined by the tool for each operation hour point. The tan ϕ of both wind power plants is kept within the +/−5% range in every scenario. Figure 4 shows the evolution of tan ϕ overtime for the wind power plant 1.
Figure 5 depicts the tan ϕ profile at the substation. As was predicted, the tan ϕ values are as close as possible to 0.3 between 7–22 h and a value of 0 for tan ϕ for the other hours, for every scenario, to guaranty that no penalties to be applied to the DSO. DERs reactive power generation, the capacitor banks and the transformers with OLTC ability have an important role in securing this result.
Figure 6 shows the reactive power production of capacitor bank 1. The level of reactive power varies according to the DSO needs. For periods between 22:00 and 07:00, the level of reactive power production is high, reaching the maximum production in some periods. During the day, the reactive power production of the capacitor bank comes to zero, since the TSO is injecting a significant amount of reactive power which is sufficient to support the system. It is also worth mentioning that the step position does not change more than four times per day, which reduces equipment degradation over time.
Capacitor bank 2 follows the same behavior as capacitor bank 1, as can been seen in Figure 7. In fact, as capacitor bank 2 is much smaller than capacitor bank 1, the capacitor bank 2 is often used to complement the reactive power between steps of the capacitor bank 1.
As with the capacitor banks, OLTC tap changes are reduced, even maintaining the same position throughout the 24 h. It is noteworthy that as the optimization considers the day-ahead forecast point, it leads to the modification of the OLTC tap hourly positions (Figure 8). Note that both transformers present the same behavior as presented in Figure 8.

5. Conclusions

This work proposes a new tool to be used by the DSO in reactive power management, exploiting DER flexibility. It explores the use of a two-stage stochastic model that manages the uncertainty of wind power producers. With this tool, TSO reactive power requirements can be provided by contracting the service to the DSO, which may be an alternative to investments in reactive power control equipment in the transmission network. Simulations were done for a 37-bus distribution network, whose results demonstrate the feasibility of the proposed tool. The selection of the DER that could provide reactive power flexibility, under the different operation conditions introduced, was proven and the service was provided to the TSO.

Author Contributions

Conceptualization, T.S. (Tiago Soares), L.C., H.M., T.S. (Tiago Simão) and M.L; Methodology, T.S. (Tiago Soares), L.C. and H.M.; Software, T.A. and T.S. (Tiago Soares); Validation, T.A., T.S. (Tiago Soares), L.C. H.M., T.S. (Tiago Simão) and M.L; Visualization, T.A. and T.S. (Tiago Soares); Writing—original draft, T.A., T.S. (Tiago Soares), L.C. and H.M., Writing—review & editing, T.A., T.S. (Tiago Soares), L.C., H.M, T.S. (Tiago Simão) and M.L.


This work was financed by the European Union’s Horizon 2020 through the EU framework Program for Research and Innovation 2014–2020, within the EU-TDX-ASSIST project under the agreement No. 774500. This work was also supported by national funds through Fundação para a Ciência e Tecnologia with reference UID/CEC/50021/2019.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.


Δ P Power deviation in each scenario
B Imaginary part in admittance matrix
C Cost
G Real part in admittance matrix
N Number of unit resources
p Penalty for external supplier’s flexibility
y ¯ Series admittance of line that connects two buses
y ¯ s h Shunt admittance of line that connects two buses
θ Voltage angle
P Active power
Q Reactive power
r Reactive power flexibility used in the operating stage
r l x Reactive power relaxation in the operating stage
R Reactive power flexibility contracted at day-ahead stage
R L X Reactive power relaxation at day-ahead stage
S Apparent power
V Voltage magnitude
V ¯ Voltage in polar form
V s b Voltage at slack bus
Δ V Voltage level activated by the DSO in the transformer
X Binary variable
Z Auxiliary variable for absolute function linearization
ω Index of scenarios
c b Index of capacitor bank units
C B Capacitor bank abbreviation
g Index of generators units
i , j Bus index
l Index of load consumers
L Load consumers abbreviation
l v Index of levels (tap changing) for capacitor banks and transformers
T S O Transmission system operator
t Time index
t r f Index of transformer units
T R F Transformer abbreviation
a c t Activation cost of resources in real-time stage
c u t Generation curtailment
M a x Maximum limit
M i n Minimum limit
o p Operating point of the power resource
Q , D W Downward reactive power flexibility
Q , U P Upward reactive power flexibility
D R Demand response of consumer l


  1. Pérez-Arriaga, I.J.; Ruester, S.; Schwenen, S.; Battle, C.; Glachant, J.-M. From distribution networks to smart distribution systems: Rethinking the regulation of European electricity DSOs. Util. Policy 2014, 31, 229–237. [Google Scholar][Green Version]
  2. Eurelectric Active Distribution System Management: A Key Tool for the Smooth Integration of Distributed Generation. Available online: (accessed on 22 October 2019).
  3. Soares, T.; Bessa, R.J. Proactive management of distribution grids with chance-constrained linearized AC OPF. Int. J. Electr. Power Energy Syst. 2019, 109, 332–342. [Google Scholar] [CrossRef]
  4. Morais, H. TDX-ASSIST: Agreed Models, Use Case List, and Use Case Description in UML, D1.2. Available online: (accessed on 22 October 2019).
  5. Gayatri, M.T.L.; Parimi, A.M.; Pavan Kumar, A.V. A review of reactive power compensation techniques in microgrids. Renew. Sustain. Energy Rev. 2018, 81, 1030–1036. [Google Scholar] [CrossRef]
  6. Parida, S.K.; Srivastava, S.C.; Singh, S.N. A review on reactive power management in electricity markets. Int. J. Energy Sect. Manag. 2011, 5, 201–214. [Google Scholar] [CrossRef]
  7. Mohseni-Bonab, S.M.; Rabiee, A. Optimal reactive power dispatch: A review, and a new stochastic voltage stability constrained multi-objective model at the presence of uncertain wind power generation. IET Generation, Transm. Distrib. 2017, 11, 815–829. [Google Scholar] [CrossRef]
  8. Rabiee, A.; Soroudi, A.; Mohammadi-Ivatloo, B.; Parniani, M. Corrective voltage control scheme considering demand response and stochastic wind power. IEEE Trans. Power Syst. 2014, 29, 2965–2973. [Google Scholar] [CrossRef]
  9. Wang, L.; Wang, X.; Jiang, C.; Yin, S.; Yang, M. Dynamic coordinated active-reactive power optimization for active distribution network with energy storage systems. Appl. Sci. 2019, 9, 1129. [Google Scholar] [CrossRef]
  10. Kang, S.J.; Kim, J.; Park, J.W.; Baek, S.M. Reactive power management based on voltage sensitivity analysis of distribution system with high penetration of renewable energies. Energies 2019, 12, 1493. [Google Scholar] [CrossRef]
  11. Stock, D.S.; Sala, F.; Berizzi, A.; Hofmann, L. Optimal control of wind farms for coordinated TSO-DSO reactive power management. Energies 2018, 11, 173. [Google Scholar] [CrossRef]
  12. ERSE Regulamento da Rede de distribuição—Portaria 596-2010. Available online: 596-2010 RRT RRD.pdf (accessed on 22 October 2019).
  13. ERSE Despacho no3/2010. Available online: (accessed on 22 October 2019).
  14. ERSE Informação Sobre Faturação de Energia Reativa: Princípios e Boas Práticas. Available online:ções/Recomendação de energia reactiva.pdf (accessed on 22 October 2019).
  15. Simão, T.; Gama, P.; Louro, M.; Carvalho, L.; Gloria, G.; Pestana, R.; Reis, F.; Soares, T.; Silva, J. TDX-ASSIST: Beyond state of art in TSO-DSO interoperability—The Portuguese demonstrator. In Proceedings of the 25th International Conference on Electricity Distribution, Madrid, Spain, 3–6 June 2019; pp. 3–6. [Google Scholar]
  16. Zhang, Y.J.; Ren, Z. Optimal reactive power dispatch considering costs of adjusting the control devices. IEEE Trans. Power Syst. 2005, 20, 1349–1356. [Google Scholar] [CrossRef]
  17. ERSE Despacho no 7253/2010. Available online: 7253_2010.pdf (accessed on 22 October 2019).
  18. Allan, R.N.; Billinton, R.; Sjarief, I.; Goel, L.; So, K.S. A reliability test system for educational purposes—Basic distribution-system data and results. IEEE Trans. Power Syst. 1991, 6, 813–820. [Google Scholar] [CrossRef]
  19. Morais, H.; Sousa, T.; Soares, J.; Faria, P.; Vale, Z. Distributed energy resources management using plug-in hybrid electric vehicles as a fuel-shifting demand response resource. Energy Convers. Manag. 2015, 97, 78–93. [Google Scholar] [CrossRef]
  20. Pinson, P. Wind energy: Forecasting challenges for its operational management. Stat. Sci. 2013, 28, 564–585. [Google Scholar] [CrossRef]
  21. Bukhsh, W.A.; Zhang, C.; Pinson, P. Data for Stochastic Multiperiod OPF Problems. Available online: (accessed on 22 October 2019).
Figure 1. Two-stage optimization model embedded in the sequential AC-optimal power flow (SOPF) tool [15].
Figure 1. Two-stage optimization model embedded in the sequential AC-optimal power flow (SOPF) tool [15].
Energies 12 04028 g001
Figure 2. 37-Bus distribution network (adapted from [18]).
Figure 2. 37-Bus distribution network (adapted from [18]).
Energies 12 04028 g002
Figure 3. Point forecast and scenarios of the wind power plant 1 throughout 24 h.
Figure 3. Point forecast and scenarios of the wind power plant 1 throughout 24 h.
Energies 12 04028 g003
Figure 4. Forecasted and realized tan ϕ of the wind power plant 1 throughout 24 h.
Figure 4. Forecasted and realized tan ϕ of the wind power plant 1 throughout 24 h.
Energies 12 04028 g004
Figure 5. Forecasted and realized tan ϕ at the main substation throughout 24 h.
Figure 5. Forecasted and realized tan ϕ at the main substation throughout 24 h.
Energies 12 04028 g005
Figure 6. Reactive power production of capacitor bank 1 throughout 24 h.
Figure 6. Reactive power production of capacitor bank 1 throughout 24 h.
Energies 12 04028 g006
Figure 7. Reactive power production of capacitor bank 2 throughout 24 h.
Figure 7. Reactive power production of capacitor bank 2 throughout 24 h.
Energies 12 04028 g007
Figure 8. Transformer 1 with OLTC ability throughout 24 h.
Figure 8. Transformer 1 with OLTC ability throughout 24 h.
Energies 12 04028 g008
Table 1. Reactive power policy for the special scheme [12].
Table 1. Reactive power policy for the special scheme [12].
Voltage Leveltan ϕ
Peak PeriodOff-Peak Period
High Voltage00
Medium Voltage (P > 6MW)00
Medium Voltage (P ≤ 6MW)0.30
Low Voltage00
Table 2. Active and reactive power consumption characteristics.
Table 2. Active and reactive power consumption characteristics.
Load.BusActive Power Consumption (kW)Reactive Power Consumption (kVAr)
Table 3. General characteristics and operating point for distributed energy resources (DER).
Table 3. General characteristics and operating point for distributed energy resources (DER).
DERNumber of UnitsTotal Installed PowerOperating Point Pop (MW)
CHP32.5 (MVA)
Wind220 (MVA)11.3114.0115.34
Transmission system operator (TSO)120 (MVA)---
Table 4. DER reactive power costs.
Table 4. DER reactive power costs.
DERUpward Cost Cup (m.u./kVAr)Downward Cost Cdw (m.u./kVAr)

Share and Cite

MDPI and ACS Style

Abreu, T.; Soares, T.; Carvalho, L.; Morais, H.; Simão, T.; Louro, M. Reactive Power Management Considering Stochastic Optimization under the Portuguese Reactive Power Policy Applied to DER in Distribution Networks. Energies 2019, 12, 4028.

AMA Style

Abreu T, Soares T, Carvalho L, Morais H, Simão T, Louro M. Reactive Power Management Considering Stochastic Optimization under the Portuguese Reactive Power Policy Applied to DER in Distribution Networks. Energies. 2019; 12(21):4028.

Chicago/Turabian Style

Abreu, Tiago, Tiago Soares, Leonel Carvalho, Hugo Morais, Tiago Simão, and Miguel Louro. 2019. "Reactive Power Management Considering Stochastic Optimization under the Portuguese Reactive Power Policy Applied to DER in Distribution Networks" Energies 12, no. 21: 4028.

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