A Case Study on Distributed Energy Resources and Energy-Storage Systems in a Virtual Power Plant Concept: Technical Aspects

: The article presents calculations and power ﬂow of a real virtual power plant (VPP), containing a fragment of low and medium voltage distribution network. The VPP contains a hydropower plant (HPP), a photovoltaic system (PV) and energy storage system (ESS). The purpose of this article is to summarize the requirements for connection of generating units to the grid. Paper discusses the impact of the requirements on the maximum installed capacity of distributed energy resource (DER) systems and on the parameters of the energy storage unit. Firstly, a comprehensive review of VPP deﬁnitions, aims, as well as the characteristics of the investigated case study of the VPP project is presented. Then, requirements related to the regulation, protection and integration of DER and ESS with power systems are discussed. Finally, investigations related to inﬂuence of DER and ESS on power network condition are presented. One of the outcomes of the paper is the method of identifying the maximum power capacity of DER and ESS in accordance with technical network requirements. The applied method uses analytic calculations, as well as simulations using Matlab environment, combined with real measurement data. The obtained results allow the inﬂuence of the operating conditions of particular DER and ESS on power ﬂow and voltage condition to be identiﬁed, the maximum power capacity of ESS intended for the planed VPP to be determined, as well as the inﬂuence of power control strategies implemented in a PV power plant on resources available for the planning and control of a VPP to be speciﬁed. Technical limitations of the DER and ESS are used as input conditions for the economic simulations presented in the accompanying paper, which is focused on investigations of economic e ﬃ ciency. considered hydro power plant and energy storage system on voltage level.

measurements of a photovoltaic power plant in order to reveal the impact of power control strategy on the potential of the resources integrated with the VPP. The presented review of VPP definitions and aims, as well as a summary of VPP projects, are the motivation for this paper. Additionally, to obtain the economic issues and impact on electricity marked firstly the technical requirements must be assured. The contribution of this paper covers the current gap of knowledge related to the VPP project which exhibits in the real case limitations of utilization the DER and ESS. For example, this paper provides the real case example of calculation and simulation focused on the determination of maximum power capacity of the ESS planned In terms of VPP efficiency and sensitivity, it is important to identify the maximum level of ESS power capacity that can be connected in the planned node to be installed in the selected network node. Results of presented investigations formulate margin condition for the VPP resources. Another example of the contribution of the paper to the current knowledge gap is the attempt to determine the influence of the power regulation strategies applied in PV plants on the real power range available for the VPP control strategies. Using the real measurement investigations it was shown that reactive power consumption implemented in the PV inverters reduces the energy volume potentially available for VPP form the PV installations. Mentioned examples constitute the limitation for the VPP project and can be adapted to other VPP investments.
The aim of this paper is to identify possible limitations in the development of the VPP which might be related to the regulation, protection and integration of power generation units with power systems. The mentioned problem can be seen to be a crucial issue, especially on the preliminary stage of the VPP concept and when different approaches for the economic strategies for VPP are created. After the introduction section, which highlights the main motivations of this paper, Section 2 presents a literature review of the technical aspects of VPP. This includes recent investigations regarding network integration, as well as a review of a selected real case of VPP realization. The aim of Section 2 is to identify current problems and solutions related to VPP and to provide the range of functionality of current VPP projects. Section 3 highlights the problems regarding the investigations presented in this paper. It has to be emphasized that technical aspects of DER and ESS, associated with the VPP, can be considered on several levels. Thus, Section 3 consists of the identification of codes and technical standards that define the requirements and permissible limits of electrical power system parameters and power quality, protection schemes and active and reactive power control issues applied for distributed energy resources. An additional element described in Section 3 is the energy storage control and limitations coming from the charging and discharging characteristics of energy storage systems. The revealed aspects can be treated as boundary conditions for the identification of their impact on VPP planning and operation strategies. The main investigations are presented in Section 4, which starts with a description of the topology of a medium voltage network in the area of the investigated VPP. The investigations are based on a real VPP project and present results considering the investigation of the cooperation of a 1 MW hydropower plant with 0.5 MW battery energy storage connected to the same node of medium voltage distribution network and impact of their operating condition on power flow and voltage level in observed network belonging to the VPP, (b) identification of maximum power capacity of battery energy storage which can be connected to considered node of the VPP as well as identification of general grid capacity of the investigated fragment of the distribution network to connect possible DERs/ESSs, (c) the identification of the impact of power control strategy applied in a PV power plant on resources available for the VPP. The maximum power capacity of the ESS is understood as the rated power of the ESS determined by requirements for power quality parameters of the grid and requirements for the integration of the generation units with power systems. In presented investigations, the storage capacity of the considered ESS is fixed and is used as a margin condition for the simulations. The storage capacity determines the ESS operability usually reflected by available time for charging and discharging. The selection of storage capacity of the ESS is usually based on specific aim functions considering selected intentions of using the ESS like economic aspects or islanding mode. The maximum power capacity of the ESS is restricted by the standards and regulations addressed to cooperation with the grids. The presented analysis is based on simulations conducted in Matlab Energies 2020, 13, 3086 5 of 30 combined with real measurements. The initial condition for the calculation was based on the real measurements of load and generated power that represent a day of summer load peak demand. As a result of the investigation, the maximum power capacity of the considered ESS is identified with regards to the requirements for the permissible level of rapid voltage changes. Additionally, the impact of the power control strategy applied in a PV power plant on resources available for the VPP was also identified. In Section 5 a discussion about the influence of requirements for grid connection applicable to power generation units and its impact on limitation of the maximum power capacity of distributed energy resources and energy storage systems considered for planning operation of the VPP is provided in the broadest context. Section 6 presents the conclusions.
The identified limitations for the VPP, resulting from the technical aspects presented in this paper, are used as the input conditions for the economic investigations presented in the accompanying paper [36]. The paper presents the results of economic efficiency, including sensitivity analysis on price factors and DER production volumes, as well as the capacity of ESS. • Reference [37] introduces a regulation mechanism for a VPP. The calculation method of a virtual power plant's frequency performance is presented. The model proposed in the article enables the VPP's regulation performance score to be analyzed and the VPP's regulation control strategies to be simulated. The obtained results show that the strategy can reduce a VPP's variability caused by DGs.

•
Reference [38] presents the possibility of using µ-CHP generation units in households, which would lead to a situation where consuming households will also be able to produce electricity. This enables the local management of the grid. The application of information and communication technologies (ICT) enables the clustering of µ-CHPs in VPP. The research was conducted by the companies ECN and Gasunie. The results indicated that a cluster of 10 households with a µ-CHP may reduce the substation peak load by 30-50% without infringing user comfort. • Reference [39] indicates the need for efficient voltage control. The article presents the possibility of using small run-of-the-river hydropower plants, which are connected to a VPP to control the network voltage. The control is realized with the management of the reactive and active power of communicated hydro power plants belonging to a virtual power plant. The paper contains research on the efficiency of various voltage control measures. The small hydro power plant's active and reactive power enables the voltage in the electrical network to be controlled with PV during times of high feed-in.

•
Reference [18] presents research on the optimal configuration model of an energy storage system (ESS) in a VPP with large-scale distributed wind power. The optimal objective function of the energy storage system is established with consideration of economy, load shifting and safety standards. The particle swarm optimization algorithm is used to solve the model. • Reference [41] concerns the frequency control issues connected with an increasing amount of wind generation, which can be seen as an important part of a VPP. The authors indicate that the inertia of the system has an important function because it determines the influence on frequency variation during the changes in generation or power demand level. Thus, the doubly-fed induction generator wind turbines, which reduce the effective inertia of the system, may be used to control the frequency.

•
Reference [42] contains a technical-economic impact analysis of the massive integration of small generators and demands into a VPP. The results can be observed in system functioning and on the outcome of demands and generators within the VPP. The paper contains the analysis and comparison of several VPP strategies. Additionally, the article proposes optimization algorithms based on the modification of the big band and big crunch (BB-BC) optimization method. The algorithms under research aim to determine the optimal location and optimal load control strategy of renewable energy sources and also the optimal operation schedule of energy storage elements in order to minimalize the energy purchased from a substation. The important outcome of the research is that a high reduction of energy purchased from substation energy is possible using the control of the load demand in a VPP.

•
Reference [43] contains the description of a flexible energy optimizer for microgrids and VPPs.
In the article, the unit commitment and economic dispatch problem is solved by an enhanced mixed integer linear programming (MILP) method. Additionally, different post-optimization modules were developed, which enabled the potential network constraint violations to be mitigated and power quality to be improved. One of the strategies is toward to enhance voltage and loading quality, reduce power losses and support selected ancillary service in worst voltage quality nodes and nodes with high power consumption.

•
Reference [44] presents the architecture for a VPP and the interaction of customer meters using a virtual power plant controller. The paper contains the description of human machine interface (HMI) development to access reactive power metering at the location of customers. Additionally, the article presents a recording tool for reading a VPP controller. The VPP controller is able to control the reactive power flows to the customers and it, therefore, carries out a proactive operation to reduce voltage instability.

•
Reference [45] contains the impact analysis of harmonic distortion on the energization of energy distribution transformers integrated into a VPP. One of the parts presents the analysis of an analytical procedure that predicts the inrush current and the parameters of a single-phase power transformer under a distorted voltage condition. The aim of the indicated analysis is that variations in inrush current resources correspond to the voltage harmonic distortion level expressed by the total harmonic distortion in the voltage. Although, it is important to notice that in large-scale home appliance use of electronic power equipment so the level of distortions may increase in the future.

Review of Selected Real Case VPP Realizations
Despite the many investigations concerning VPP concepts, strategies and control, it is worth noticing actual VPP projects, which show the scale of developments and results:

•
The Fenix project was developed to improve the contribution of distributed energy resources to the electric network by aggregating them into Large Scale Virtual Power Plants. The project is based on the cooperation of DG owners, energy companies, research institutes and universities-EDF, Areva, Siemens, ECRO SRL, Imperial College London, the University of Manchester and the University of Amsterdam, among others. The project consists of three phases [46]. The first phase involves the preparation of two scenarios-northern and southern-which are described in this subsection. The analysis presented in paper [46] included the DER contribution to the network, as well as its strengths and weaknesses. The second phase covered the design of the communication and control system between the DERs in a VPP. The last phase concerned the validation of previously prepared analysis and systems through the realization of building 2 installations-in the UK and Spain [47]. Close to Bilbao City in Spain, there is a FENIX Southern Demonstration VPP connected to the Iberdrola system. The indicated installation connect a lot of different DER, such as combined heat and power (CHP), wind turbines, hydropower, photovoltaics, a CHP-biomass system, with a combined total capacity of 0.168 GW. The distribution area, that the project is realized has the peak demand equal to 0.320 GW. It works as a casual VPP. It means, that information from every connected distributed energy source is analyzed in the main control system. The information is exchanged in an intelligent interface called "FENIX Boxes." This system connects every DG. The indicated systems are connected to the central monitoring and management element in the VPP. The important element of the project is to simplify local network constraints, stabilize prices of electric energy and support renewable energy sources. The South Australia has great potential for exploitation of renewable energy-more than forty percent of the generated power proceeds from the wind farms or rooftop photovoltaic systems [50].

Problem Statement
The cited examples show significant progress in the development of VPPs. However, this article aims to highlight technical aspects at the preliminary stage of the concept and operation planning of a VPP. The size of the ESS, the capacity of available power generation, as well as control restrictions on the use of the DER and ESS have to be identified. The cited examples are also of interest due to permanent amendments of standards and network codes. This is why the problem has its beginnings in the technical requirements of the cooperation of power generation units and energy storage systems with a power system. The aim of this section is firstly to generally review the technical requirements dedicated to controlling the DER and ESS in terms of their cooperation with the power system and then to select and discuss in detail several topics which can appear on the primary level of VPP planning. Among the wide list of technical aspects, this paper presents three of them. They were selected due to the association of the VPP project with the distribution network and small generation units. Thus, the technical aspects presented in this section serve as the base for further investigation of the following problems: Distributed energy resources, as well as energy storage systems, should fulfill the requirements in relation to relevant power system parameters including: • the frequency and voltage levels, which are usually associated with the requirements for reactive power regulation, as well as frequency control issues, • the short-circuit current contribution, • the fault-ride-through capability, which exhibits itself in the requirements for protection devices and settings.
The issues of the impact of distributed energy resources on power system parameters were described by Conseil International des Grands Réseaux Électriques (CIGRE) in Reference [51] and Verband der Elektrotechnik Elektronik Informationstechnik (VDE) in Reference [52]. The European Commission established the requirements for connecting power sources to the grid in Reference [53]. The Agency for the Cooperation of Energy Regulators (ACER), in Reference [54], made it mandatory for transmission system operator (TSO) and distribution system operator (DSO) to include the mentioned requirements in network codes (NC). The network codes set out the necessary minimum standards and requirements that need to be followed when connecting the DER. A prominent example of the network code is the European Network of Transmission System Operators for Electricity (ENTSO-E) network code [55]. In the case of distributed generation with a connection point below 110 kV, the ranges of permissible limits of power system parameters are defined separately for four types of power generating modules, depending on the maximum power capacity. For the Central Europe networks, the different types of maximum capacity threshold from which a power generating module is a categorized are: • "type A": 0.8 kW-1 MW, • "type B": 1 MW-50 MW, • "type C": 50 MW-75 MW, • "type D": higher than 75 MW.
For the particular types of power generating modules at the point of connection to the grid, the following are defined: • a permissible range of frequency, • the active power frequency response capability that regards a limited frequency sensitive mode (overfrequency), as well as the maximum power capability reduction with a falling frequency concerning the limited frequency sensitive mode (underfrequency-selected parameters consider active power range, frequency response insensitivity, frequency response deadband, droop),  The mentioned types of power generating modules are subject to predefined compliance simulations. Additionally, the network operators define the scheme and settings that are necessary to protect the network, taking into account the profiles of the generation units. The network code [55] mentions the following aspects of protection schemes: " [55] • external and internal short circuit, All the mentioned aspects have been listed in order to highlight the technical aspects which should be taken into consideration when VPP concepts are created. The presented paper considers a case study of a VPP concept which uses resources that are localized in the distribution network. Some general studies about standards related to small generators are presented in Reference [56]. In order to highlight the details of the control strategy applied for small generators in the following subsections, selected issues are described in detail, including active power reduction strategies and voltage profile requirements. The described elements are used in the further investigations, which concentrate on the identification of the maximum capacity of the network for the energy storage connection and assessment of the losses of active power capacity in a photovoltaic power plant regarding reactive power control strategy.

Active Power Control Strategy Applied in DERs
When highlighting the active power control strategy implemented in small generators, it is worth pointing out existing standards, such as VDE-AR-N-4105 [52]. When referring to this standard, the active power frequency response characteristic P(f) and standard characteristic of the Q/P max (known also as cosϕ(P) or tgφ(P)) for the generation unit directly connected to a low voltage (LV) network can be revealed. These characteristics are presented in Figures 1 and 2, respectively. The power frequency response characteristic assumes that for power system frequency between 50.2 Hz and 51.5 Hz. When the exceedance of frequency is detected, it is recommended to reduce active power generation from P M with a gradient of 40% P M per Hertz. At system frequencies higher than 51.5 Hz and lower than 47.5 Hz, the power generation unit will be disconnected immediately.
(known also as cosφ(P) or tgϕ(P)) for the generation unit directly connected to a low voltage (LV) network can be revealed. These characteristics are presented in Figures 1 and 2, respectively. The power frequency response characteristic assumes that for power system frequency between 50.2 Hz and 51.5 Hz. When the exceedance of frequency is detected, it is recommended to reduce active power generation from PM with a gradient of 40% PM per Hertz. At system frequencies higher than 51.5 Hz and lower than 47.5 Hz, the power generation unit will be disconnected immediately. When discussing relations between active power and reactive power, the characteristic of the Q/P max (known also as cosϕ(P) or tgφ(P)) for the generation unit can be introduced. This characteristic is presented in Figure 2. It can be concluded that up to 20% of the maximum power capacity P max , both generation and consumption of reactive power is recommended. In the range of (0.2-0.5) P max , the active power generation is accepted. When exceeding half of P max, both generations of the active power and reactive power consumption are recommended. It may be used as a model with the capacitive power factor cosϕ cap . The reactive power level consumption relays on a range of P max . The application of reactive power consumption aims to reduce the increase in voltage that is because of the noticeable active power generation. levels.
Energies 2020, 13, x FOR PEER REVIEW 10 of 31 When discussing relations between active power and reactive power, the characteristic of the Q/Pmax (known also as cosφ(P) or tgϕ(P)) for the generation unit can be introduced. This characteristic is presented in Figure 2. It can be concluded that up to 20% of the maximum power capacity Pmax, both generation and consumption of reactive power is recommended. In the range of (0.2-0.5) Pmax, the active power generation is accepted. When exceeding half of Pmax, both generations of the active power and reactive power consumption are recommended. It may be used as a model with the capacitive power factor cosφcap. The reactive power level consumption relays on a range of Pmax. The application of reactive power consumption aims to reduce the increase in voltage that is because of the noticeable active power generation. levels

Power Quality Voltage Profile
A common area that can be related to the mentioned control and regulation strategies and protection schemes, is the power quality. The most crucial power quality parameters are frequency variations, voltage variation, voltage fluctuation, voltage unbalance (asymmetry), voltage harmonics, interhamonics, subharmonics, direct current injection (DC) and rapid voltage changes [58,59]. A general standard related to public electrical networks is EN 50160 [60]. In conjunction with quoted standards related to the DER, it is possible to define permissible limits of voltage changes in the connection points of the DER, as well as in other nodes of the network.
One of the critical requirements states that rapid voltage changes caused by switching operation with maximum power capacity cannot be more than 3% of the nominal voltage.

Power Quality Voltage Profile
A common area that can be related to the mentioned control and regulation strategies and protection schemes, is the power quality. The most crucial power quality parameters are frequency variations, voltage variation, voltage fluctuation, voltage unbalance (asymmetry), voltage harmonics, interhamonics, subharmonics, direct current injection (DC) and rapid voltage changes [58,59]. A general standard related to public electrical networks is EN 50160 [60]. In conjunction with quoted standards Energies 2020, 13, 3086 11 of 30 related to the DER, it is possible to define permissible limits of voltage changes in the connection points of the DER, as well as in other nodes of the network.
One of the critical requirements states that rapid voltage changes caused by switching operation with maximum power capacity cannot be more than 3% of the nominal voltage. where: d c -relative steady state voltage change as a parameter of rapid voltage change Additionally, a slow voltage changes (voltage level) in every node of distribution network consisting of DERs cannot exceed 10% of nominal voltage considering every DERs working simultaneously with maximum power capacity for 10-min aggregating time recommended by standard EN50160 [60]. Recently, in the last update of the mentioned standard [60], measurements with an aggregation time of 1-min instead of 10-min were suggested. Some investigations of the influence to aggregation interval on the assessment of photovoltaic power plant belonging to discussed VPP topology has been discussed in Reference [61].

Protection Schemes
In addition to the control and regulation characteristics, the aspects of protection schemes should also be considered. Table 1 consists of the over/under voltage and over/under frequency protection schemes at the connection point of DERs that are connected to an LV electrical network. The schemes are required by the DSO in selected European countries on the basis of References [52,56].

Control of EES, Charging and Discharging Characteristics
Among energy storage devices, chemical batteries are increasingly used in professional power engineering [62]. The desirable features of batteries are their high energy density, high charge and discharge power and long life cycle. Other aspects are also relevant, such as the methods of determining the state of charge (SoC) and the possibilities of recycling [63]. For this reason, lithium-ion batteries are the most commonly used in battery energy storage (BES). The advantages of this type of battery include the fact that they have an energy density of 160 Wh/kg, a power density of up to 350 W/kg and a lifetime greater than 1000 charging and discharging cycles. The disadvantages of a lithium-ion battery include its high cost and the need for a heating and cooling system.
The main issue connected with controlling energy flow to and from an energy storage device is the correct determination of its operating characteristics [64]. Characteristics are defined by the manufacturer and they depend on the storage design. Furthermore, the system operator can control the storage operation using them. The rate of charging or discharging energy storage (also called C-rate) when using lithium-ion batteries can be determined as the value of the current at which the energy storage is discharged [65]. It is often expressed as the ratio of the battery capacity to the time of discharge. For example, a discharge rate of 1C means that storage will be completely discharged in 1 h. On the other hand, a discharge rate of 0.5C means that the same storage will be completely discharged in 2 h. [66] The storage charging or discharging rate is also determined by the remaining energy. The relative value of the remaining energy in relation to the rated capacity is called the state of charge (SoC) [67]. The characteristics of the dependence of the storage charging and discharging power on the SoC level should be provided by the manufacturer. The operator can change the shape of the characteristics within certain limits, for example, by preferring quick or slow charging or discharging in a specific SoC range [68]. In some cases, such shaping of characteristics can optimize storage efficiency and increase its lifetime and safety.
An important aspect of modeling energy storage operation is its lifetime and the decrease in capacity when using the battery. Reference [69] describes the impact of the ambient temperature and depth of discharge on the wear and tear and degradation cost of storage.
To ensure that each cell operates correctly within a certain voltage, temperature and current range during charging and discharging, the battery requires a built-in controller that communicates with the battery management system (BMS). The power value regulated by the BMS takes into account both the technical limitations of the technology and the safety conditions of the storage. The BMS is designed to maintain the efficient operation of the storage. The control is based on the current state of battery operation, that is, state of charge (SoC), temperature, counted discharge cycles and so forth.
The storage charging and discharging rate are especially affected by: • Design-when designing batteries, manufacturers need to choose the size, weight, cost, lifetime and performance of the storage. Depending on needs, storage power and capacity can be lower due to cost and weight.

•
State of Charge (SoC)-when the battery is almost fully charged, the charging speed decreases. The reason is that BMS prevents the cells from overheating. At 80-90% SoC, the charging speed usually drops significantly and slows down to almost zero at 100% SoC. Charging speed is most effective between 0% and 80% SoC. • Temperature-lithium-ion battery cells work most effectively in the 20-30 degree Celsius range. When the battery temperature is too low or too high, the BMS reduces the current in order to protect the battery cells. If the storage is equipped with a heating and cooling system, the BMS controls the temperature of the storage cells by thermal management of the battery. The temperature of the battery depends on the ambient temperature and on the value of the charging or discharging power.
For the selected type of storage system, the dependence of charging and discharging power on the degree of SoC (modified Ragone plot) can be determined. The speed of charging (discharging) is determined by the power and is expressed in Watts or as a relative value in relation to the nominal power of the container. However, the SoC can also be defined as energy in Watt-hours or as a relative value in relation to the nominal capacity of the storage tank. Exemplary charging (discharging) of typical storage based on lithium-ion batteries is shown in Figure 3. An appropriate sign of the battery power was assumed for charging (positive-red) and discharging (negative-blue). The presented characteristics are typical for the lithium-ion batteries. Characteristics express the limitations of available power depending on the current SoC level. In discussed VPP, the storage unit has a power of 500 kW and is composed of lithium-ion batteries. It requires individual investigations to reveal the "real" charging/discharging characteristic, which may differ from that presented in Figure 3.
typical storage based on lithium-ion batteries is shown in Figure 3. An appropriate sign of the battery power was assumed for charging (positive-red) and discharging (negative-blue). The presented characteristics are typical for the lithium-ion batteries. Characteristics express the limitations of available power depending on the current SoC level. In discussed VPP, the storage unit has a power of 500 kW and is composed of lithium-ion batteries. It requires individual investigations to reveal the "real" charging/discharging characteristic, which may differ from that presented in Figure 3.

Investigation of the impact of the DER and ESS on VPP Planning and Operating Conditions-A Case Study
Discussed technical aspects related to the impact of DERs on the operating condition of the network or power control strategy applied in DERs are primarily addressed to the integration of DER

Investigation of the Impact of the DER and ESS on VPP Planning and Operating Conditions-A Case Study
Discussed technical aspects related to the impact of DERs on the operating condition of the network or power control strategy applied in DERs are primarily addressed to the integration of DER with the power systems. However, the revealed aspects can be treated as boundary conditions in terms of VPP planning and operation strategies. This section aims to present methods that can be used to solve three formulated in the problem statement topics. These issues are investigated based on a real VPP project. The obtained results are associated with the investigated localization of the VPP however can be treated as an example of a method for the assessment of formulated topics. These topics are as follows: • Investigation of the cooperation of a 1 MW hydro power plant with 0.5 MW battery energy storage that is connected to the same node of medium voltage distribution network and also the impact of their operating conditions on the power flow and voltage level for analyzed network belonging to the VPP, • identification of maximal power capacity of battery energy storage which may be connected to considered node of analyzed VPP as well as identification of general grid capacity of the investigated fragment of the distribution network to connect possible DERs/ESSs, • identification of the impact of power control strategy applied in a PV power plant on other DER available for the VPP.

Description of the Case Study-Topology of the Planned VPP
The planned virtual power plant is based on the fragment of the distribution network in Poland. The topology of the VPP on the distribution network scheme is presented in Figure 4. The VPP area consists of two parts of distribution networks supplied from two HV/MV main stations-110/20 kV R-J and R-Z. The supplied stations are connected to the 110 kV electrical power system (EPS). The 20 kV network, fed from R-J station, is an overhead-cable network. The 20 kV network, fed from R-Z station, is mainly an urban cable network. Both networks work with earth fault current compensation.
Inside the mentioned distribution networks, there are several distributed energy sources and energy storage systems. Planned VPP consists of hydro power plant, photovoltaic power plant, biogas generation units and combined heat and power unit based on combined installation using boiler and steam turbine integrated with generator and heating system in the industry. An integral element of planed VPP is the prosumers mainly using photovoltaic systems. Detailed information about the DERs identified in the area of the VPP is presented in Table 2. The detailed information about ESSs localized in the VPP area is presented in Table 3. In the first part of the distribution network supplied from the station R-J, a crucial element of the planned VPP is the hydro power plant denoted as HPP-L with generating power about 0.94 MW and battery energy storage system ESS-L connected to the same node of MV network as hydro power plant with installed power 0.5 MW. In the second part of the distribution network supplied from the station R-Z, a photovoltaic power plant PV-C with generating power of 0.1 MW and an associated energy storage system can be noted.   In order to illustrate the technical aspects related to the integration of DER and ESS with electric power systems and also their impact on resources available to the VPP control, the issue of identifying the maximum power capacity of ESS is presented with regards to network requirements concerning voltage level and rapid voltage changes. The network requirements were described in Section 2. This paper aims to reveal the maximum capacity of the ESS that is planned to be attached to the same node as analyzed HPP. The investigated approach does not consider the valuable aspects of the interaction of ESSs with different RES at respective locations or analyze the advantages and disadvantages of    In order to illustrate the technical aspects related to the integration of DER and ESS with electric power systems and also their impact on resources available to the VPP control, the issue of identifying the maximum power capacity of ESS is presented with regards to network requirements concerning voltage level and rapid voltage changes. The network requirements were described in Section 2. This paper aims to reveal the maximum capacity of the ESS that is planned to be attached to the Energies 2020, 13, 3086 15 of 30 same node as analyzed HPP. The investigated approach does not consider the valuable aspects of the interaction of ESSs with different RES at respective locations or analyze the advantages and disadvantages of using one ESS vs multiple small ESSs. However, these mentioned issues have been investigated in point of the economic aspects and are presented in associated paper [36]. The presented investigations are performed using Matlab modeling integrated with a database of real measurements of power flows. Referring to the VPP topology presented in Figure 4, the appropriate model was created and simulations were carried out in order to identify: • the impact of switching on and off the active power generation of hydro power plant HPP-L on the power flows and on the voltage level in indicated distribution network considered in the VPP topology, • the impact of a gradual increase of active power fed into the network jointly by hydro power plant HPP-L and energy storage system ESS-L, which is done to determine the maximum power capacity of ESS-L which is permissible from the point of view of rapid voltage changes parameter. The rapid voltage changes parameter is caused by the sudden shutdown of these energy sources.
Firstly, in order to associate the model with the real operating conditions of the distribution network associated with the VPP a steady state initial condition of power flows was prepared. Power flows were prepared based on the available set of annual real measurements of load demands and power generated by DER. Loads consist of the two main HV/MV transformers and all busbars of the power stations R-J and R-Z. One day of measurements, representing summer maximum peak demand, was selected. The day was selected based on the analysis of the database of the Polish power system load, which is shared by the Polish Transmission System Operator [70]. The presented investigations concern the day 14.07.2017 at 1 PM. A simplified scheme of the electrical connection of the VPP, with denoted instantaneous power flow measurements at the time of the identified summer peak demand value, is presented in Figure 5.
Energies 2020, 13, x FOR PEER REVIEW 15 of 31 using one ESS vs multiple small ESSs. However, these mentioned issues have been investigated in point of the economic aspects and are presented in associated paper [36]. The presented investigations are performed using Matlab modeling integrated with a database of real measurements of power flows. Referring to the VPP topology presented in Figure 4, the appropriate model was created and simulations were carried out in order to identify: • the impact of switching on and off the active power generation of hydro power plant HPP-L on the power flows and on the voltage level in indicated distribution network considered in the VPP topology, • the impact of a gradual increase of active power fed into the network jointly by hydro power plant HPP-L and energy storage system ESS-L, which is done to determine the maximum power capacity of ESS-L which is permissible from the point of view of rapid voltage changes parameter. The rapid voltage changes parameter is caused by the sudden shutdown of these energy sources.
Firstly, in order to associate the model with the real operating conditions of the distribution network associated with the VPP a steady state initial condition of power flows was prepared. Power flows were prepared based on the available set of annual real measurements of load demands and power generated by DER. Loads consist of the two main HV/MV transformers and all busbars of the power stations R-J and R-Z. One day of measurements, representing summer maximum peak demand, was selected. The day was selected based on the analysis of the database of the Polish power system load, which is shared by the Polish Transmission System Operator [70]. The presented investigations concern the day 14.07.2017 at 1 PM. A simplified scheme of the electrical connection of the VPP, with denoted instantaneous power flow measurements at the time of the identified summer peak demand value, is presented in Figure 5.   Secondly, a Matlab Simulink model of the VPP topology, consisting of the described 20 kV networks, hydro power plant, battery energy storage and photovoltaic power plant was created and validated. The model is the dynamic model and captures several aspects related to dynamic representations of DERs and BES. In the case of HPP simulation, a standard electro-hydraulic speed controller model was used. The mechanical time constant and the time of waterfall was calculated based on the real parameters and equals 2 s and 3 s, respectively. The static excitation system was chosen according to the IEEE type ST1A excitation system mode in Matlab. The dynamics of the system are determined by the parameters of the voltage regulator and equalizer. Both elements are represented by an inertial element with the following parameters: • regulator: G r (s) = K a 1+T a s , with assumed parameters: G r (s) = 210 1+0.100s • equalizer: G f (s) = K f s 1+T f s , with assumed parameters: G f (s) = 0.001s 1+s .
In the case of the battery energy storage system, a functional modeling assumption was made that BES works like a controllable source of active and reactive power. The phenomena and processes occurring in the cells as well as in the control and commutation system of the inverter are not taken into consideration in the applied model. Applied limits are connected to restrictions on the discharge and charge current, the battery charge level and the power change speed. An ideal P,Q inverter regulation system, controlled by voltage magnitude and phase, was applied. Simulation of the BES operation in the grid was realized in accordance to the selected scenario, for example, determining the time intervals for energy return and battery charging. In addition, it is necessary to determine the power of exchange with the grid (discharge and charge current) and to also control the battery charge level. For this purpose, the P,Q inverter model was supplemented with a battery charge control system. The condition for the simulations assumed the use of the BES that was planned in the VPP project, with nominal parameters of 0.5 MW of maximal power P max and a 0.5 MWh of maximum capacity. Additionally, a limitation for the speed of power change in the simulations was implemented to ± 10%P max /s. The numerical values given in the figures refer to BES with a 0.5 MW power and a 0.5 MWh useful capacity. The PV power plant is also modeled using the P,Q inverter model. However, in the performed simulations of short time intervals, fixed values of active and reactive power were used on the basis of real measurements collected for the investigated PV-C. In the applied model of PV-C, the issue of generation changes due to radiation and temperature changes are neglected. Initial condition for the simulation was supported by the real measurement data which represents selected summer peak demand.
Simulation time of 24 min (1440 s) was selected, which allowed all the assumed events in the simulation scenario, while at the same time maintaining the real dynamics of energy sources and storage systems during switching operations, to be performed. Time of the simulation results from the time interval of control and regulations systems. In the simulation model the issue of water turbine response, mechanical constant, limitation of the speed of power changes in the control of BES have been implemented. The particular time interval associated with the planned switching operations, carried out in the generation units and energy storage system, are defined in the scenario of the simulated events. The simulations use the algorithm for solving differential Equations known as ode24tb, which works with a variable integration step. The maximum integration step was 10 −4 s, while the actual step was selected automatically. The accuracy of the timestamp is not worse than 10 −4 s.
With regards to the scheme of the electrical power network in the area of the planned VPP (Figure 4), the presented simulations are focused on the active power changes and voltage changes of particular VPP elements, including: • the hydropower plant HPP-L, which is connected in the distribution network that is supplied from the main station R-J, • the battery energy storage, which is connected to the same node as the hydro power plant ESS-L, • the main transformer T1 in the main power station R-J,      20 kV busbars at the main station R-J changes by less than 0.1%. When the ESS-L generates about 500 kW, there is an increase in voltage at 20 kV busbar of the connection point of HPP-L and ESS-L approximately on the level of 0.6% and a slight change in voltage. A sudden switching off of the HPP-L and ESS-L causes a rapid voltage change at the connection point of these energy sources on the level of 1.6% and simultaneously a rapid voltage change of less than 0.1% at the 20 kV busbar of the main station R-J.  kW, there is an increase in voltage at 20 kV busbar of the connection point of HPP-L and ESS-L approximately on the level of 0.6% and a slight change in voltage. A sudden switching off of the HPP-L and ESS-L causes a rapid voltage change at the connection point of these energy sources on the level of 1.6% and simultaneously a rapid voltage change of less than 0.1% at the 20 kV busbar of the main station R-J.  When observing voltage changes at the secondary side of the HV/MV transformer in the main station R-Z presented in Figure 10, it may be concluded that the generation of active power in analyzed network connected to the main station R-J is slightly noticeable at the busbar of station R-Z which is associated with station R-J by high voltage line. Additionally, switching on the photovoltaic installation PV-C with 100 kW of active power causes a slight change in voltage at the 20 kV busbar of the main station R-Z that is not noticeable in the station R-J. However, it should be emphasized that the observed changes are small and at the level of one-hundredth of a percent of the 20 kV nominal value. Noticed voltage changes can be compared with the quoted requirement of voltage changes on the level of three percentage and permissible value of voltage level not more than 10% of nominal value [60].
station R-Z presented in Figure 10, it may be concluded that the generation of active power in analyzed network connected to the main station R-J is slightly noticeable at the busbar of station R-Z which is associated with station R-J by high voltage line. Additionally, switching on the photovoltaic installation PV-C with 100 kW of active power causes a slight change in voltage at the 20 kV busbar of the main station R-Z that is not noticeable in the station R-J. However, it should be emphasized that the observed changes are small and at the level of one-hundredth of a percent of the 20 kV nominal value. Noticed voltage changes can be compared with the quoted requirement of voltage changes on the level of three percentage and permissible value of voltage level not more than 10% of nominal value [60]. The simulations aimed to identify the direct impact of the active power changes generated by the HPP and BES on the load reduction in the distribution line, as well as on the voltage changes in the node of the connection and the substation. Therefore, standard methods of voltage regulations, including the on-load-tap-changer, were not used in the simulations. In reality, the tap-changer control is implemented in the main substations 110/20 kV, denoted as R-J and R-Z. However, the classical regulation strategy for the HV/MV transformer often uses a step of regulation on the level of 1.09%-1.10%. In presented simulations indicated changes of voltage level in the main substations caused by BES or PV-C were less than the classical step of on-load-tap-changer regulation.

Identification of the Maximum Power Capacity of the ESS in the Considered Node of the VPP Regarding the Power Quality Voltage Profile
In terms of VPP efficiency and sensitivity, it is important to identify the maximum level of ESS power capacity that can be connected to the planned node. In order to identify the maximum power capacity of the ESS, it is proposed to conduct investigations with power quality parameters of the grid and requirements for the integration of the generation units with power systems. The impact of ESS power capacity on economic efficiency is considered in paper [36]. In this paper, the maximum The simulations aimed to identify the direct impact of the active power changes generated by the HPP and BES on the load reduction in the distribution line, as well as on the voltage changes in the node of the connection and the substation. Therefore, standard methods of voltage regulations, including the on-load-tap-changer, were not used in the simulations. In reality, the tap-changer control is implemented in the main substations 110/20 kV, denoted as R-J and R-Z. However, the classical regulation strategy for the HV/MV transformer often uses a step of regulation on the level of 1.09-1.10%. In presented simulations indicated changes of voltage level in the main substations caused by BES or PV-C were less than the classical step of on-load-tap-changer regulation.

Identification of the Maximum Power Capacity of the ESS in the Considered Node of the VPP Regarding the Power Quality Voltage Profile
In terms of VPP efficiency and sensitivity, it is important to identify the maximum level of ESS power capacity that can be connected to the planned node. In order to identify the maximum power capacity of the ESS, it is proposed to conduct investigations with power quality parameters of the grid and requirements for the integration of the generation units with power systems. The impact of ESS power capacity on economic efficiency is considered in paper [36]. In this paper, the maximum power capacity of ESS-L is identified using a simplified analytic derivation, as well as Matlab modeling and simulation.
A rough estimation of the maximum power capacity of the considered battery energy storage ESS-L connected to the same node of MV network as hydro power plant HPP-L can be calculated based on short circuit power related to the connection point of ESS-L and HPP-L. The simplified one-phase Thevenin's equivalent circuit, which can be used for rough calculations, is presented in Figure 11.
Energies 2020, 13, 3086 21 of 30 power capacity of ESS-L is identified using a simplified analytic derivation, as well as Matlab modeling and simulation.
A rough estimation of the maximum power capacity of the considered battery energy storage ESS-L connected to the same node of MV network as hydro power plant HPP-L can be calculated based on short circuit power related to the connection point of ESS-L and HPP-L. The simplified one-phase Thevenin's equivalent circuit, which can be used for rough calculations, is presented in Figure 11. In a simplified estimation of the influence of the selected generation unit on the voltage condition in the connection point, a critical simplification can be considered. Firstly, the investigated network is treated as unloaded so that the decrease of voltage caused by the load is not taken into consideration. Only the direct influence of the considered generation is then revealed. As a result of the mentioned assumption, before the connection of the power unit, the Thevenin's substitute voltage source magnitude ET in the point of common coupling (PCC) is the equal nominal voltage. The Thevenin's reactance XT is equal to short circuits reactance XQ addressed to the node of the connection point. The resistance of Thevenin's equivalent can be neglected in comparison to reactance. The parameters of Thevenin's equivalent circuits can be calculated as:

= √3
(2) where: • UN-the nominal voltage phase to phase value, • SkQ-the short circuit apparent power in the connection node, • C-the short circuit factor (c = 1 for minimal short circuit power, c = 1.1 for maximal short circuit power).
Due to the high influence of reactive power on the voltage level, the second critical assumption in the simplified calculation is that the HPP-L and ESS-L only generate a reactive power in the PCC. The voltage change is caused by a voltage associated with the short circuit reactance and current flow IPCC inserted into the network by both generating units connected to the PCC operating at maximum power. The estimated steady state voltage change visible in the PCC can be expressed by: where: SPCC-the maximum power capacity of the power generation unit connected to the PCC, which in the described case study is a sum of generated power HPP and ESS-SPCC = SHHP + SESS. In a simplified estimation of the influence of the selected generation unit on the voltage condition in the connection point, a critical simplification can be considered. Firstly, the investigated network is treated as unloaded so that the decrease of voltage caused by the load is not taken into consideration. Only the direct influence of the considered generation is then revealed. As a result of the mentioned assumption, before the connection of the power unit, the Thevenin's substitute voltage source magnitude E T in the point of common coupling (PCC) is the equal nominal voltage. The Thevenin's reactance X T is equal to short circuits reactance X Q addressed to the node of the connection point. The resistance of Thevenin's equivalent can be neglected in comparison to reactance. The parameters of Thevenin's equivalent circuits can be calculated as: where: • U N -the nominal voltage phase to phase value, • S kQ -the short circuit apparent power in the connection node, • C-the short circuit factor (c = 1 for minimal short circuit power, c = 1.1 for maximal short circuit power).
Due to the high influence of reactive power on the voltage level, the second critical assumption in the simplified calculation is that the HPP-L and ESS-L only generate a reactive power in the PCC. The voltage change is caused by a voltage associated with the short circuit reactance and current flow I PCC inserted into the network by both generating units connected to the PCC operating at maximum power. The estimated steady state voltage change visible in the PCC can be expressed by: where: S PCC -the maximum power capacity of the power generation unit connected to the PCC, which in the described case study is a sum of generated power HPP and ESS-S PCC = S HHP + S ESS . Combining definition of voltage change d C introduced in Equation (1) with Equation (4) allows deriving a direct relation between maximum power capacity of considered power generation unit connected to the PCC (S PCC ) with the short circuit power which characterizes equivalent of the network visible in point of the PCC (S kQ ). This relation can be revealed as: Energies 2020, 13, 3086

of 30
Equation (5) can be recalculated in order to express the maximum power capacity of the power generating unit connected to the considered PCC which is characterized by short circuit power. Short circuit power depends on the permissible level of rapid voltage change.
Short circuit power in the selected node of the investigated power network, that is, in the busbar of the main station R-J and in the connection point of the hydropower plant HPP-L and battery energy storage system ESS-L, are presented in Table 4. Next, taking into account permitted levels of rapid voltage change d c = 3% and short circuit factor of c = 1.1 as quoted in Section 2, it is possible to use Equation (6) to estimate the maximum capacity of the power generating units that can be connected to the investigated node of the power network from the point of view of rapid voltage change requirement. An example of the calculation, in relation to the main power station R-J and the connection point of the hydropower plant and energy storage system (node L), is compared in Table 4. It can be concluded that the nodes located deep in the power grid are characterized by a lower level of short circuit power which ultimately increases the limitation of the capacity of the generating unit that can be connected in that node. When referring to the connection node of the hydropower plant and energy storage system, which is characterized by short circuit power on the level of 54.2 MVA, the maximum power capacity of the generation unit is limited to 1.48 MW. Assuming the operation of the hydropower plant HPP-L with a maximum power level of 0.94 MW, it can be concluded that the permissible power of the energy storage system ESS-L connected to the same node is limited to 0.54 MW. The presented calculation results of the possible power of the battery energy storage ESS-L should be treated as a rough estimation. The results are extremely limited by the simplification of the network, the unloaded condition, the reactive power consideration and the restricted limit of the rapid voltage change d c = 3%. In order to obtain a more precise estimation of the desired value of the maximum power capacity of the ESS-L, a simulation of the influence of gradually increasing the power of the ESS-L on the voltage level in the connection point of the HPP-L and ESS-L is proposed. The basic conditions of the simulation are similar to those previously used when the effect of switching on the DER series on the voltage level was simulated. These preliminary assumptions are as follows-the initial power flows relate to summer peak load demand and the HHP-L power generation level is a maximum of around 940 kW. The result of the simulation is presented in Figure 12. The results allow concluding that from the point of view of acceptable rapid voltage changes at the point of connection of HPP-L and ESS-L, the total maximum capacity of these two generating units should be in the range from 2 MW to 2.4 MW. Assuming that the power generated by HPP-L is around 1 MW, it can be concluded that the possible maximum capacity of a given energy storage system ESS-L is limited to 1 MW or 1.4 MW. In comparison with the method based on simplified calculations using short circuit power circuits, the result obtained using more precise simulations is more realistic.
The rough estimation using short circuit power is the fast method, however, usually gives relatively underestimated results. The short-circuit equivalent model is dedicated to the linear electrical components. In addition, the short circuit current is significantly modified in the presence of power electronic inverters used to integrate DERs and ESSs into the power supply system. The results of the calculation of the maximum power of a given ESS using network modeling are more technically The presented results were used in the accompanying paper [36] in the point concerning the economic efficiency test where a 0.5 MW or 1 MW battery energy storage system is considered to be used in the VPP topology. In Reference [36] general aspects related to VPP concepts were also examined, including the analysis of the advantages and disadvantages of using one ESS compared to many small ESSs or more RES.
Energies 2020, 13, x FOR PEER REVIEW 23 of 31 electrical components. In addition, the short circuit current is significantly modified in the presence of power electronic inverters used to integrate DERs and ESSs into the power supply system. The results of the calculation of the maximum power of a given ESS using network modeling are more technically realistic but require modeling and computing power. It should be mentioned that the estimation of the maximum power capacity of a considered ESS based on modeling and simulation is more accurate as it includes: • regulation of the transformer in main power stations R-J and R-Z, • the power exchange between main power stations R-J and R-Z with a 110 kV line, • parameters of the individual line sections connecting DER with main stations, • parameters of the loads distributed along the lines, • parameters of the DERs, especially the contribution of the power inverters in short circuits, possible dynamics during fast load changes, speed limits for power changes.
The presented results were used in the accompanying paper [36] in the point concerning the economic efficiency test where a 0.5 MW or 1 MW battery energy storage system is considered to be used in the VPP topology. In Reference [36] general aspects related to VPP concepts were also examined, including the analysis of the advantages and disadvantages of using one ESS compared to many small ESSs or more RES.

Study on the Impact of the Power Control Strategy Used in a PV Power Plant on the Resources Available for VPP
Section 3.2 discusses the relationship between active power and reactive power applied to low voltage generation units. It has been shown that such generating units have a standard cosφ(P) characteristic assuming a reactive power consumption for the production of active power above 50% of the maximum power of the generating unit. This regulation strategy serves to reduce of voltage increase. However, from the point of view of the virtual power plant, the regulation introduces certain restrictions which affect the availability of resources integrated into the VPP. In order to highlight this issue, studies of PV power plants belonging to the VPP were carried out. The PV power plant mentioned is a 132 kW PV installation marked as PV-C in Figure 4 and Table 2. This power plant is the facility consisting of several individual photovoltaic power plants PV, three-phase and single-phase installations using different installed power and different photovoltaic technologies but all connected in the same PCC. From a PCC point of view, the combined phase is occupied almost symmetrically but

Study on the Impact of the Power Control Strategy Used in a PV Power Plant on the Resources Available for VPP
Section 3.2 discusses the relationship between active power and reactive power applied to low voltage generation units. It has been shown that such generating units have a standard cosϕ(P) characteristic assuming a reactive power consumption for the production of active power above 50% of the maximum power of the generating unit. This regulation strategy serves to reduce of voltage increase. However, from the point of view of the virtual power plant, the regulation introduces certain restrictions which affect the availability of resources integrated into the VPP. In order to highlight this issue, studies of PV power plants belonging to the VPP were carried out. The PV power plant mentioned is a 132 kW PV installation marked as PV-C in Figure 4 and Table 2. This power plant is the facility consisting of several individual photovoltaic power plants PV, three-phase and single-phase installations using different installed power and different photovoltaic technologies but all connected in the same PCC. From a PCC point of view, the combined phase is occupied almost symmetrically but there may be some differences between the phases. The aim of the presented studies is to determine the level of energy, which is redirected to the reactive power consumption instead of the active power generation. In order to achieve this, the actual measurement of changes in active and reactive power in the selected week, which is characterized by similar daily weather conditions, was analyzed. Changes in active and reactive power during the test week due to changes in solar irradiance are shown in Figure 13. It can be seen that a high level of active power generation is accompanied by reactive power consumption, which indicates that PV installations integrated with the PV power plant realize the cosϕ(P) characteristic. In order to emphasize the observed correlation, Figure 14 shows the correlation between solar irradiation and active and reactive power. The calculated Pearson correlation coefficients for active and reactive power confirm the high correlation between solar irradiation and the generation of active power and, consequently, reactive power consumption.
Energies 2020, 13, x FOR PEER REVIEW 24 of 31 there may be some differences between the phases. The aim of the presented studies is to determine the level of energy, which is redirected to the reactive power consumption instead of the active power generation. In order to achieve this, the actual measurement of changes in active and reactive power in the selected week, which is characterized by similar daily weather conditions, was analyzed. Changes in active and reactive power during the test week due to changes in solar irradiance are shown in Figure  13. It can be seen that a high level of active power generation is accompanied by reactive power consumption, which indicates that PV installations integrated with the PV power plant realize the cosφ(P) characteristic. In order to emphasize the observed correlation, Figure 14 shows the correlation between solar irradiation and active and reactive power. The calculated Pearson correlation coefficients for active and reactive power confirm the high correlation between solar irradiation and the generation of active power and, consequently, reactive power consumption.   Table 5 contains an analysis of active power generation and reactive power consumption over one week to determine the effect of the implemented cosφ(P) characteristic on the reduction of active power generation availability. It was shown that during one observation week, which is characterized    there may be some differences between the phases. The aim of the presented studies is to determine the level of energy, which is redirected to the reactive power consumption instead of the active power generation. In order to achieve this, the actual measurement of changes in active and reactive power in the selected week, which is characterized by similar daily weather conditions, was analyzed. Changes in active and reactive power during the test week due to changes in solar irradiance are shown in Figure  13. It can be seen that a high level of active power generation is accompanied by reactive power consumption, which indicates that PV installations integrated with the PV power plant realize the cosφ(P) characteristic. In order to emphasize the observed correlation, Figure 14 shows the correlation between solar irradiation and active and reactive power. The calculated Pearson correlation coefficients for active and reactive power confirm the high correlation between solar irradiation and the generation of active power and, consequently, reactive power consumption.   Table 5 contains an analysis of active power generation and reactive power consumption over one week to determine the effect of the implemented cosφ(P) characteristic on the reduction of active power generation availability. It was shown that during one observation week, which is characterized  a) b) Figure 14. Correlation analysis between solar irradiation and active power (a) and reactive power (b) in PCC of PV power plant PV-C during the investigated week. Table 5 contains an analysis of active power generation and reactive power consumption over one week to determine the effect of the implemented cosϕ(P) characteristic on the reduction of active power generation availability. It was shown that during one observation week, which is characterized by sunny weather, the total amount of active energy produced is 4799.91 [kWh] and at the same time, reactive energy consumed is 53.87 [kvarh]. This leads to the conclusion that during the sunny week 1.11% of the total energy from the considered PV is not available for the VPP planning because it is used for reactive power regulation. The result presented corresponds to a sunny week, therefore a long-term analysis should be carried out to verify this observation. Table 5. Analysis of energy production of the PV power plant during the investigated week in order to determine the impact of reactive power regulation on reducing the availability of the resources integrated into the VPP in the perspective of the observed week.

Parameter
Phase

Discussion
This paper formulates a thesis that requirements related to regulation, protection and integration of power generation units and battery storage system with power systems have an impact on the planning and operation strategies of the VPP. After a comprehensive study of the current grid codes, standards and papers, three topics were selected and highlighted in the VPP: • identification of an operational condition of the 1 MW hydro power plant and 0.5 MW battery energy storage connected to the same node and its impact on power flow and voltage level in observed network covered by VPP, • identification of maximum power capacity of battery energy storage, which can be connected to a given node and identification of the overall capacity of the examined fragment of the distribution network to connect possible DERs/ESSs • identification of the impact of power control strategy applied to a PV power plant on resources available for the VPP.
Mentioned issues were investigated based on the real VPP project. The results obtained are distinctive and related to the investigated localization of the VPP, however, the proposed test method and results obtained can be treated more generally. In order to determine indicated aspects, a few test methods using Matlab simulation have been implemented, combining actual load demand measurements with data generated as a prerequisite for simulation and direct analysis of actual measurements. Application of the proposed method to the real case study of the VPP allowed to formulate several observations related to the operational capabilities of the VPP and technical requirements related to the integration of the DER and ESS with the utility grid:

•
Grid capacity for connection of the DERs and ESSs is limited. One of the main limitations is the requirement for rapid voltage changes. In the presented studies it was shown that using modeling of the considered network covered by the planned VPP, it is possible to determine the maximum power capacity of the ESS intended to be connected in the selected node. It has also been proven that the use of the simplified model adopted for short-circuit calculation is extremely simplified and results of rough estimates usually return relatively underestimated results.

•
The implementation of cosϕ(P) characteristic for reactive power control in power inverters integrating PVs with the grid reduces the availability of active power generation, which ultimately means restrictions on the use of PV in the VPP planning strategy. The presented results of real PV measurements associated with the considered VPP showed that 1.11% of the total energy from the considered PV is not available for VPP planning in the sunny week because it is designed to regulate reactive power.
• Representation of the grid covered by the VPP using a simulation model, which is complemented by actual measurements, provides extended opportunities for research into the choice of strategy for planning and operating a VPP. Presented results allowed to determine the impact of power changes of energy storage system or hydropower plant on the reduction of load on lines and transformers and on voltage changes. It can be used to create energy system services provided by VPP.
Obtained results constitute the influence of the technical requirements for DER and ESS integration with the power grid on the VPP operational condition.

Conclusions
Technical aspects related to the integration of DER with the power systems can be treated as boundary conditions for the VPP planning and operation strategies. This article presents indicated results obtained for a specific case of a VPP and a broad generalization for another VPP location is not easy to achieve. However, the presented assessment method, the methodology of the studies and investigations, can be adapted and applied to another VPP topology. In addition, the definition of limitations on VPP resources formulated by the technical aspects can be further used as a prerequisite for economic research. For example, based on the studies carried out, it was indicated that planned battery energy storage in the investigated grid covered by the VPP could be increased from the planned capacity of 0.5 MW to 1.0 MW. Therefore, this result allowed us to investigate the impact of the size of the energy storage system to economic efficiency in associated work [36]. Funding: This research was funded by the National Center of Research and Development in Poland, the project "Developing a platform for aggregating generation and regulatory potential of dispersed renewable energy sources, power retention devices and selected categories of controllable load" supported by European Union Operational Programme Smart Growth 2014-2020, Priority Axis I: Supporting R&D carried out by enterprises, Measure 1.2: Sectoral R&D Programmes, POIR.01.02.00-00-0221/16, performed by TAURON Ekoenergia Ltd.

Acknowledgments:
The research uses annual weather conditions and power production data of PV power plant provided by Center of Energy Technologies inŚwidnica, Poland.

Conflicts of Interest:
The authors declare no conflict of interest.

Abbreviations
The following abbreviations are used in the paper: