2. Methodology
The algorithm of the developed method supports the renovation of various types of multi-story rectangular student dormitories, including the example shown in
Figure 1. This dormitory serves as the reference model for the further analysis presented in the following sections. The discrete models employed in the performed simulations were configured based on the analysis by J. Abramczyk and W. Bielak [
2], which concerned PVIs integrated into the facades of the same IKAR student dormitory. The designed renovations were supported by several parametric models utilized during simulations accomplished in the Rhino/Grasshopper visual programming environment [
25].
The first step of this algorithm involves creating a geometric parametric, and quantitative M
fpg model of dormitories with integrated PVI, as shown in
Figure 2a,b. The designed PV panels are arranged on horizontal roofs and can be freely oriented. Eight input parameters, Xi, were adopted as independent variables. The first five variables are as follows: β—the angular difference between the azimuth of building and the azimuth of all PV panels, as shown in
Figure 2b, γ—the angle of inclination of PV’s planes relative to the horizontal plane, as shown in
Figure 2c, a
5—the height of each PV panel (
Figure 2c), Rat—the ratio of the surface area of all PV planes to the roof surface area, δ—the angle defining the a
3 distance between adjacent rows of PVI, as shown in
Figure 2c.
The next three parameters, Rep, Prc, and Rcn, are also independent variables related to the economic aspects of the energy renovations. These include the Rep net energy replacement rates the substitution of grid energy by electricity produced by the PVI; the Prc price per 1 kWh net energy; and the Rcn ratio of renovation costs to net energy prices multiplied by 1000.
The values of the selected key coefficients used in the simulations are provided in
Table 1. These include the dimensions, azimuth, geographic coordinates, and elevation above see level of the examined buildings, as well as the total energy Etot supplied to cover meet occupant needs (excluding energy allocated to HVAC systems). These coefficients, along with the assumed variation ranges of the input parameters Xi, shown in
Table 2, constitute the boundary conditions for the calculations.
The limit values of the ranges presented in
Table 2 result from typical solutions adopted for buildings with integrated PVIs. For example, the azimuth range in the second column results from the 90° difference between the azimuths of two consecutive building façades and the possibility of adjusting them within a range of ±35°. Furthermore, changing the azimuths within a range of ±45° relative to the cardinal directions does not significantly affect the results compared to the ±35° for the analyzed geographical zone [
3].
In the second step of the algorithm, discrete M
fdg,k models have to be constructed during each iterative k-th phase of the computer simulations to select the optimal M
fdeo,r model at the end of each r-th simulation process, as shown in
Figure 3. A single M
fdg,k model is defined by adopting specific values for Xi. In particular, the values β, γ, and Rat are optimized in each single r-th computer simulation, which constitute a single r-iterative process. Thus, numerous temporary discrete M
fdg,k models are created in subsequent k-iterations based on the M
fpg model. Once the optimizing condition is met with the satisfactory accuracy, then the iterations are stopped, and all M
fdg,k models are compared to identify the optimal M
fdeo,r model. The Galapagos module employs a genetic algorithm to select the optimized M
fdeo,r solution.
In the third step of the algorithm, several derivative computer simulations are executed to analyze the economic characteristics of energy renovations and to determine the effective Mfdeo model based on the previously created Mfdeo,r. In their research, twenty computer simulations (r = 1 to 20) were performed. Each r-th simulation is an iterative process leading to an energy-optimal solution, Mfdeo,r, defined by a set of seven dependent variables Yj (j = 1 to 7). These variables must be defined in the first step of the algorithm to formulate the simulation objectives. They include CTS—the costs of the PVI, PBK—the payback period of the renovation investment, TSP—the total surface area of the panels distributed on the roof, AOP—the roof area occupied by PV panels, COR—the total cost of constructing 1 m2 of PVI, AEL—the amount of electricity produced by the PVI, and RER—the net energy replacement rate, which define the cost of the net energy replaced by the electricity produced by the PV panels.
The optimizing condition related to the energy balances required by the method was defined as the equality between the amount of electricity produced by the PVI and the appropriate part of energy supplied by the power grid to serve the dormitory equipment, including lighting, computers, refrigerators, etc.
The diagram in
Figure 4 presents the monthly electricity demands of the IKAR dormitory [
2]. This building has 240 rooms (12 to 17 m
2, 24 on each floor), which accommodate approximately 400 students. The ELE line represents the electricity demand of the student rooms, while the ELES line illustrates the demand of the service spaces, including the equipment of the gas heating system. The PV line describes the electricity produced by the PVI distributed on the south-eastern façade of the IKAR building from April 2025 to September 2025, totaling 23.5∙10
3 kWh over five months. These vertically arranged crystalline silicon PV panels have a capacity of 50 kWp, system losses of 14%, an angle of incidence up to 4°, and a total surface area of 250 m
2 (comprising two large rectangles, as shown in
Figure 1). In cases where the panels were well-maintained, the total losses did not exceed 23%.
The amount of replaced grid energy Etot is determined by the Rep arbitrary energy replacement rates. These values are consistent with the characteristics of the actual modernization performed for the IKAR student residence hall, shown in
Figure 1. Subsequently, the energy-optimized discrete models Mf
deo,r allow for an analysis of the relationships between the independent Xi variables and the dependent Yj variables. The amount of electricity produced per 1 m
2 of PV panels is calculated based on the panel efficiency and solar irradiation data, which is downloaded from the referenced website [
8] via an internal module of the proprietary application designed in the Rhino/Grasshopper.
It was also assumed that each optimization process is terminated once the required calculation accuracy is achieved regarding the substitution of grid energy Etot with the electricity AEL produced by the PV panels. The genetic algorithm within the Galapagos application is used to find the minimum value that satisfies the accuracy requirements of the optimizing condition, as defined in Equation (1).
Temporary values of AEL are calculated during each iterative loop of a single simulation. The final optimal value of AEL is calculated at the end of each optimizing processes. The values of AEL calculated for the twenty Mfdeo,r models are presented in detail in the next section. It was assumed that the square of the difference dEtot calculated for each optimizing condition (Equation (2)) must fall within the range defined by Equation (3).
The payback period PBK is calculated using Equation (4).
where PBK is measured in months. The costs CTS of PVI can be determined using Equation (5).
where TSP is calculated at the end of each optimization process. The annual cost RER of the part of net energy replaced by the energy AEL produced by the PVI can be calculated using Equation (6).
The condition limiting calculations and concerning roof area covered by PV panels was defined by Equation (7) related to the calculating accuracy and the surface area of PVI.
where AOP is the roof area covered by PV panels together with the areas between subsequent rows of PV panels resulting from the δ angle, see
Figure 2c. Ab is the roof area calculated using Equation (8).
where a1 and a2 are the length and the width of roof.
3. Simulation Results
To obtain twenty discrete optimal models M
fdeo,r meeting the aforementioned specific initial conditions, twenty computer simulations (r = 1 to 20) were carried out. The main properties of these models are given in
Table 3. The first column presents the symbols of the subsequent models employed in the simulations, which were defined by the parameters Xi (i = 1 to 8). As a result of each optimizing process, the values of three independent variables—β, γ, and Rat presented in the second, the third, and the fifth columns, respectively—were calculated. The values of a
5 and δ as well as subsequent variables were kept constant in each optimizing process. The variables a
5, δ, and Rep were adopted at three levels, with the middle value corresponding to the value used in the actual renovation of the IKAR dormitory.
The variation ranges of the independent variables Xi, presented in the subsequent columns of
Table 3, were assumed to be consistent with typical values used in building renovations, taking into account the values adopted for the real-world renovation of the IKAR dormitory. The values in the second, third, and fifth columns were determined through optimization processes.
The three values presented in the fourth column result from the orientation of the PV panels in rows—either horizontal (1 m) or vertical (1.7 m)—and their maximum possible length (2.1 m). The values in the sixth column refer to the inter-row spacing selected to ensure that shading does not significantly reduce electricity production. Preliminary tests showed no decrease in PV panel efficiency at a 30° tilt angle, and the decrease remained insignificant at the 45° angle. Although the decrease became noticeable at 60°, the reduced row spacing allowed for a larger number of rows to be installed on the roof.
The values presented in the seventh column result from the efficiency of replacing grid energy with electricity production, where a portion of the energy supplied by the grid is continuously consumed to meet occupant needs throughout the year. Conversely, this value is limited by the roof area covered by PV panel rows and their spacing. Based on these facts, two relatively extreme values, 0.35 and 0.5, and one intermediate value were adopted. The values in the eighth and ninth columns result from the energy prices and installation costs assumed for the actual renovation of the IKAR dormitory. In the subsequent tables, the values of Prc and Rat were increased in accordance with variations in energy prices and installation costs.
The calculated values of the output dependent variables Yj (j = 1 to 7) are presented in
Table 4. These values were calculated during the computer simulations on the basis of the discrete M
fdg,k models created automatically in each iteration phase of each optimizing process. The symbols of the subsequent models are presented in the first column. In the second column, the total cost CTS of PVI is shown. The payback period PBK of the investment costs is presented in the third column. In the fourth and fifth columns, the surface area of the whole PV panels and the surface of the roof area occupied by PVI together with the areas between subsequent rows of PV panels are shown. The sixth column shows the cost of constructing 1 m
2 of PVI. The seventh column presents the amount of energy produced by PVI. The eighth column provides the annual profits resulting from grid energy replacement.
The Galapagos application within the Rhino/Grasshopper program, shown in
Figure 5, was employed to perform the iterative optimization processes for the renovations, resulting in the M
fdeo,r models. The procedures implemented in Galapagos are based on genetic algorithms. The interface and the adopted values of the parameters controlling the operation of Galapagos are presented in
Figure 5a. The Max Stagnant option defines the maximum number of generations allowed without fitness improvement. Population represents the number of individuals in each generation, while Initial Boost relates the number of individuals generated randomly in the first step of calculations. Maintain describes the mutation probability, and Inbreeding determines the similarity of individuals during crossbreeding.
The top graph in
Figure 5b shows the average fitness of the searched population for all genotypes (solutions). The observed upward trend and the variation in bandwidth in the subsequent generations indicate the effectiveness of the adopted algorithm. This graph shows convergence, i.e., the approach of the calculations to the optimal solution. The graph on the left is a series of points representing the subsequent best solutions throughout the optimizing process. The middle graph shows the efficiency of the calculations, i.e., the speed at which satisfactory results are obtained. The numbers on the right represent the current calculation accuracy.
To search for effective economic solutions, another twenty-two discrete output models M
fdeo,r (r from 21 to 42) were created based on the previously optimized models M
fdeo,r (r = 4, 7 and 13) and the functional dependencies defined by Equations (1)–(8). The specific property of these new M
fdeo,r models (r from 21 to 42) is that several different values of two independent variables Prc and Rcn were adopted, as shown in the third and the fourth columns of
Table 5.
The first column of
Table 5 provides the designations of the new twenty-one models that are the result of twenty-one computational processes performed on the basis of the previous optimal simulation results. In the second column of
Table 4, the designation of the basic optimal model is presented. The values of the Xi variables are taken from this basic model, except for the variables Prc and Rcn given in the third and the fourth columns.
The remaining columns of
Table 5 provide a number of values of four dependent variables calculated for M
fdeo,r (r from 21 to 40), which differ from the values calculated previously for M
fdeo,r (r from 1 to 20). Thus, a number of calculations related to the changes in the prices Prc (presented in the third column) of energy supplied with an external grid and the changes in the ratio Rcn of the price of 1 m
2 of PVI to the price of the energy supplied from the grid multiplied by 1000 were carried out using the M
fdeo,r (r from 21 to 40) models.
4. Analysis and Discussion
The characteristics of the discrete models M
fdeo,r (r from 1 to 20) presented in
Table 4 result from the relationships established between the input parametric model M
fpg(Xi) and the output parametric model M
fpe(Yj) implemented in each optimizing process. The thick lines presented in the diagrams in
Figure 6a–c represent non-linear relations between β (defining the optimal azimuth of the examined PVI) and (1) the height a
5 of the PV panels employed, as shown in
Figure 6a; (2) the Rep ratio, representing the replacement of energy delivered via the external grid with the electricity produced by the PV panels as shown in
Figure 6b; (3) the angle δ defining the distances between subsequent rows of PVI panels, as shown in
Figure 6c.
The presented thick lines describe non-linear dependences between a
5, δ, Rep, and the β optimal PVI’s azimuth. These dependences can be used to predict the expected values of β, γ, and Rat corresponding to the arbitrary values of a
5, δ, and Rep different from the those presented in
Table 3,
Table 4 and
Table 5. For these purposes, the thinner dashed regression lines are presented in these diagrams. Each figure also provides an equation corresponding to these regression lines. The considered lines and the ranges of a
5, δ, and Rep indicate a significant influence of these variables on because their variation can lead to changes in the value of β up to 8%, 43%, and 12%, respectively, as shown in
Figure 6a–c.
The diagrams shown in
Figure 7a–c present the relationships between the optimal angles γ of inclination of the PV’s planes to the horizontal plane, and a
5, δ and Rep. The presented lines indicate significant influences of these variables on variation of a
5 causes significant changes in the value of γ up to 25%, as shown in
Figure 7a. A change in Rep can also lead to a significant change in of γ up to 33%, as shown in
Figure 7b. A change in δ can cause a less significant change in γ up to 12.5%, as shown in
Figure 7c. The observed significant non-linear dependencies indicate the validity of using different inclinations of PV panels depending on their height, the quantity of the grid energy replacement rates, and the PV panel row spacing.
Figure 8a–c shows three nearly straight thick lines presenting the relations between Rat (the ratio of surface area of all PV panels to roof surface area) and a
5, δ, and Rep. The influence of a
5 on Rat is insignificant, as shown in
Figure 8a. The relationship between Rat and Rep is significant and slightly non-linear, as shown in
Figure 8b. A variation in Rep can cause a change in Rat of up to 40%. A significant change in the value of Rat up to 40% can be caused by a variation in δ, as shown in
Figure 8c.
All diagrams were made with the help of Excel [
26]. They depict the relationships obtained as a result of the optimizing processes related to the geometry and orientation of the PV panels. In turn, the relationships obtained in the second step presented below concern economic aspects of the dormitory renovations. The important arbitrary investment efficiency indicators are the PBK payback period, the CTS total PVI costs, and the RER annual profits resulting from replacing the various parts of the grid energy with electricity produced by the PVI. The performed calculations do not take into account inflation and investment interest. In addition, the variations in the grid energy prices and PVI costs were assumed to be uniform.
Figure 9a,b shows a negligible impact of a
5 and Rep on the PBK payback period of investment in the PVI. The impact of a
5 on PBK is insignificant (the observed changes are limited to 4%), as shown in
Figure 9a. The relationship between PBK and Rep is almost linear, as shown in
Figure 9b. A The possible changes in Rep can cause an insignificant variation in PBK up to 2%. However, changes in δ may cause significant changes in PBK up to 12%, as shown in
Figure 9c. The optimized models M
fdeo,r (r from 1 to 20) created using constant values of Prc and Rcn made it possible to observe the relationships indicating that the payback period is almost unchanged. The impact became noticeable only in the cases where the distance between subsequent PVI rows was significantly reduced.
Another relationship is shown in
Figure 9d, where the thick line presents a strong linear relationship between the payback period PBK and the proportion Rcn of investment costs to the unit price of energy. The analyzed range of the changes in Rcn indicates large differences in the investment payback period. The relative values of these differences can reach up to 45%, which indicates a very significant impact of the grid energy prices on the PVI costs.
The lines presented in
Figure 10a–d differ themselves noticeably in terms of their inclination and curvature.
Figure 10a shows a negligible impact of a
5 on the investment costs CTS, where any change in a
5 causes an insignificant change in CTS (limited to 4%). In turn,
Figure 10b shows a significant, linear impact of the Rep grid energy replacement rates on CTS. A change in Rep can cause a significant change in CTS up to 41%. The line presented in
Figure 10c indicates a significant, linear relationship between CTS and the angle δ. A change in δ is able to cause a significant change in up to 12%.
The line shown in
Figure 10d illustrates a very strong linear relationship between CTS and Rcn. The analyzed range of the possible changes in Rcn may result in very large variations in investment costs. The relative differences in CTS can reach 120%. This strong relationship indicates a significant impact of the unit costs of PVI on the total costs.
Four curves shown in
Figure 11a–d present four relationships between the Prc annual price of the grid energy and the variables a
5, δ, Rep, and Rcn.
Figure 11a shows an insignificant impact of a
5 on RER. The inclination of the line presented in
Figure 11b shows a significant linear impact of Rep on RER. A change in δ can cause a significant variation in RER up to 41%. The line presented in
Figure 11c indicates a significant linear relationship between RER and δ, where a variation in spacing of the subsequent PVI rows can cause significant changes in RER up to 43%.
The thick line in
Figure 11d presents a very strong linear relationship between RER and Prc since the analyzed range of the possible changes in Prc indicates a variation in Prc up to 82%.
The M
deo,7 model of the examined IKAR dormitory, developed using the novel application in Rhino/Grasshopper, is presented in
Figure 12. This geometric model of a building and its PVI are used to simulate solar performance of its envelope and electricity production. The optimal model shown in
Figure 12 enables the description of key observations that can subsequently be applied to other student residences. The figure illustrates a relatively steep inclination of the optimized PV panels to the horizontal plane and a high density of panel rows on the roof, and a significant difference between the azimuths of the PVI and the building façades. Such models facilitate the feasibility assessment of potential renovations for various existing buildings. The dark hues of the building façades and roof indicate the potential for effective utilization of the building envelope for PVI due to relatively high solar irradiance.
In addition, an analysis of the relationships presented in
Figure 4,
Figure 5 and
Figure 6 leads to a fundamental conclusion that it is advisable to optimize all three variables: the β PV panel orientation, the γ PV panel tilt angle, and the Rat ratio of PVI area to roof area to achieve the energy efficiency of student dormitory renovations using PVI. In the examined ranges of variation in the a
5 PV panel height, the δ angle determining the spacing of subsequent rows of PVI and the Rep grid energy replacement rates, it can be stated that Rep influences the optimized values of β, γ and Rat the most. Therefore, one should strive to obtain the highest possible value of Rep while maintaining the adopted boundary conditions. These relationships indicate that the individual geometric and physical characteristics of each dormitory under consideration should be optimized to effectively replace grid energy with electricity produced by the PVI.
Issues related to the Rep grid energy replacement rates were analyzed by H. Wu et al. [
21], who considered this parameter within the range of 0.35 to 0.50 for cold regions of China. This range is similar to the boundary conditions used in the current article for an analogous moderate climate. In turn, A. Barman et al. [
12] assumed a Rep value of 0.49 to be effective. These results are consistent with previous findings by Abramczyk and Bielak [
2] regarding multi-story student dormitories, where PVIs were distributed on different facades and Rep was analyzed within the 0.434 to 1.0 range. Furthermore, A. Alqatamin and J. Su [
20] showed that PVI can offset 0.15 to 0.87 of total grid load.
In the remaining instances, the influence of a5 and δ on the optimized values of β, γ, and Rat is significant; however, it is much smaller than in the case of Rep. An exception is the relationship between the optimized values of the variables δ and Rat, where the significant influence of the angle δ (defining the PV panel row spacing) on the roof area occupancy Rat. This implies a need to find an optimal value for δ that balances roof occupancy and inter-row shading resulting from maintenance and service constrains. These limitations necessitate the development of individual characteristics for each student dormitory under consideration, preferably during the building design step.
Geometrically optimized models were further considered to determine the energy production and renovation costs. An analysis of the relationships presented in
Figure 9c and
Figure 10c, and
Figure 11c show the significant impact of δ on the total cost CTS resulting from the 12% increase in CTS over the considered range of δ, as shown in
Figure 9c. In the case of the PBK payback period, the increase amounted to 12% and was significant, as shown in
Figure 10c. In the case of the annual profits RER resulting from replacing the grid energy, the increase was very significant and reached 43%, as shown in
Figure 11c.
The presented approach to energy optimizing processes for dormitory renovations is an original achievement of the authors. It is based, among other factors, on the differences β between the building and PVI azimuths, and the angle δ defining the spacing between subsequent PVI rows. The obtained quantitative relationships are valid for buildings located in Central Europe in a temperate climate. The energy and estimated economic analyses facilitated the subsequent step of the optimizing processes, the results of which were compared with those of other researchers.
Based on the optimized values of β, γ, and Rat, and the boundary conditions for a
5, δ, and Rcn, the analysis conducted using the diagrams in
Figure 9 and
Figure 10 showed that: 1. The impact of the a
5 panel height on the retrofit efficiency CTS and PBK is very small, (
Figure 9a and
Figure 10a). 2. The impact of the δ angle (defining the distance between the PVI rows) on CTS and PBK is significant; however, in the case of RER, this impact is very significant (
Figure 9b,
Figure 10b and
Figure 11b). 3. The impact of the Rep grid energy replacement rate on PBK is insignificant (
Figure 9b), but it is very significant on β and Prc (
Figure 10b and
Figure 11b). 4. The impact of the ratio between PVI installation costs per 1 m
2 of PVI and the grid energy price (of 1 kWh) on CTS and PBK is very significant (
Figure 9d and
Figure 10d). 5. The impact of the grid energy price on the profits resulting from replacing grid energy with electricity produced by the PVI is very significant (
Figure 11d). Analogous dependencies occur regarding the influence of Rat on CTS, PBK, and RER.
Issues related to the PBK payback period were analyzed by A. Young-Sub et al. [
16], who achieved an optimal payback period of nine years. L. Tao et al. [
22] demonstrated that the energy generated by the PVI allows for an eight-and-a-half-year payback period. Abramczyk and Bielak [
2] obtained a nine-year payback period for multi-story student dormitories where PVIs were placed on different facades. In the case of high variability in Rcn considered in the present article, the payback period ranges from six to ten years.
A. Alqatamin and J. Su [
20] analyzed the parametric energy and economic characteristics of PVIs arranged on various roofs in different zones. They examined two types of buildings—villas and apartments—which offered 30% and 21% rooftop utilization for PVI, respectively. In the renovations under consideration, roof surface utilization was twice as high, ranging from 43% to 60%. These results suggest that in future analyses, the roof surface utilization may achieve significantly higher values than previously recorded, necessitating the design of an appropriate area of each roof slope.