Performance Enhancement of Roof-Mounted Photovoltaic System: Artiﬁcial Neural Network Optimization of Ground Coverage Ratio

: Buildings in hot climate areas are responsible for high energy consumption due to high cooling load requirements which lead to high greenhouse gas emissions. In order to curtail the stress on the national grid and reduce the atmospheric emissions, it is of prime importance that buildings produce their own onsite electrical energy using renewable energy resources. Photovoltaic ( PV ) technology is the most favorable option to produce onsite electricity in buildings. Installation of PV modules on the roof of the buildings in hot climate areas has a twofold advantage of acting as a shading device for the roof to reduce the cooling energy requirement of the building while producing electricity. A high ground coverage ratio provides more shading, but it decreases the efﬁciency of the PV system because of self-shading of the PV modules. The aim of this paper was to determine the optimal value of the ground coverage ratio which gives maximum overall performance of the roof-mounted PV system by considering roof surface shading and self-shading of the parallel PV modules. An unsupervised artiﬁcial neural network approach was implemented for Net levelized cost of energy ( Net-LCOE ) optimization. The gradient decent learning rule was used to optimize the network connection weights and the optimal ground coverage ratio was obtained. The proposed optimized roof-mounted PV system was shown to have many distinct performance advantages over a typical ground-mounted PV conﬁguration such as 2.9% better capacity factor, 15.9% more energy yield, 40% high performance ratio, 14.4% less LCOE , and 18.6% shorter payback period. The research work validates that a roof-mounted PV system in a hot climate area is a very useful option to meet the energy demand of buildings.


Introduction
The population in cities is increasing at a rapid rate and people spend most of their time inside the buildings [1]. Buildings contribute 30% in greenhouse gases (GHG) emissions by consuming 20% to 40% of total generated electricity [2,3]. In order to overcome the high electricity consumption and high GHG emissions of buildings, some countries have introduced building laws to ensure that buildings are energy efficient, emit less GHG, and generate their own onsite electricity [4]. The European Union 2020 directive about building laws says that by 2020, buildings should consume 20% less electricity, emit 20% less GHG, and generate 20% onsite energy by using renewable resources [5]. The electricity consumption of buildings in the European Union countries is 40% of the total electricity requirements [6] while this share is 80% in Saudi Arabian buildings [7]. Although the country is committed to include a large share of solar energy-based power generation in its national grid [8], unfortunately, no attention has been given to transform buildings from just users of energy to producers of energy [9]. Several countries in Europe have defined national guidelines to include renewable energy resources in buildings [10] but no proper guidelines or framework has yet been developed in this regard in Saudi Arabia.
Photovoltaic is a very attractive option to generate onsite electricity in urban areas [11,12]. This solar energy technology produces electricity by direct conversion of sunlight to DC power [13]. Since this technology has no GHG emissions during its operation, it is therefore environmentally friendly [14][15][16]. There has been a significant drop in the prices of PV panels in recent years [17] and a cost drop of 80% has been seen in the last decade [18]. The roof of a building is the most feasible place for PV installations in urban areas [19]. The excess energy, during peak solar irradiance time, can be sold to the grid by employing a net-metering system [12]. Buildings receive heat from windows, roof, and facades. The density of buildings in the urban environment is generally very high which provides shading for windows and walls. However, the roofs of buildings are directly exposed to sun [20]. The solar radiations heat up the roof and then the roof transfers the heat inside the building through conduction and convection processes. It acts as a major interface between the interior of the building and the outside atmosphere. The color of the roofs is generally dark and therefore, they absorb the main chunk of thermal energy of solar radiations [21]. Hence, the temperature of the interior of the building increases. Therefore, the energy demand of the buildings is very high in areas with a hot climate [22]. There is a steady increase in the building energy consumption rate, both in cold and hot regions across the world and the office buildings have the highest energy demand with 17% share in the global energy requirements of the world [23].
The electrical energy consumption of the gulf countries is very high during the summer solstice and Saudi Arabia has the highest summer season electricity demand in this region [24]. The summer season electrical load of Saudi Arabia has a rapid growth due to the very hot climate and the peak electrical load during summer is very high compared to the peak load in the winter season [25]. The cooling energy requirement of buildings is the major cause of the high load during summer. Global warming will further aggravate the situation due to the overall temperature rise worldwide [26]. The high energy requirements of buildings in Saudi Arabia during the hot summer can be fulfilled by installing PV panels on the buildings. The other advantage of PV technology is that its energy output is high during the daytime which could be very useful for office building with working hours in the daytime. The PV panels can be integrated in facades and windows or can be placed on the roof of buildings. The integration PV modules in facades and windows reduces their efficiency because such PV modules are mostly vertical and the optimal tilt angle and orientation to receive maximum solar irradiance is not available [27]. On the other hand, PV modules installed on the roof, block the direct connection of sun rays with the roof. Therefore, the roof is the most favorable option to install a PV system in buildings [19] and roof-mounted PVs could act as shading devices particularly in office buildings with daytime working hours [28].
Mandalaki et al. [29] investigated the performance of 13 different shading devices having PV as their integral part. Their performance was evaluated for two different locations, in China and Athens, for a small office room with one occupant. The authors in another study presented a method of calculation of roof surface area for large-scale PV installations in a community [30]. They also studied the losses due to shading from surrounding buildings and trees, but they did not consider the self-shading of the tilted PV arrays. Yadav et al. [31] evaluated a 5 kW roof-mounted PV system based on various performance criteria such as energy yield, capacity factor, energy output, and efficiency of array. Another study tested the performance of a 200 kW roof-integrated PV setup in India by evaluating capacity factor, performance ratio, and overall efficiency [32]. Shukla et al. [33] conducted an in-depth techno-economic analysis of a 110 kW rooftop PV system for India without taking into account the shading advantage of PVs. Awan et al. [34] performed a parametric optimization of rooftop and ground-mounted PV systems and compared the performance of the two optimized systems. Dondariya et al. [35] investigated a PV system of 6.4 kW capacity installed on the roof of a building in India but the shading advantage and self-shading effect of the PV modules was not included in their research work. Akpolat et al. [36] analyzed a roof integrated PV setup for Marmara University's staff building in Turkey. Their roof integrated PV system achieved a 73% performance ratio.
The literature review proves that the use of PV technology for energy generation in buildings is very important and is being investigated by many researchers across the world. Many researchers have analyzed the performance of roof-mounted PV systems but most of them did not consider the self-shading and cooling load saving benefits of a roof-mounted PV system. Several studies performed a parametric optimization of rooftop PV systems. This research work investigated the detailed performance of a roof-mounted PV system by optimizing the ground coverage ratio of the PV system on the roof while considering the self-shading and roof shading of the PV modules. An artificial neural network incorporating a gradient decent learning algorithm was applied to find the optimal value of ground coverage ratio of the proposed roof-mounted PV system.

Methodology
In order to optimize the ground coverage ratio of a rooftop PV system while taking into account the self-shading of parallel PV arrays and rooftop surface shading, the following methodological approach was adopted.

•
The solar resource data at the proposed location was obtained from the monitoring station near the administration building of Majmaah University (ABMU).

•
The layout of the rooftop PV system on the roof of the ABMU was designed in Helioscope software. This software gives a freedom to the user to avoid any obstacles on the given surface and to determine the exact available area of the roof which can be used for PV installation. Due to its design-integration approach, it helps to model the PV system based on the physical design.

•
The model of the building was simulated in EnergyPlus software to determine the cooling load requirement and roof surface temperatures under different shading scenarios • The temperature of roof surface and required cooling load of the ABMU was determined by simulating the building in EnergyPlus software.

•
The energy production calculations of the various arrangement of the PV system with different ground coverage ratios were carried out in System Advisor Model.

•
The cost and energy analysis to determine the optimal value of ground coverage ratio was performed based on incorporating the savings of energy in terms of reduced cooling load due to shading of the roof provided by rooftop PV panels.

•
The optimal value of ground coverage ratio was determined by using an unsupervised neural network based on the gradient descent learning rule.

Analysis of the Proposed Location
Saudi Arabia is part of the solar belt region and it has very rich solar resource. The government has a policy to explore this massive renewable energy resource. According to its vision 2030, the country has a plan to install 9.5 GW capacity of renewable energy technologies including solar technologies [8]. In this regard, Saudi Arabia has installed renewable energy resource monitoring stations at 46 different sites throughout the country. One of such monitoring stations is located in Majmaah University. The main ABMU was selected for the installation of the roof-mounted PV system. The data of solar resource at the proposed location was obtained from the monitoring station near the ABMU and is listed in Table 1. The Saudi Arabian climate is extremely hot; hence, the electrical load of the building rises during the summer season because of the high cooling load demand of the building. Table 1 illustrates that GHI (Global Horizontal Irradiance) at the proposed site is high during the summer solstice which shows that the GHI profile follows the load pattern at the project location. The average value of GHI is 6.04 kWh/m 2 /day and the maximum average GHI of 8.45 kWh/m 2 /day is seen in June while the minimum value of 3.9 kWh/m 2 /day appears in December.

Design of Rooftop PV System
The electrical energy produced by a PV system depends on four parameters which are the solar irradiance striking the plane of the PV array, ground reflectance, ambient temperature that affects the PV cell temperature, and derating factor. The incident solar irradiance is the most dominant factor for PV performance at a particular site. The electrical output per meter square of PV is given by [25] where, STC is standard test conditions, F PV is derating factor of PV, X PV is PV output at STC, G is plane of array solar radiations, G STC is solar radiation at STC, T cell is PV cell temperature, T cell_STC is PV cell temperature at STC, and α P is temperature coefficient of power. The output power of the PV system is directly proportional to the solar irradiance on the PV array. Dust and shading affect the output of the PV system and which is indicated by the derating factor of PV. Said [37] measured the average annual efficiency degradation of 7% for PV panels in the Riyadh region of Saudi Arabia. Baras et al. [38] measured the performance degradation of PV due to dust and soiling in the central part of Saudi Arabia and their results shown approximately 2% losses during the least dustiest month (July) versus approximately 16% losses during the dustiest month (April). Based on the information available in the literature an average performance derating factor of 10% over the whole year is considered for the proposed PV system. The influence of ground reflectance on the PV output is relatively modest. It represents the percentage of solar radiations reflected from the surface on which PV panels are installed. The cell temperature of the PV is higher than the ambient temperature because the PV modules are dark in color. The α P is a negative number therefore each degree rise in cell temperature decreases the output of the PV system by a small fraction. Monocrystalline PV panels are used for the proposed system because of their better efficiency compared to polycrystalline technology. The SUP ERPOWER CS6K-300 MS PV panel was used in this research work. It is a PERC monocrystalline PV panel. It offers better performance during the low irradiance period in the morning, evening and overcast conditions. The detailed specifications of the PV module are listed in Table 2. The series connection of many PV modules creates a PV string (Figure 1a). These strings are placed in parallel rows and are connected in series and parallel to obtain a required voltage and current to form a PV array (Figure 1b). The total roof area for the proposed rooftop PV system is 2349 m 2 . There are some other installations of cooling system and water tanks existing on the roof; hence, the available area of the roof for PV installation is 1440 m 2 . The strings of PV modules are placed on the roof in parallel rows at a tilt angle of 25 • to increase the plane of array solar irradiance. The tilt angle for the proposed PV system is selected close to the latitude of the location (25.86). The tilted PV arrays cause self-shedding of PV modules which affects their performance. The PV system is designed and evaluated for various ground coverage ratios. The layout of the PV system for a ground coverage ratio of 0.6 is shown in Figure 2. The available area of the roof of ABMU is limited therefore the total capacity of the PV system decreases as the ground coverage ratios decreases.

Building Simulation and Analysis
The ABMU is located at 25.861 • N and 45.421 • E in the Riyadh region, Saudi Arabia. The building has three stories, but only the upper story is used for the analysis because the heat of the sun rays directly affects the upper story of the building. As working hours of the ABMU are during the daytime, the peak load therefore appears during the daytime which means PV could be an effective alternative choice for suppling the load demand of the building because the PV energy production hours match with the working hours of the building. The hourly average monthly electrical load profile of the ABMU is shown in Figure 3. The electricity consumption of the building is low from November to March, but the electricity consumption is very high during the summer months especially from May to September. This high electricity consumption is due to the very high temperature during these hot summer months which leads to high cooling load requirement of the building. The roof of the building is one of the major sources of absorbing direct sun radiations which causes an increase in the air conditioning load. The installation of PV panels on the roof could provide a very useful shading advantage by blocking the direct sun rays. For calculating the cooling energy demand of the ABMU for various configurations of roof-mounted PV at different ground coverage ratios, the simulation of the building was carried out using Energyplus software. In order to find the roof temperatures and heat transfer into the building, the weather data file of GHI, DNI (Direct Normal Irradiance), DHI (Diffuse Horizontal Irradiance), temperature, wind speed, humidity etc. was used as input to the software. The steps to setup the building parameters in EnergyPlus are listed below:

•
The population density of the top floor of ABMU is 5 people per100 m 2 • The cooling and heating loads' thermostat settings are set at 25 • C and 20 • C respectively.
where, q Roo f represents total heat flux transfer into the roof, q SW is the shortwave solar radiation heat flux which comprises diffused and direct radiations received by the outer surface of roof. The q LW is the part of the heat flux from longwave radiation exchange with the surrounding high-rise buildings, air, and sky. The q conv is convection heat flux by air. The flux part by convection is modelled as where, T r is the temperature of the roof surface, T a is air temperature, and h c is the convection coefficient. The shortwave solar radiation heat flux is the accumulative effect of direct and diffuse components of the solar radiations reaching the surface of the roof. It is given by [39] q SW = (1 − α r )GHI (4) where, α r denotes the surface albedo of roof. When roof is shaded with PVs then the GHI is reduced to diffuse solar radiations (Di f ) The surfaces of different bodies exchange heat flux between each other depending on their temperature difference. The surfaces with higher temperature radiate heat while this heat is absorbed by the surfaces with lower temperature depending on the respective view factors. The longwave heat flux component of the heat flux balance equation represents this heat flux exchange. The longwave heat flux component for the rooftop surface is defined as [39] q LW = q air + q sky (6) where, q sky and q air are heat fluxes due to exchange of radiation from sky and air. These heat flux components are dictated by the temperature difference of the bodies. Using the Stefan-Boltzmann law along with the respective view factors of sky and air, the longwave heat flux expression further expands as [39,40] where F sky is the roof surface view factor to sky, F air is the roof surface view factor to air, T sky is sky temperature, ε is emissivity, σ is the Stefan-Boltzmann constant. When PV panels are placed on the surface of the roof then the roof view factors are modified. The PV panels also radiate heat from the back side; Therefore, the longwave radiation flux expression for a roof with rooftop PVs can be modified as [39,40] where, F PV is the roof surface view factor to PV back surface, T PV_b is temperature of back surface of the PV. By adding the expressions of convection, shortwave and longwave heat fluxes in the heat flux balance equation gives the expression of the total heat flux entering the roof as In order to evaluate the effect of the rooftop PV system, the ABMU is first simulated without PV panels on the roof and then the simulation is carried out for different ground coverage ratios of PV arrays. The results of the simulation illustrate that the temperature of the roof surface increases up to more than 70 • C during the summer solstice. When the PV modules are installed on the rooftop, they provide partial shading of the roof and as a result the percentage of solar radiations directly hitting the roof surface reduces. The portion of the roof covered with PV modules only receives heat flux through diffused radiation. As a result, the roof temperature reduces and less heat is transferred inside the building from the roof; therefore, the cooling energy required by the building reduces. The maximum roof temperatures for different ground coverage ratio values for each month are shown in Figure 4. The temperatures of both the interior and exterior surface of the roof decreases by increasing the ground coverage ratio, which means the building's cooling load will decrease.
The results of the ABMU simulation show that the top floor of the proposed building will consume less energy for cooling purposes when PV modules are installed on the roof. The actual consumption of cooling energy and percentage savings in the cooling load at different ground coverage ratio values are depicted in Figure 5.

Optimization of PV Systems
In order to increase the intensity of solar irradiance on the plane of the PV array, the PV modules are installed on the roof at a tilt angle. These tilted modules cause self-shading between the PV modules placed in parallel rows. As a result, the efficiency of the PV system decreases. This can be avoided by decreasing the ground coverage ratio of PV modules which will increase the distance between the parallel modules. However, this reduced ground coverage ratio results in more area of the roof surface exposed to sun rays. Therefore, more heat flux enters the building from the roof and the cooling energy load increases. Hence, it is of prime importance to determine an optimal value of ground coverage ratio. The ground coverage ratio is optimized while the objective is to minimize the LCOE (Levelized Cost of Energy). The LCOE is calculated by dividing the annualized cost of the PV system by its annual energy production and is expressed as [41] where C AN is the annualized cost and E PV is the annual energy production of the PV system and it is given by the following relation [41] where n is the hour number, P(n) is the electrical output of PV in hours n which is given by Equation (1), and A PV is the active area of the PV array. The energy yield in the case of the roof-mounted PV system is the Net-energy yield and it is the sum of the PV electrical energy yield and the cooling energy saving yield. Similarly, LCOE is the Net-LCOE which is obtained by adding the cooling energy saving advantage ( Figure 5) of roof-mounted PVs. The Net-LCOE of the roof-mounted PV system is given by adding the cooling energy savings in the denominator of Equation (10) (12) where E sav is the annual saving in cooling energy by installing roof-mounted PVs on the building. The economic parameters for calculating the Net-LCOE are listed in Table 3. The total annualized cost is calculated as [42] C AN = C TPV × CRF (13) where, C TPV is the net present value of all the costs and CRF is the capital recovery factor which is expressed as [43] where r is the interest rate and N is the project duration (25 years). The net present value of all the costs is calculated as where, CC is the capital cost, C Rep_NPV is the present value of the replacement cost of equipment, C O&M_NPV is the present value of the operation and maintenance cost, and C G_NPV is the present worth of cooling load saving in terms of grid electricity price. The electricity price of a government building in Saudi Arabia is 8.5 ¢/kWh [44]. Table 3. Roof-mounted PV system's economic parameters [45]. The final form of the Net-LCOE optimization objective function is (16) subject to the optimization constraint of the ground coverage ratio

Parameter Cost
An unsupervised neural network incorporating the gradient decent learning algorithm was developed with the present problem based on the minimization of energy function, here the energy function is in terms of the objective and constraints. The two-layer network has the number of outputs equal to the number of design variables to be determined. The connection of weights between the input and output layers are obtained by minimization of the formulated energy function. The architecture of the proposed two-layer network is shown in Figure 6. The network learning is based on the following rules: Change in weights is found by where I i is the input to the ith node of input layer; ∇ E is the gradient of the energy function E, and η is the learning rate (whose values lies between 0 and 1). Initially, a set of random weights are assigned, and outputs are computed according to In the present optimization methodology, the energy function is represented by where, F(X) is objective function (Net-LCOE) to be minimized and K is the penalty constant which is preferably a large number; P[r i (X)] is a penalty function which may be taken as r 2 which is the residual of the constraint (ground coverage ratio) violation. It can be seen from the above equations that the energy function has a set of connection weights as the only variables. The process of energy function minimization is repeated several times. In one cycle, the network takes both random inputs and connection weights, and computes the energy function and at the end of the cycle the connection weights are updated based on a gradient descent learning rule. This is repeated several times until, the energy reduces to a minimum and the weight set stabilizes. The corresponding outputs give the optimum parameter-set of the objective function. All the constraints are properly handled at every point and, if any deviations are observed they are given as a penalty. In the selection of inputs of the network, there is a flexibility that one can select a fixed set of inputs for every problem since the objective and constraints are defined in the energy function. The network took 20,000 cycles, until the energy was minimized, and the optimal value of the ground coverage ratio (x) was found to be 0.57.

Analysis in Terms of Energy
The annual energy yield (EY) is referred to as the ratio of energy generated by the system and the nominal power of the PV system [25] and is expressed as where, P n is the nominal power of the PV system. In the case of the roof-mounted PV system, the net energy yield of the optimized system is calculated by adding the cooling energy benefit of the roof-mounted PV system and is expressed as The Net-EY of the optimized roof-mounted system was calculated to be 2919 kWh/kW. The Net-EYs of the roof-mounted PV system for different ground coverage ratio values are illustrated in Figure 7. The effectiveness of a PV project can be measured by another useful factor called performance ratio. It represents the ratio of PV real electrical output to its theoretical expected energy output and is given by the below expression [46].
Per f ormance ratio = PV electrical energy output GH I × area o f PV modules × PV e f f iciency (23) The performance ratio of roof-mounted PV system can be calculated as Per f ormance ratio = PV electrical energy output + cooling energy saving GH I × area o f PV modules × PV e f f iciency The performance ratios of roof-mounted PV system for different ground coverage ratio values are presented in Figure 8. The performance ratio of the optimized PV configuration was computed to be 1.19. The Capacity Utilization Factor (CUF) of the PV system is expressed as (19) [47] while the Net-CUF of roof-mounted PV system also includes cooling energy savings as well and is expressed by Equation (20) CUF = electrical energy output nameplate capacity × 24 × 365 (25) Net − CUF = electrical energy output + cooling energy saving nameplate capacity × 24 × 365 The Net-CUFs of roof-mounted PV configuration for different ground coverage ratios are depicted in Figure 9. The optimized roof-mounted PV system has a Net-CUF of 33.3%.
It can be seen in Figures 7-9 that Net-EY, net performance ratio, and Net CUF of the roof-mounted PV are on the higher side for ground coverage ratios of 0.5 to 0.7 and the highest values of Net-EY, performance ratio and Net CUF are obtained at the optimal value of ground coverage ratio of 0.57 as found in Section 6. At low ground coverage ratio although the self-shading due to parallel arrays is less, more of the surface of the roof is exposed to direct sun rays which increases the cooling load requirement. On the other hand, higher values of ground coverage ratio, although protecting the roof outer surface from the direct contact of sun rays, mean that the self-shading of parallel PV arrays increases as a result of the output of the PV system declining. The optimal value of the ground coverage ratio of the PV systems gives a good compromise between roof shading to reduce the cooling energy requirement and self-shading to increase the PV system output.

Economic Analysis
The economic feasibility of a renewable energy project can be tested by payback period and LCOE. The payback period of a project is represented by the time period required for refunding the capital cost along with possible interest that might be obtained by some alternative investment plan of the initial capital. The payback period and Net-LCOE of the roof-mounted PV system at various ground coverage ratios are illustrated in Figure 10. Both the payback period and Net-LCOE decrease with the increasing ground coverage ratio due to the decrease in cooling load energy requirement of the building. However, again, at the higher values of ground coverage ratio, such as while increasing the ground coverage ration from 0.5 to 0.7, both payback period and Net-LCOE initially decrease but again at the ground coverage ratio of 0.7, there is a significant increase in payback period and Net-LCOE because the self-shading of the parallel PV arrays decreases the output of the PV system. The minimum values of payback period and Net-LCOE are achieved at the optimal ground coverage ratio of 0.57. The optimized roof-mounted PV system has a Net-LCOE of 3.21 c/kWh and its payback period is 2.82 years.

Comparative Analysis with Ground-Mounted PV System
In order to validate the proposed approach, the results of the optimized roof-mounted PV system are compared with the ground-mounted PV system. A land cost of 30,000 US$/acre is considered for the analysis. The EY, performance ratio, CUF of the various configurations of the ground-mounted PV system are calculated by using (17), (19), and (21). The optimal ground coverage ratio value of the ground-mounted PV system with minimum LCoE is found to be 0.66 by using the same approach as in Section 6 but without the saving in the cooling energy term (E sav ). The optimized configuration of the ground-mounted PV system has an EY of 2517 kWh/kW, CUF of 30.4%, performance ratio of 0.79, LCOE of 3.75, and payback period of 3.54 years. The comparison of the proposed optimized rooftop PV system and ground PV system is shown in Table 4.

Conclusions
This research work investigated the possibility of using a roof-mounted PV system for the administration building of Majmaah University. The binate advantage of the roof-mounted PV system was explored, and the ground coverage ratio of the PV system optimized using the artificial neural network approach. Both the electrical energy output and shading advantage of the roof-mounted PV system were taken into account in the optimization of the ground coverage ratio. An energy function was formulated combining the Net-LCOE function and the ground coverage ratio constraint. This function was minimized using the artificial neural network approach. The network was converged after 20,000 cycles and at a ground coverage ratio of 0.57, the Net-LCOE was minimized. The concept of Net-LCOE and Net-energy yield was used while optimizing and analyzing the PV system. The Net-energy yield is the sum of the electrical energy output of the PV system and the cooling energy savings due to shading of the roof while the Net-LCOE is the LCOE calculated by adding the cooling energy saving and electrical energy output. A comparison of the proposed optimized roof-mounted PV system with the same size of ground-mounted PV system shows that the optimized roof-mounted PV system has a superior performance. The optimized roof-mounted PV system has 15.9% better energy yield, 2.9% better CUF, 20.3% shorter payback period, and 14.4% less LCOE. The results of this research work prove that roof-mounted PV is a very good option in hot climate regions from both the economical and the energy output point of view. This research work provides effective directions for future policy making to fulfil the energy demands of buildings in urban areas.
Author Contributions: The Conceptualization, methodology, data collection, analysis, writing of the manuscript is done by A.S.A. The author has read and agreed to the published version of the manuscript.

Conflicts of Interest:
The author declares no conflict of interest.

A PV
PV array active area F PV derating factor of PV X PV PV output at STC G plane of array solar radiations G STC solar radiation at STC T cell PV cell temperature T cell_STC PV cell temperature at STC α P temperature coefficient of power q Roo f total heat flux into the roof q SW shortwave solar radiations heat flux q LW heat flux due to longwave radiations exchange q conv convection heat flux T r roof temperature T a air temperature h c convection coefficient α r surface albedo of roof Di f diffuse solar radiations q sky heat fluxes due to exchange of radiation from sky q air heat fluxes due to exchange of radiation from air ε emissivity σ Stefan-Boltzmann constant F sky roof surface view factor to sky F air roof surface view factor to air F PV roof surface view factor T sky sky temperature T PV_b PV back surface temperature C AN annualized cost E PV annual energy production of PV system n hour number P(n) electrical output of PV in hours n E sav annual cooling energy saving C TPV net present value of all costs r interest rate N project duration C Rep_NPV present value of equipment replacement cost C O&M_NPV present value of operation and maintenance cost C G_NPV present worth of cooling load saving P n nominal power of the PV system I i input to the i th node of input layer E energy function ∇ E gradient of the energy function η learning rate O j ouput at the i th node of output layer F(X) objective function to be minimized K penalty constant P[r i (X)] penalty function r 2 residual of the constraint violation