The SMC consists of a simulation of 100 iterations of the behaviour of the system, each of them consisting of one year (8760 h). For each iteration of the study, an hourly sequence of the demand in each house during one year is used, randomly obtained from the real values measured during 2019.
The solar radiation (and therefore the power production per unit in the PV panels) is assumed to be the same for both dwellings, since they are close to each other. At each iteration, the daily radiation curve is randomized from the real values recorded during 2019.
From this simulation the mean values of the indices to be estimated are obtained: energy not used (ENU), hours with energy not used (HNU), ENS and LOLP. These indices are obtained every time for each dwelling individually and for the complete system.
2.2. Scenarios S2x
S2
x scenarios represent an actual CoMG situation. Each dwelling tries to be self-sufficient with its generation and its ESS, but, under certain conditions, each house can provide energy to the other when needed if it has enough energy surplus. To prevent one dwelling from incurring significant reliability losses when helping the other, a simple strategy has been established: dwellings can share energy if the stored energy is above a threshold, but they stop cooperating if it falls below that limit. Thus, this threshold is the key parameter of the proposed strategy. If the ESS is made up of batteries, the strategy entails allowing power sharing if
, with
being the
SOC value set as the threshold for power sharing. Each scenario will be indicated as an S2
x, where
, using x as the key parameter of the study. If
(which is the lower limit) is chosen, the scenario is equivalent to two houses with shared resources, without a cooperative strategy. This case will be called a shared scenario. In this work,
has been set, so the S2
20 scenario corresponds to the case of the shared scenario but without an intelligent cooperative control, as depicted in
Figure 1. In this case, there would be no cooperative strategy and the system would behave as if the resources of both houses were joined together and shared freely by both. For all S2
x scenarios, the aforementioned indices have been parameterized as a function of
between
.
It is easy to verify that the situation in S220 produces unequal results: the home with the worst LOLP and the highest ENS has great benefits, but the one with the best starting indices worsens. This situation would not be admissible for the dwelling with a better initial situation in terms of LOLP and ENS. Therefore, it is necessary to differentiate between this particular case and two dwellings with a cooperative strategy to try to benefit both (S2x scenarios). Therefore, the S2x scenarios are parameterized as a function of x, studying various cases depending on the cooperation capacity of the two dwellings, as described below.
In S2x, the energy flows are slightly more complex, since under certain conditions an energy flow may appear from one dwelling (either from the generation system or ESS) to the other. In these crossed energy flows, the transmission efficiency has to be applied. For the explanation of the method, a superscript j will be used to indicate the dwelling to which each magnitude refers. For the calculation of the energy flows in these scenarios, if generation in a dwelling (Dj) is greater than demand, the surplus is available to charge its own ESS with the charging efficiency . If , the excess between generation and demand would be available to supply energy to the other dwelling with the transmission efficiency . Additionally, the energy stored in the battery of Dj between and could be offered to the other house, with an efficiency , where is the discharging efficiency.
The energy stored in the battery of Dj at each moment is , where is the nominal capacity of housing battery j.
Therefore, the following values are obtained:
, maximum energy that can be available in battery of Dj.
, value of energy stored in battery of Dj, below which it is not allowed to export energy to help the other dwelling.
, minimum value of stored energy that must be maintained at all times to avoid damage to the battery.
The energy that will finally be put into circulation will be the minimum value between the energy available to help the other home and the maximum value required by the other home.
If the generation capacity exceeds the sum of demanded energy, storage capacity and energy transmitted to the other home, there will be an excess of generation capacity that will not be used, resulting in a certain amount of ENU.
If the generated energy is lower than demand, some demanded energy should be supplied with the energy stored in the ESS, with the efficiency . If the energy available in the ESS () is not enough to cover the demand, a situation with a need for energy from the transmission system is reached. To improve the reliability of the supply, it is also considered the energy needed in the ESS if it does not reach the , which is .
When energy is not demanded from the transmission system, since this energy is subjected to various actions with yields lower than 1 and, therefore, these transfers must be limited.
If the sum of the own generation, the energy available in the battery and the energy received from the cooperative system is not enough to cover the demand, there will be an ENS, which will be counted and will affect the studied indices.
From the demand and generation curves of each house, with the random failures generated and using a step of 1 h, the following set of equations describes the cooperative strategy to apply. The initial data needed for each dwelling are
. Then, for each step
, the values of
must be obtained. Next, the surplus generation
is calculated for each dwelling using Equation (1)
where
is the usable energy that represents the surplus energy generation. If
, there is a net surplus generation, so the next equations must be used
Otherwise, when
, Equations (2)–(4) must be substituted by the following expressions, since there is a net generation deficit
After these intermediate calculations have been computed, Equation (8) is used to calculate
, which represents the energy needed to supply the demand and to increase the energy stored up to
.
The available energy to be sent to another participant,
, also called pool energy, can be derived from Equation (9) as
With these values, the following equations must be used.
where
is the energy that will be sent from Dj to Dk, and
is the energy received by Dj from Dk.
At the end of step
, the energy stored in the battery,
, in Dj is calculated using Equation (12)
For the next step
, the battery level will be updated as
. Finally, the following two parameters are computed for each dwelling to evaluate the results of the simulation
2.3. Summary of the Proposed Method
Using the definitions and equations presented in this section, the steps used in the presented work are explained below.
The first stage was to collect the data of the facilities for a whole year. Then, with these data, the method described in [
38] was used to obtain the optimal design for both facilities. As a result of this initial design, scenario S1 was simulated. As aforementioned, this scenario consists of two isolated facilities, so there is no possibility to interact or cooperate.
The simulation of a scenario is developed by performing 100 iterations of the yearly operation of both facilities to obtain the average reliability indices once the dispersion has been stabilized. These results are stored to compare all scenarios at the end of the study. This process is based on an SMC simulation to obtain the average reliability indices.
After analysing this scenario, the set of scenarios S2x for are studied. The first scenario in this set is S220, in which the resources are shared between both facilities. After completing the 100 iterations (the SMC simulation) and calculating the reliability indices, the value of x is increased in 5% and a new scenario is proposed.
Once all scenarios have been studied, the analysis of the reliability indices provides useful information about the systems. This information is discussed and some conclusions are drawn about the optimal design and management of the resources for this set of facilities. The proposed method is summarized in
Figure 4.