Abstract

Stochastic programming has become increasingly vital in energy applications, especially in the context of the growing need for renewable energy solutions. This paper presents a significant advancement in this field by introducing an efficient and robust algorithm for optimally sizing hybrid renewable energy systems. Utilizing a two-stage stochastic programming approach, the proposed algorithm addresses the challenges posed by the unpredictability of renewable energy sources. The proposed solution leverages the three-block alternating direction method of multipliers (ADMM), a cutting-edge technique that facilitates parallel computation and enhances computational efficiency. The distinctiveness of this method lies in its ability to solve complex stochastic optimization problems without compromising the mathematical integrity of the model. This is achieved by applying first-order optimality conditions, ensuring both robustness and efficacy. To demonstrate the practical applicability and superiority of the algorithm, a case study was conducted in a rural area of South Africa. The proposed algorithm was applied to design an optimal hybrid renewable energy system, and its performance was compared against traditional methods such as progressive hedging and Monte Carlo techniques. Results affirm the superiority of the approach, saving approximately 8.16% capital cost when compared to progressive hedging. In addition, the proposed algorithm outperforms the Monte Carlo method both in terms of CPU time and the number of cost function evaluations.

1. Introduction

Two types of methods are used in generating electricity: conventional and renewable. The first type, particularly oil-based generation plants, is crucial for its ability to guarantee stable energy production and thus cannot be entirely replaced. Conventional methods, such as oil, gas, and coal, are popular for their deterministic nature. The second type consists of renewable methods.

Recent literature emphasizes the potential of renewable energy in reducing greenhouse gas emissions and offering cost-effective solutions [1, 2]. These studies explore technical advancements and the economic viability of renewable systems, underlining the importance of innovative designs and optimization models [3, 4].

Adapting renewable methods, which depend on natural resources obtained from the environment, such as the sun, wind, hydro, hydrogen, and geothermal, is essential to decrease dependency on nonrenewable sources. This adaptation is vital due to the essential shortcomings of conventional methods, like their dependence on depleting fossil fuels that are not evenly distributed worldwide. Moreover, reducing toxic gases like carbon dioxide and carbon monoxide, known as greenhouse gas emissions, is important.

From an economic perspective, the initial construction costs for conventional generators are reasonably suitable. However, the running costs are extremely high compared to renewable ones. This is due to the continuous demand for fuel to keep the generator running.

Under these circumstances, scientists and engineers have worked hard to find alternative methods to generate electricity effectively and reliably to meet the demand and keep the environment unharmed. The innovative approaches should minimize greenhouse gas emissions to an acceptable level and accommodate future population growth and related human activities. Renewable sources are considered a well-suited solution for power generation since they use free natural resources that are not depletable and produce clean power. Although the installation costs of renewable systems are high, the operating costs are much lower than those of conventional methods in long-term projects. Weather conditions and seasonal cycles are the main factors affecting electricity production by renewable sources.

Recent studies have highlighted challenges of reliability in renewable systems due to weather fluctuations and proposed various optimization methods to address these issues, including the use of Loss of Power Supply Probability (LPSP) for reliability assessment [57]. Additionally, metaheuristic algorithms like Genetic Algorithm (GA) and Particle Swarm Optimization have been investigated for their effectiveness in optimizing hybrid systems [8, 9]. In the evolving landscape of hybrid renewable energy systems (HRES), the last decade has seen significant advancements in sizing methods, primarily through mathematical modeling and optimization techniques. Optimization methods are crucial for determining efficient and cost-effective combinations of renewable energy resources, ensuring a certain reliability level. The use of classical [10], heuristic, and metaheuristic optimization methods, such as Pattern Search, PSO, and Genetic Algorithms, has become prevalent [11, 12]. Despite these advancements, these methods face challenges in constraint handling and dimensionality [13, 14], underscoring the need for continuous research. Moreover, while our model exhibits improvements in computational efficiency and solution convergence over traditional methods, including Monte Carlo and progressive hedging algorithms, through parallel computation, it is noted that its efficiency may decrease as the number of scenarios increases. However, it still maintains a comparative advantage due to its parallel computation capabilities.

Using a single source of renewable energy may affect system reliability. Hybridizing two or more sources, possibly with backup sources like a conventional generator and batteries, will enhance system reliability.

The focus of this study is primarily on exploring the optimal combination and sizing of solar, wind, and hydrogen-based renewable energy systems. While other renewable sources like bioenergy, hydro, and tidal energy are crucial in the broader context, the focus here is on these selected sources due to their increasing relevance and potential in the current renewable energy landscape.

In recent years, determining the optimal size of hybrid renewable energy systems has become increasingly popular. While notable studies have addressed this challenge, existing methodologies have limitations. A proposed approach by Dong et al. [15] involved using photovoltaic (PV), wind power, battery, and hydrogen subsystems as backup suppliers to design an optimal system with lower annual costs and higher reliability. However, their use of Ant Colony Optimization did not guarantee optimal solutions. Other studies [16] have utilized stochastic programming and Monte Carlo techniques, which can be time-consuming and computationally intensive.

Mathematical optimization techniques based on decomposition, such as Benders’ decomposition and progressive hedging (PH), have been suggested [17] for dealing with large problem sizes. Such techniques generally require multiple solutions of subproblems and may also depend on the optimization problem at hand. Many heuristics and metaheuristics have also been suggested in the literature [1821]. However, solutions obtained by such heuristics cannot be verified mathematically. Moreover, these methods cannot be applied to problems with a large number of constraints. Hence, the numerical intractability of the problem with many variables and constraints remains a drawback.

This paper proposes an efficient algorithm for the optimal sizing of hybrid renewable energy systems using a two-stage stochastic programming approach. The approach maintains the integrity of the mathematical model for numerical tractability and employs first-order optimality conditions, ensuring robustness and efficacy in solving complex stochastic optimization problems. Utilizing the state-of-the-art three-block alternating direction method of multipliers (ADMM), the algorithm inherently supports parallel computation, facilitating the efficient resolution of the model. By leveraging specific power demand data for the target region, this method provides a robust framework for determining the optimal configuration of renewable energy systems. Notably, the proposed mathematical procedure and optimization technique demonstrate clear advantages over traditional Monte Carlo and progressive hedging algorithms, including enhanced computational efficiency and guaranteed convergence. These benefits are instrumental for the model’s wide applicability in various settings, addressing the critical need for efficient and effective renewable energy system optimization.

The rest of the paper is organized as follows. Section 2 overviews the features of renewable power used in the study. Section 3 presents the mathematical formulation of two-stage stochastic programming (SP) using ADMM. Section 4 introduces the optimization of the renewable energy system. Section 5 applies the optimization of two-stage SP to build a hybrid renewable energy system in a South African village as a case study and compares it with the results obtained using PH. Section 6 establishes the efficiency of the three-block ADMM with a two-stage SP based on Monte Carlo using another case study from the literature. Section 7 concludes the paper.

2. Hybrid Power System

Renewable energy depends solely on weather conditions, which may affect system reliability. For any energy system that uses renewable energy sources, hybridizing two or more power generation methods with backup sources, like a conventional generator and batteries, will enhance system reliability. This section provides a preview of three types of renewable plants for generating electric power.

2.1. Solar System

Constructing a solar farm requires choosing a suitable location that maintains a good potential for solar intensity. Performing a feasibility study for the location site requires at least one year of solar data to analyze the solar reliability in that location.

The power produced by each PV cell at a specified time is given by where is the generated power by the PV cell at the standard temperature conditions at time ( kW/m2 solar irradiance, 25°C air temperature, and 1.5 air mass [22]), is the perpendicular solar insolation at the PV cell surface at time , is the solar insolation at the standard temperature condition, and is the efficiency factor of the PV cell which is determined by many factors like the aging of the panel, deviation of the temperature from 25°C, and other factors. The total power produced by the PV system at time is given by where is the number of cells.

We present the IV (current-voltage) curve of a PV panel on Figure 1, a crucial characteristic for understanding its performance. The curve is plotted with voltage on the -axis and both current and power on the -axis. Key points on this curve include the short-circuit current (), where the curve meets the current axis indicating the maximum current with no voltage, and the open-circuit voltage (), where the curve intersects the voltage axis showing the maximum voltage with no current flow. The maximum power point () is another critical aspect, represented by (voltage at maximum power) and (current at maximum power), indicating where the product of voltage and current () is at its peak. This point is where the PV panel operates at its optimum efficiency. The curve visually demonstrates how the PV panel’s power output varies with changes in voltage and current, providing essential insights for optimizing solar energy systems.

2.2. Wind Energy

The rapid growth of technologies and research helps the development of wind turbine design, which is providing its worth as the percentage of power generated by the wind grows. Wind power is heavily influenced by wind speed and hub height, where hub height is the height of a wind turbine from the ground.

Wind turbine power is closely dependent on wind speed. At a minimal cut-in speed, the turbine begins to generate power. When the wind speed surpasses the maximum cut-out speed, making the turbine potentially dangerous, a braking mechanism, which can be either aerodynamic or mechanical, is employed to safely halt the turbine. The maximum power generated by a wind turbine, known as rated power, is attained at the rated wind speed [3].

The general shape of the power curve of a wind turbine appears in Figure 2. The power curve depicts the connection between wind turbine power output and wind speed. At a time , the amount of power produced by a wind turbine is given by [24] where is the rated (maximum) power of the turbine in kilowatt (kW), is the cut-in speed (m/s), is the cut-out speed (m/s), and is the wind speed (m/s) [25].

2.3. Hydrogen Energy

In recent years, there has been a surge in interest in hydrogen and fuel cell technologies, which are seen as clean, dependable renewable energy sources. The fuel cells that use hydrogen as fuel produce no harmful emissions. These technologies are considered an effective solution to greenhouse gas-free 21st century.

Hydrogen is not an energy source, but it is an energy carrier. The hydrogen H2 is the most abundant element in the universe [26, 27] since the sun consists of 70% of hydrogen and 28% of helium. Although hydrogen is an abundant amount in the universe, it is less likely to be found alone in nature. Usually, it creates a compound with other chemical elements due to its chemical bonds. Since hydrogen can not be alone, one way of producing hydrogen—without chemical waste and environmental damage—is to use water as a source of hydrogen distillation. Water splitting is the technique of obtaining hydrogen from water. This method employs either electricity (electrolysis) or heat (thermolysis). In the system that we intend to develop in this research, we plan to use the excess electricity of renewable energy to produce hydrogen by the electrolysis method.

When the generated power exceeds the load demand, the remaining one is transferred into hydrogen. The following equation describes the power transfer from the electrolyzer to the hydrogen tank [5]: where is the power transferred from the electrolyzer to the hydrogen tank, is the generator’s surplus power provided to the electrolyzer, and is the electrolyzer efficiency. The energy of hydrogen contained in tanks at time is calculated as follows: where stands for the amount of energy stored in the tank at time , is the amount of power generated by fuel cells using the hydrogen from the tank at time , and is the storage efficiency.

3. Two-Stage Stochastic Programming Using ADMM

3.1. Two-Stage Stochastic Programming

Define the two-stage stochastic programming (SP) as where , , and are constants and is the expected value over the the random variable that follows a known distribution [28]. The term outlines the second-stage optimum value and is defined as [29] where , , , and encode the random variable data [30].

The value of the first-stage variable, , needs to be determined before any future revealing of the random variable ; is known as the second-stage decision variable, which corresponds to the decisions after the realizations of the random variable revealed; is also known as recourse decision variable since it compensates any bad decisions that may occur at the first stage.

When the random variable has finitely many realizations, or scenarios , with corresponding probabilities , problem (6) can be reformulated as a large linear programming (LP) problem [31] in the form where is the -th scenario.

The proposed algorithm solves the two-stage problem when the recourse matrix, , is random or constant. Problem (9) can be equivalently restated as where is a convex function since it is defined on a convex set [32].

The two indicator functions in (13) for the pairs compensate for the nonnegativity condition of the variables and in the constraints (15) and (16), respectively. The new formulation in Equations (13)–(17) is considered as a three-block ADMM model. The first-stage decision variable is presented in the first block, while the second-stage decision variable in the second block and the third one for the pair [29].

3.2. Three-Block ADMM

The classic 2-block ADMM, its numerical implementation, and convergence properties have been established in the literature [3335]. Sun et al. [36] have applied an extension called 3-block semiproximal ADMM to a class of convex conic programming with four types of constraints. The 3-block ADMM has now been implemented in stochastic programming, which addresses a wide range of problems than the classical one. To the best of our knowledge, this is the first application that uses 3-block ADMM to solve energy-related two-stage stochastic programming problems.

Define the three-block minimization problem as follows: where are proper lower semicontinuous functions, is a linear function, , and , , and are in appropriate dimensions [37]. The augmented Lagrangian for problem (19) is defined as

Regularized terms are added to the solution procedure of problem (19). These terms enhance convergence by reducing oscillation between progressive iterates [38]. The following iterative procedure incorporates these regularized terms: where is a penalty parameter linked with the regularized terms. The augmented regularized term added to each subproblem in (22) eliminates the need for a convex objective function [29, 37].

Boyd et al. [33] state the necessary and sufficient optimality conditions for problem (19) as follows: where Equation (26) is the primal feasibility and Equations (27)–(29) are dual feasibilities. Here, denotes the subdifferential set of (see [37]).

Provided that minimizes , we have which means that and satisfy the duality condition in Equation (29).

In the case of , we have where is the residual for the dual feasibility.

By repeating the same steps, we find the residual associated with as

At iteration , using the last equation of (22), we define as primal residual and , as dual residuals [33]. We have proved the convergence of the three-block ADMM and showed that all residuals converge to zero as in [10].

3.3. Solving Two-Stage SP Using Three-Block ADMM

The deterministic version of the two-stage SP (13)–(17) is considered, along with the notations used therein. The variables , , and of Equation (19) are redefined as , and to solve the two-stage SP as 3-block ADMM. Correspondingly, the functions will be defined as follows:

In what follows, the detailed steps to find the solution to problem (13)–(17) are derived, followed by a presentation of a step-by-step algorithm for the solution. Consider the following augmented Lagrangian function: where , , , and , . The vector of multipliers is defined as

Solving for yields

Similarly, for yields which allows parallel computing, enabling the concurrent solution of all equations associated with the scenarios.

And by differentiating and with respect to , respectively, yields

The updates for the dual variables will be expressed as

Updating of in (42) and in (40) together with (33) and (34) is also performed in parallel.

Algorithm 1 presents the steps of ADMM for solving two-stage SP in Equations (13)–(17). An important parameter of Algorithm 1 is the penalization parameter . The convergence of the ADMM algorithm is very sensitive to ; poor selection may lead to slow or nonconvergence in practical problems [39]. A variant of ADMM, residual balancing, where the penalty parameter changes at each iteration is proposed in [40]. The intuition behind the method is based on making the primal and dual residual norms have similar magnitudes. By doing so, the primal and dual residuals will have small values at the stage of convergence. This approach makes the performance less dependent on the initial choice of . The superlinear convergence with has been achieved in [41]. An iteration-dependent adaptive , as suggested in [40], is implemented. In Algorithm 1, the preconditioning step initializes penalty parameter , the maximum number of iterations , and the convergence tolerance . The initialization in line 1 provides an initial first-stage solution for the primary iterations . The initial penalty parameter will be adaptively updated in [40] to maintain the gap difference between the primal and dual residuals (see Equation (46)). Algorithm 1 runs on deterministic initializations, in which the first phase procedure of linear programming is applied to bring the starting point to a feasible region. Since Algorithm 1 decomposes the problem by scenarios, lines 5, 8, 12, 13, 15, and 18 are implemented in parallel. Line 5 provides a scenario-wise solution to the second-stage variable in parallel. The second-stage solution needs to be assembled in one variable to find the first-stage solution, which is given in line 9. Lines 10-13 give the updates for the dual variables using (42). The primal and dual residuals of Algorithm 1 are given in lines 14-19. Algorithm 1 terminates in two ways: the convergence case, where all the residuals are less than the threshold , line 20, or the nonconvergence case, line 21, where the algorithm hits the maximum number of iterations without meeting the convergence requirements. In the nonconvergence case, the algorithm is enforced to stop by the maximum iteration [29].

In the initialization step, we have defined the penalty parameter as [40] where and . We choose and . The values and were used, respectively, in steps 20 and 21 of Algorithm 1. The primal and dual residuals are given in line 19 of Algorithm 1, where is the primal residual and and are the dual residuals.

Precondition: , , , . All the initialization to the variables are obtained by first phase Linear Programming (LP) step, while are random variables following the standard normal distribution.
1:
2: 1
3: while True do
4:   for to do
5:      
6:   end for
7:   
8:   
9:   
10:   
11:   
12:   
13:   
14:   
15:   
16:   
17:   
18:   
19:   
20:   If   , , and stop; otherwise
21:   If equals , stop; the algorithm does not converge.
22: end while

4. Optimization of Hybrid Renewable Energy

The optimization problem for a hybrid renewable system will be formulated by constructing an objective function along with the constraints throughout the remainder of this section.

4.1. Reliability of the System

The uncertainty of weather conditions leads to fluctuating energy production, which has an impact on the system’s reliability. The LPSP is employed as an index for reliability estimation. In the constraints, a specific level of reliability is ensured to meet the system demand by a designated probability percentage of LPSP. The system reliability for the time interval , as given in [42], is described in terms of LPSP and expressed as where is the loss of power supply at time and given by where and are the required load and the generated power, respectively, at time . The system will be more reliable when it has a small , , and less reliable when it is large, . We can write Equation (47) as

4.2. The Mathematical Model

We assume that the projected demand for electricity follows a known probability distribution. We consider blocks of demand for various quantities of power throughout the year. The formulation of the objective function for different renewable energy plants at demand blocks of generation in years is given by where is the investment cost per kilowatt (kW) of the power plant , is the capacity in kW to build for the power plant , is the total allocated budget, is the amount of electricity capacity used to produce electricity by power plant for demand block in year under scenario measured in kW, is the load demand in year at block under scenario in kW, is the factor of LPSP, is the operating cost of unit under scenario in $/kWh, and is the duration of the demand at block in hours.

The objective function in Equation (50) determines the cost for kW capacity to be built for each plant together with the operating cost. The constraint in Equation (51) represents the reliability condition as the power generated by the hybrid system should meet a minimum level of reliability given by . Equation (52) ensures that the electricity generated by unit does not exceed the total capacity of that unit. Equation (53) guarantees that the investment cost does not surpass the available budget.

To monitor the times when the system uses the power supplied by each plant or a combination of them, a number of modes can be used to track the system’s behavior. An example of this is shown in Section 5.2.

The problem, therefore, is to design an optimal sizing system of hybrid renewable energy that ensures system reliability using SP based on three-block ADMM and the concept of LPSP. Such ecofriendly systems seek to minimize the effect of greenhouse gas emissions by using entire renewable sources. Figure 3 represents a possible flowchart of the optimal sizing process for the hybrid renewable energy system (HRES) components.

5. Case Study: Ga-Nkoana

In this study, an analysis is conducted to construct a hybrid renewable energy system in the village of Ga-Nkoana to meet both current and future electrical power demands. Ga-Nkoana is a suburb located in Limpopo province, South Africa, with coordinates at a latitude of -24.416673° and a longitude of 29.783335°. According to the 2011 SA census, Ga-Nkoana has a population of 443 households. Assuming an annual household growth rate of 3% and using the logistic growth equation with a carrying capacity of [43], the estimated number of households by the year 2023 will be approximately 623. The renewable system is intended to be constructed once and used for the entire project duration of 20 years. For this study, four renewable resources are considered: solar power (), wind power (), hydrogen power (), and backup batteries (). The initial budget allocated for this construction is set at $120,000. The primary objective is to determine the optimal combination of these renewable plants that minimizes the sum of the capital cost and the expected operating cost over the course of 20 years while ensuring a specified reliability percentage using LPSP. The operating cost is assumed to be stochastic due to the uncertainty in weather conditions and fluctuating load demand.

The hourly load day for Ga-Nkoana is obtained from the Domestic Electrical Load Metering Data (DELM) between 1994 and 2014 available in DataFirst’s secure center [44]. The climatic data for the village is obtained from the Prediction of Worldwide Energy Resources (POWER) [45] project from 2013 to 2020, run by NASA. The data consist of temperature at 2-meter height, wind speeds at 10-meter height, and solar irradiance.

The load data for 632 residential households in Ga-Nkoana has been aggregated to represent the monthly load profile for the entire village. Table 1 displays the average monthly load profile along with data on solar irradiance, wind speed, and temperature. The average annual load is 6.837 kW, which is relatively low compared to urban areas. Additionally, it is observed that the average load remains fairly consistent throughout the months, with a slight increase in January. The yearly growth rate for the demand load is assumed to align with the population growth rate of 3%, accounting for annual increases due to population growth. The table also provides information on the average temperature, a significant factor influencing power generation by PV cells. Notably, the highest temperatures and solar irradiance occur during the summer months of December and January, while the lowest values are recorded in June and July, corresponding to the winter season. Consequently, peak solar power output is expected during months with higher temperatures and solar irradiance. In contrast, the highest wind speed is observed in October, while the lowest occurs in May. This indicates that wind turbines are most productive during months with elevated wind speeds.

The wind rose in Figure 4 reveals a predominant wind direction, marked by the longer and denser segments, which is crucial for positioning wind turbines in renewable energy projects. The intensity and frequency of winds from these dominant directions, indicated by the extent and color saturation of the segments, suggest consistent wind patterns that are ideal for wind power generation. Lesser segments in other directions indicate variability, but the primary focus for turbine alignment would be towards the most frequent wind directions. This graph is a valuable tool in site selection for wind farms, ensuring that turbines are optimally placed to maximize energy capture from prevailing winds.

The histogram of Ga-Nkoana’s wind speeds in Figure 5 shows the prevalence and variability of wind in the village. Peaks indicate expected wind speeds, essential for assessing wind energy potential. A concentration at higher speeds suggests favorable conditions for wind power generation. The range of speeds informs turbine selection and expected efficiency, making this data crucial for planning and optimizing wind energy projects in Ga-Nkoana.

The prices of power plants are determined according to their electric capacity, measured in kilowatts (kW). Table 2 shows the capital cost per kW of capacity for each power plant.

Demands for electric power are described using the load duration curve, which illustrates the relationship between generation capacity requirements and capacity utilization [46]. The load duration curve is ordered in descending order by magnitude. The electric load for Ga-Nkoana using the continuous load duration curve is shown in Figure 6, which displays the load duration curve for 2013 for a total of 8760 hours. For example, in Figure 6, the load was approximately above 5 kW for 5256 h in 2013 and above 9 kW for 1752 h. We obtained the quantized demand set in Table 3 from the continuous curve using the midriser and midtread uniform quantizer [47].

5.1. Problem Formulation

A hybrid renewable energy system has been created, utilizing a two-stage SP optimization technique to reduce total investment and operational costs over a certain period. The first-stage variables determine the necessary capacity in kW for each plant, defined by the vector . The sequence of energy sources is as follows: (1) solar, (2) wind, (3) hydrogen, and (4) batteries. The subscript notation corresponds to each type, respectively. Investment costs are represented by the vector , as detailed in Table 2.

The second-stage variable corresponds to the decision after the realization of the random event, which represents the capacity used to produce electricity at each power plant for each demand block in each year. The expected power demands over scenarios with the duration of five blocks during the first year are shown in Table 3.

The second-stage decisions depend on stochastic problem data. Each possible value of the stochastic data is called a scenario indexed by . For this problem, there are five possibilities of operating costs for PV (see Table 4) and five possible operating costs for wind turbines (see Table 5), for a total of scenarios. The reason is that the probabilities of the operating costs are independent.

The operating costs, , and , for different electricity sources are specified in $/kWh (see Tables 46). A growth rate of 3% was applied to estimate the operating costs for subsequent years. The duration in hours of each demand block, , is presented in the third column in Table 3. The randsample function in MATLAB was utilized to generate 25 scenarios representing the operating costs for both PV and wind turbine systems, using the probability distribution in Tables 4 and 5. This function facilitated the generation of random data by defining three essential parameters: values, sample size, and probabilities. In this context, the values are the operating costs . The sample size, set at , was specified as the second argument to produce the required number of random data points. It should be noted that the operating cost for fuel cell and electrolyzer and batteries will remain constant across all 25 scenarios.

We can write the full optimization formulation as where is the demand load in block and year under scenario . Equation (55) was transformed into a linear programming (LP) problem, as formulated in Equation (9), by incorporating the necessary slack and artificial variables. Following this conversion, the budget constraint is represented by . Meanwhile, the demand and capacity constraints embody the second-stage constraint .

The size of these problems is enormous, and the standard linear programming (LP) solvers might face difficulties in solving them. There are four first-stage variables and second-stage variables in this problem, for a total of 10,004 variables. There is also one budget constraint, capacity constraints, and 5 × 20 × 25 demand constraints, totaling 12,501 constraints. Such a problem size presents some difficulties to many modern LP solvers. Increasing the number of scenarios will lead to an explosion in the problem size, making the use of the LP solver unrealistic.

5.2. Numerical Experiments and Comparison

This section discusses the numerical experiment of Algorithm 1 implemented to solve the two-stage SP of the hybrid renewable energy system presented above. Results obtained have been compared to progressive hedging (PH). Both algorithms were provided with identical input data, set with a tolerance level of 10-5, and a predefined maximum iteration limit of 5000. The computer specification that runs the experiments has CPU Intel® Core™ i7-7700 CPU at and 15.5 GB of RAM using MATLAB 2020b. The CPU times for all problems are given. The graphs of the residuals are provided in the log/log scale.

Algorithm 1 and PH were executed using load data for Ga-Nkoana at a Loss of Power Supply Probability (LPSP) of 0.01. Through these computations, the optimal configuration for the hybrid renewable energy system was determined using ADMM and PH, as illustrated in Table 7.

Under optimal conditions, these configurations generate a maximum power output of  kW using ADMM and  kW using PH. Assuming that the battery can be charged or discharged at a constant rate per hour, the energy storage capacity of the system is 9.30 kWh using ADMM and 10.22 kWh using PH. The associated capital cost for the ADMM configuration amounts to $101,020, while for PH, the total is $110,000. ADMM demonstrates its superiority by offering a substantial cost advantage, saving approximately 8.16% in capital costs compared to PH.

From Figure 7, all the primal-dual residuals of ADMM Algorithm 1 are converged at 76 iterations on the hybrid renewable energy problem. Figure 8 shows the convergence behavior of the objective function to the optimal value. ADMM is notably faster, converging approximately 5.18 times quicker than PH.

Figure 9 shows the relationship between LPSP and the system cost. As depicted in the figure, a system with small LPSP values and higher system reliability is costlier because it requires building more units of renewable sources to avoid any power outage. Decreasing the tightness of reliability results in a high reduction in the cost of the system, which is good from an economic perspective, but it might have some power outages from time to time.

Figure 10 presents a bar plot depicting the five of the hybrid system at a Loss of Power Supply Probability (LPSP) of 0.01. This figure illustrates changes within the system across different modes, based on the optimal solution. It is evident from the figure that wind power alone cannot meet the load demand, as seen in mode 1, where it contributes independently to 13.6% of the system. In mode 2, the hybridization of wind and solar power enhances the system’s robustness, meeting the demand 62.5% of the time. The combination of batteries with wind and solar power, accounting for 10.7% of usage, addresses potential shortages due to peak load demands or weather uncertainties. Mode 4 shows hydrogen power supplying the system 12.9% of the time. It is noted that the system experienced a power outage in 0.4% of instances, as in mode 5, due to setting the LPSP at 1% to achieve 99% reliability.

The reliability of an energy system is strongly related to the system’s energy storage capacity. In finding the optimal sizing of an energy system, it is possible to assign a higher weight to the reliability factor. When doing so, the optimization algorithm prioritizes the fulfillment of having a more reliable system. As a result, the algorithm will naturally adjust the sizing of the energy storage and renewable energy production components, ensuring that they are adequately scaled to meet reliability requirements. This approach guarantees that the energy system can effectively handle variations in renewable energy generation and fluctuations in energy demand, ultimately leading to increased overall reliability. Therefore, in the optimization process, giving greater weight to reliability automatically drives the system towards larger storage and renewable production sizes, solidifying the reliability of the energy system.

6. Comparing ADMM with Monte Carlo Method

The performance of ADMM is compared against another case study presented in [16]. In their research, Sakalauskas and Žilinskas [16] explored power plant investment by addressing a two-stage stochastic programming challenge using Monte Carlo methods. Their study spanned 15 years, with a projected cost of $10 billion for constructing four types of power plants: gas turbines, coal, nuclear power, and hydropower. The study utilized five independent and normally distributed demand blocks to represent varying power consumption levels throughout the year. Table 8 details the mean and standard deviation of the forecasted power demands in gigawatts (GWs) based on the duration of these blocks.

The price of each power plant is determined based on its electricity production capacity in gigawatts. [16] displayed the investment costs for each plant (see Table 9). They stated that the hydropower capacity does not exceed  GW due to geographical constraints in the area.

Table 10 shows the operating costs and the cost of obtaining power from a third party for the first year of each type of power plant in dollars per kilowatt-hour (kWh).

They proposed the two-stage SP formulation for the problem as follows:

Sakalauskas and Žilinskas [16] applied the Monte Carlo method to expected and stochastic data. They found that the cost of the system based on expected data is billion and the one based on stochastic data is billion. Through this experiment, they argued the importance of using uncertain data in the investment planning of power systems, which costs less than the deterministic approach.

Using the data from Sakalauskas and Žilinskas, the same problem was addressed using both 3-block ADMM and Monte Carlo methods. The ADMM method terminated after 121 iterations, taking only 0.019734 seconds of CPU time. In comparison, the Monte Carlo method needed 123 iterations to converge. While the Monte Carlo method achieved convergence in a moderate number of iterations, it involved a considerably large sample size in the objective function. At each iteration, a sample size of 15,887 was necessary for the sampling objective estimator. The large sample size used in the Monte Carlo method suggests a significantly greater CPU time compared to ADMM. Hence, the results demonstrate the efficiency of the ADMM method over the Monte Carlo method in terms of both computational time and sample size requirements.

Figures 11 and 12 show the behavior of the optimal objective function and the convergence of ADMM, respectively. Table 11 compares the solutions of Monte Carlo and ADMM using stochastic data. The cost of the system using ADMM is billion, which is almost identical to their solution. Also, the decisions of the power plants were the same.

The ADMM method was also applied to the expected data presented by the authors in the second column of Table 8. It was found that ADMM converged after 112 iterations, with a CPU time of 0.035427 seconds. Figure 13 illustrates the convergence behavior of ADMM based on the expected data. The cost calculated using this data is billion. Figure 14 displays the convergence of the optimal value using ADMM. The results of both methods, employing the expected data, are provided in Table 12.

Table 13 presents a comparative summary, highlighting key differences and methodologies between the current study and previous papers. The comparison covers three main categories of optimization techniques: linear programming (LP), nonlinear programming (NLP), and stochastic programming (SP). The symbol ✔ indicates that the method employed the respective methodology, while ✘ signifies its absence. This study is the first to address a sizing problem for hybrid renewable energy using two-stage SP with four types of renewable components, incorporating uncertainty in weather and load demand data.

7. Conclusion

The two-stage SP with three-block ADMM developed in this study represents a significant advancement in solving stochastic linear programming problems, specifically for optimally sizing hybrid renewable energy systems using stochastic load demand. This method effectively handles the unpredictability of weather and the dynamic load demand that varies throughout the year. The focus on a 20-year period for the renewable system emphasizes commitment to reducing environmental impact, with the entire proposed model being renewable.

The algorithm consistently converges to the optimal point efficiently, as evidenced by reasonable CPU times and the utilization of parallel computing. This approach surpasses the PH method in terms of speed, especially for large-scale problems, and demonstrates its superiority by achieving an 8.16% saving in capital costs compared to PH. The optimal decisions using ADMM for the hybrid power plant in Ga-Nkoana included 19.31 kW for solar PV, 10.83 kW for wind turbine, 8.84 kW for fuel cell, and 9.30 kWh for batteries, with a total capital cost of $101,020. In contrast, the pH method resulted in a slightly different configuration with a higher total cost of $110,000.

Furthermore, addressing the reliability issues in renewable systems, the algorithm uses the LPSP to regulate the reliability percentage, successfully converging to a stable minimizer even with small LPSP values. The validation of this approach, through comparison with Monte Carlo algorithms in existing studies, confirms the correctness and mathematical convergence of the algorithm.

This study is instrumental in implementing hybrid renewable energy systems in regions with load demands similar to Ga-Nkoana, Limpopo, South Africa, leveraging the proposed sizing algorithm’s adaptability for various locations with accessible load demand and weather data. However, a notable shortcoming is the model’s approach of determining the composition of renewable energy systems at the project’s onset, rather than a phased, yearly rollout, which may limit adaptability and elevate operational costs over the 20-year project horizon. Current research is ongoing to address the above issue which we hope to report in near future. Future research could enhance this model by considering the integration of grid-connected power and conventional methods alongside extending its application, offering a comprehensive solution for sustainable energy generation. This direction not only addresses the limitation of initial component determination but also broadens the algorithm’s applicability to more diverse energy systems, contributing to a more adaptable and economically viable framework for renewable energy optimization.

Nomenclature

Abbreviations
HRES:Hybrid renewable energy systems
SP:Stochastic programming
ADMM:Alternating direction method of multipliers
LPSP:Loss of Power Supply Probability
PH:Progressive hedging
GA:Genetic Algorithms
kW:Kilowatt
PV:Photovoltaic.
Variables
:The generated power by a PV cell at a specified time (kW)
:The rated power of a PV cell under standard temperature conditions (kW)
:The total generated power by the PV system at a specified time (kW)
:The perpendicular solar insolation at a PV cell surface at time (W/m2)
:Solar insolation at the standard temperature condition (kW/m2)
:Efficiency factor of a PV cell
:The number of PV cells
:Short-circuit current—the maximum current generated by a PV panel when there is no voltage across it ()
:Open-circuit voltage—the maximum voltage across a PV panel when there is no current flowing through it ()
:Maximum power point—the point on the IV curve where the product of voltage and current is at its peak, indicating optimum efficiency (kW)
:Voltage at maximum power—the voltage at the maximum power point ()
:Current at maximum power—the current at the maximum power point ()
:The generated power by a wind turbine at time (kW)
:The rated power of a wind turbine (kW)
:Wind speed at time (m/s)
:The cut-in speed (m/s)
:The cut-out speed (m/s)
:Power transferred from the electrolyzer to the hydrogen tank (kW)
:Generator’s surplus power provided to the electrolyzer (kW)
:Electrolyzer efficiency
:Energy stored in the tank at time (kWh)
:Power generated by fuel cells using the hydrogen from the tank at time (kW)
:Storage efficiency of the tank
:Investment cost per kilowatt (kW) of the power plant ($/kW)
:Capacity in kW to build for the power plant (kW)
:Total allocated budget ($)
:Amount of electricity capacity used by power plant for demand block in year under scenario (kW)
:Load demand in year at block under scenario (kW)
:Factor of LPSP
:Operating cost of unit under scenario ($/kWh)
:Duration of the demand at block in hours.

Data Availability

Data is available on request.

Conflicts of Interest

The authors hereby declare that there are no conflicts of interest regarding the publication of this paper. This includes any financial, personal, or professional affiliations that could be construed as influencing the content or interpretation of the research.

Acknowledgments

Open Access funding was enabled and organized by SANLiC Gold.