Dynamic Optimization of Solar Panel Mounting Orientation Based on Spatiotemporal Solar Radiation Distribution

In a 10 MW distributed photovoltaic project at an industrial park, initial trial operation revealed that the conventional fixed mounting orientation could not effectively utilize the rooftop space and failed to achieve the expected power generation. The solar radiation in the project area exhibits significant seasonal fluctuations, with the summer monthly average total radiation considerably higher than in winter. The traditional fixed installation scheme adopted a uniform tilt angle throughout the year, which did not fully consider the time-varying characteristics of radiation. As a result, reflection losses increased during low-radiation seasons, and the overall energy capture efficiency was limited. In my research, I propose a dynamic optimization algorithm based on the spatiotemporal distribution of solar radiation. By building a three-dimensional photovoltaic radiation reception model that incorporates interlayer shading effects, and by using neural networks for radiation prediction combined with particle swarm optimization, the azimuth and tilt angle adjustment sequences of a dual-layer solar panel system are dynamically optimized with the goal of maximizing the net revenue over the system’s full life cycle.

Core Challenges in Solar Panel Mounting Orientation

From a spatial perspective, the introduction of a dual-layer solar panel structure complicates the radiation distribution. The mounting angle of the upper-layer solar panel not only directly affects its own radiation reception efficiency but also significantly influences the irradiation conditions of the lower-layer components through projection and shading effects. Therefore, it is necessary to use a high-precision three-dimensional radiation transfer model to quantify the interlayer shading losses under different geometric configurations. The spatial layout and tilt angles of both layers must be jointly optimized to achieve an overall improvement in the radiation utilization efficiency of the entire system.

In the traditional scheme, there is a significant spatial benefit conflict between the unit-area installed capacity (120 W/m²) and the total project capacity target (10 MW). A dynamic tracking scheme could improve radiation matching precision, but the cost is high and the operation and maintenance are complex. Manual coarse adjustment suffers from insufficient precision and lagging response, making it difficult to achieve efficient use of radiation resources. To solve this contradiction, I constructed a dynamic optimization algorithm driven by spatiotemporal solar radiation distribution data. Combined with a three-dimensional photovoltaic radiation reception model, the algorithm jointly optimizes the solar panel mounting orientation, radiation response strategy, structural space constraints, and operational feasibility within a unified framework. This enables the photovoltaic system to maximize energy capture across all time periods and spatial regions.

Spatiotemporal Distribution of Solar Radiation

The solar radiation in the project area exhibits significant distribution differences in both time and space. These spatiotemporal characteristics directly affect the reception efficiency and installation optimization strategy of the photovoltaic system. The specific feature analysis is as follows.

Seasonal variation: summer (June to August) has the highest total radiation, accounting for approximately 33.3% of the annual total radiation; winter (December to February) has monthly average radiation accounting for only 16.3% of the annual total, mainly due to lower solar altitude angles and shorter sunshine duration. Daily variation: the daily radiation intensity shows a single-peak distribution, with the peak occurring around noon (12:00 to 13:00), where the maximum instantaneous radiation intensity can reach 800 to 1000 W/m²; after evening (later than 18:00), the radiation intensity rapidly decays to near zero.

Meanwhile, due to the influence of building layout and orientation, radiation intensity exhibits spatial heterogeneity. The eastern area has an average annual radiation intensity of 5180 MJ/m² because of building shading. The southwestern area has the least shading, with an average annual radiation intensity of 5320 MJ/m². The spatial coefficient of variation is about 2.7%. For the dual-layer solar panel system studied in this project, the seasonal changes in solar altitude angle and azimuth angle further cause differences in interlayer shadow occlusion duration. Through three-dimensional geometric model simulations, I found that the average daily shading duration is about 1.5 hours in summer and extends to about 3.0 hours in winter. This shading effect can be alleviated by dynamically adjusting the azimuth angle and tilt angle of the solar panels.

Table 1: Spatiotemporal radiation characteristics and their impact on dual-layer solar panel systems

Aspect Feature Impact on solar panel system
Seasonal Summer radiation highest (33.3% of annual); winter low (16.3%) Fixed tilt causes high reflection loss in winter; requires seasonal adjustment
Daily Single peak at noon; up to 1000 W/m² Optimal panel orientation should track solar altitude during peak hours
Spatial East area: 5180 MJ/m²; Southwest: 5320 MJ/m²; variation 2.7% Building shading necessitates location-specific angle optimization
Interlayer shading Summer shading 1.5 h/day; winter 3.0 h/day Dual-layer geometry requires coupled angle control to reduce shadow losses

Effective Radiation Calculation Model

The actual radiation received by a solar panel includes three components: direct radiation, diffuse radiation, and reflected radiation. However, not all incident radiation can be effectively converted into electricity. The effective radiation calculation model I developed aims to eliminate invalid radiation components and quantify the effective radiation reception intensity \( G_{eff} \) of a solar panel under a specific mounting orientation. The total solar radiation \( G_{total} \) can be decomposed as:

$$
G_{total} = G_b + G_d + G_r
$$

where \( G_b \) is the direct (beam) radiation, \( G_d \) is the diffuse sky radiation, and \( G_r \) is the ground-reflected radiation. For a solar panel located at the \( k \)-th layer (with \( k=1 \) representing the upper layer and \( k=2 \) representing the lower layer), the effective radiation intensity is computed as:

$$
G_{eff,k} = G_{b,k} \max(0,\cos\theta_k) + G_{d,k} \frac{1+\cos\alpha_k}{2} + G_{r,k} \rho \frac{1-\cos\alpha_k}{2}
$$

where \( \theta_k \) is the incidence angle between the sun ray and the normal vector of the solar panel, \( \alpha_k \) is the tilt angle of the \( k \)-th layer solar panel, and \( \rho \) is the ground reflectance. The first term represents the direct radiation contribution after considering the cosine projection effect. The second term approximates the diffuse radiation collected by a tilted surface. The third term represents the reflected radiation contribution from the ground and surrounding surfaces.

To verify the accuracy of the model, I selected typical days in summer and winter during the noon period to compare measured values with model values. The results are presented in Table 2.

Table 2: Validation results of the effective radiation calculation model

Date Time Layer Measured value (W/m²) Model value (W/m²) Relative error (%)
2023-07-15 12:00 Upper solar panel 826 800 3.1
2023-07-15 12:00 Lower solar panel 728 705 3.2
2024-01-15 12:00 Upper solar panel 385 367 4.7
2024-01-15 12:00 Lower solar panel 198 190 4.0

The relative errors are all below 5%, which confirms that the model is sufficiently accurate to support the subsequent optimization of solar panel mounting orientation.

Three-Dimensional Photovoltaic Radiation Reception Model

Traditional planar photovoltaic systems can only receive radiation from a single direction. In contrast, the solar panel radiation reception model proposed in this project adopts a three-dimensional layout that includes an upper layer, a lower layer, and a vertical layer. This design achieves coordinated capture of radiation from multiple directions and is particularly suitable for industrial rooftop scenarios with building obstructions. Table 3 summarizes the structural configuration and power generation characteristics of the three-dimensional solar panel system.

Table 3: Structural configuration and power generation characteristics of the solar panel system

Structure layer Installation height (m) Main function Best power generation period Power generation feature
Upper array 3.0 Main power generation 09:00–15:00 Receives mainly direct radiation; little shadow effect
Lower array 1.5 Auxiliary power generation 08:00–10:00 & 14:00–16:00 Receives reflected light and diffuse radiation from upper layer
Vertical array Along wall Supplementary power generation Morning and evening Uses low-angle solar radiation to extend system generation duration

After considering interlayer shading, the direct radiation received by each layer is corrected as:

$$
G_{b,k} = G_b \times \max(0,\cos\theta_k) \times S_k(\alpha,\beta,t)
$$

where \( S_k(\alpha,\beta,t) \) is the shadow loss coefficient of the \( k \)-th layer at time \( t \). This coefficient is calculated using a three-dimensional ray-tracing method and ranges between 0 and 1. A value of 1 means no shadow loss, while 0 means complete shading. The model accounts for the relative geometry between the upper and lower solar panel arrays, the building obstructions, and the sun position at every time step.

The preliminary simulation results of the three-dimensional model are encouraging. Through angle adjustment, the interlayer shadow loss is reduced by 30% to 50%. Under building obstruction conditions, the system still maintains partial power output. In winter, by increasing the tilt angle, the power generation of the lower-layer solar panel array increases by approximately 40%. The total system generation time is extended by 3 to 4 hours compared with the traditional fixed installation.

Dynamic Optimization Algorithm Design

Based on the spatiotemporal radiation distribution and the reception model, I propose a dynamic optimization algorithm that maximizes the net power generation revenue over the entire life cycle of the system. The objective is to determine the optimal azimuth angle \( \beta_k(t) \) and tilt angle \( \alpha_k(t) \) adjustment sequence for each layer of solar panels. The total net power generation revenue \( R_{total} \) is expressed as:

$$
R_{total} = \sum_{t=1}^{T} \left[ P_{gen}(t) \cdot p_{elec}(t) – C_{adj}(t) \right]
$$

where \( P_{gen}(t) \) is the total system power generation during period \( t \), \( p_{elec}(t) \) is the electricity price in yuan per kWh, and \( C_{adj}(t) \) is the operation and maintenance cost caused by angle adjustment during period \( t \).

To predict future radiation intensity, a BP neural network with two hidden layers is constructed. The input layer has 8 nodes including month, time, solar altitude angle, solar azimuth angle, cloud cover, temperature, layer number, and inter-layer relative angle. The first hidden layer has 12 neurons and the second hidden layer has 8 neurons. The output layer has 2 nodes corresponding to the effective radiation intensity of the upper layer \( G_{eff,1} \) and the lower layer \( G_{eff,2} \). The training parameters are: learning rate \( \eta = 0.01 \), number of iterations \( N = 1000 \), and the loss function is the mean squared error (MSE).

The optimization solution process includes the following steps: first, collect historical radiation data and shading simulation data, and divide them into a training set and a test set covering the full year. Second, train the neural network to obtain a radiation prediction model. Third, with the predicted radiation as input and combined with the reception model, use particle swarm optimization (PSO) to solve for the optimal quarterly angle combination. Fourth, output the angle adjustment plan and evaluate the improvement in power generation revenue.

To evaluate the prediction accuracy, I use the mean absolute error (MAE) and the root mean square error (RMSE):

$$
MAE = \frac{1}{n} \sum_{i=1}^{n} |y_i – \hat{y}_i|
$$

$$
RMSE = \sqrt{\frac{1}{n} \sum_{i=1}^{n} (y_i – \hat{y}_i)^2}
$$

Here, \( n \) is the number of samples, \( y_i \) is the actual effective radiation intensity, and \( \hat{y}_i \) is the predicted effective radiation intensity. The MAE directly reflects the average deviation between predicted and actual values. A smaller MAE indicates higher average prediction accuracy. The RMSE gives greater weight to large errors and is more sensitive to significant deviations. A small RMSE indicates that the overall deviation between predicted and actual values is small.

Optimization with Particle Swarm Algorithm

In the PSO algorithm, each particle represents a candidate adjustment sequence of azimuth and tilt angles for all solar panel layers. The position and velocity of particle \( i \) are updated as:

$$
v_i(t+1) = w v_i(t) + c_1 r_1 (p_{best,i} – x_i(t)) + c_2 r_2 (g_{best} – x_i(t))
$$

$$
x_i(t+1) = x_i(t) + v_i(t+1)
$$

where \( w \) is the inertia weight, \( c_1 \) and \( c_2 \) are acceleration coefficients, \( r_1 \) and \( r_2 \) are random numbers between 0 and 1, \( p_{best,i} \) is the personal best position of particle \( i \), and \( g_{best} \) is the global best position among all particles.

To balance global search and local exploitation, I introduce a dynamic inertia weight that decreases linearly during the iteration process:

$$
w(t) = w_{max} – (w_{max} – w_{min}) \cdot \frac{t}{T_{max}}
$$

where \( w_{max} \) and \( w_{min} \) are the maximum and minimum inertia weights, \( t \) is the current iteration number, and \( T_{max} \) is the maximum number of iterations.

The angle adjustment operation and maintenance cost \( C_{adj}(t) \) can be quantified as:

$$
C_{adj}(t) = C_f + \sum_{k=1}^{2} c_k \cdot |\alpha_k(t) – \alpha_k(t-1)|
$$

where \( C_f \) is the fixed operation and maintenance base cost per adjustment, including manual inspection and equipment wear, \( c_k \) is the marginal cost per degree of angle adjustment for the \( k \)-th layer solar panel, which is related to the energy consumption of the driving device and mechanical wear, and \( |\alpha_k(t) – \alpha_k(t-1)| \) is the absolute change in tilt angle between adjacent adjustment periods. This cost function ensures that the optimizer does not make excessively frequent or large adjustments that are not economically beneficial.

Table 4 summarizes the key parameters of the dynamic optimization algorithm.

Table 4: Parameters of the BP neural network and PSO algorithm

Component Parameter Value / Description
BP neural network Input nodes 8 nodes (month, time, altitude, azimuth, cloud cover, temperature, layer, inter-layer angle)
Hidden layer 1 12 neurons
Hidden layer 2 8 neurons
Learning rate / Iterations 0.01 / 1000
PSO Population size 30 particles
Acceleration coefficients \( c_1 = 1.5 \), \( c_2 = 1.5 \)
Inertia weight range \( w_{max} = 0.9 \), \( w_{min} = 0.4 \)
Maximum iterations 200

Simulation and Validation

To ensure that the dynamic optimization algorithm is feasible in practical engineering, I further optimized the algorithm and verified its improved performance through simulation. In the PSO process, the dynamic inertia weight was introduced to balance global search and local exploration ability, which improves both convergence speed and solution accuracy. The objective function, which is the total net revenue \( R_{total} \), simultaneously accounts for interlayer shading losses and the economic constraints of angle adjustment.

I simulated a full year of operation and compared the traditional fixed installation scheme with the dynamic optimization scheme. The simulation was based on actual meteorological data of the project location and the validated three-dimensional radiation reception model. Table 5 presents the key performance comparison.

Table 5: Comparison of dynamic optimization scheme and traditional fixed scheme

Indicator Traditional fixed scheme Dynamic optimization scheme Improvement
Annual total power generation (10⁴ kWh) 1164.5 1378.2 +18.3%
Unit area power generation (kWh/m²) 105.8 129.1 +22.0%
Annual average effective radiation (W/m²) 318.7 378.0 +18.6%
Annual power generation revenue (10⁴ yuan) 931.6 1107.2 +18.8%
Annual O&M cost (10⁴ yuan) 10.0 12.4 +2.4
Static payback period (years) 8.2 6.9 Shortened by 1.3 years
Spatial utilization Limited plane expansion Spatial collaborative utilization Significantly optimized

The simulation results show that the dynamic optimization algorithm increases the annual average effective radiation reception intensity of the system by about 18.6% and the expected life-cycle net power generation revenue by 15.2%. The annual total power generation is increased by 18.3%, and the static payback period is shortened by 1.3 years. This verifies the effectiveness of the algorithm in dealing with the spatiotemporal heterogeneity of solar radiation and improving the overall performance of the dual-layer solar panel system.

Prediction Accuracy of the Neural Network

The accuracy of the radiation prediction directly affects the optimization quality. During the simulation, I evaluated the BP neural network on a test set not used in training. The MAE was found to be 12.6 W/m² for the upper solar panel and 18.3 W/m² for the lower solar panel. The RMSE values were 16.2 W/m² and 22.7 W/m² respectively. These errors are relatively small compared with the typical effective radiation intensity range of 200 to 800 W/m², indicating that the neural network can provide reliable predictions for the optimization process.

Table 6: Prediction error metrics for effective radiation intensity

Layer MAE (W/m²) RMSE (W/m²)
Upper solar panel 12.6 16.2
Lower solar panel 18.3 22.7

Robustness of the Dynamic Optimization

I also tested the algorithm under various adverse conditions, including overcast days, heavy cloud cover, and partial building shading scenarios. In every case, the algorithm successfully adjusted the solar panel orientation to maintain a relatively stable power output. For instance, during mornings when the eastern building caused heavy shading on the upper layer, the algorithm reduced the upper-layer tilt angle and increased the lower-layer azimuth angle toward the southwestern open area, thereby capturing more diffuse radiation. In the evening, the vertical array was adjusted to follow low-altitude sunlight, extending generation by an additional 1.5 hours.

The dynamic optimization algorithm does not rely on expensive dual-axis trackers. Instead, it uses a low-cost stepper motor driven adjustment mechanism with a limited number of discrete adjustment positions per day. The optimization results provide a set of precomputed adjustment schedules that can be implemented with simple control logic. This greatly reduces the cost and complexity compared with real-time sun tracking.

Comprehensive Benefit Analysis

To fully evaluate the practical benefits of the dynamic optimization algorithm, I conducted a one-year simulated operation and comparative analysis from four dimensions: power generation performance, economic revenue, space utilization efficiency, and algorithm stability. The detailed comparison with the traditional fixed installation scheme has been presented in Table 5. The three-dimensional layout combined with dynamic angle adjustment improves the effective power generation per unit rooftop area by about 22%, which effectively alleviates the rooftop space shortage in the early plan while satisfying the 10 MW capacity target.

The algorithm also shows strong adaptability to various weather conditions and partial shading scenarios. By adjusting the solar panel orientation in real time, the system maintains a relatively stable power output. The annual operation and maintenance cost of the dynamic scheme is only 2.4 ten-thousand yuan higher than the fixed scheme, but the annual revenue increase is 175.6 ten-thousand yuan. The net economic benefit is overwhelmingly positive. The static investment payback period is reduced from 8.2 years to 6.9 years, which is a significant improvement for project financing and long-term viability.

Furthermore, the dynamic optimization is not limited to new installations. The algorithm can be applied to existing fixed-tilt solar panel systems by retrofitting the mounting structure with a motorized actuator. The control system requires minimal computational resources, as the neural network and PSO are run offline during the design phase, producing a look-up table of optimal angles for each season and time interval. The online controller simply implements the precomputed schedule with possible local adjustments based on real-time cloud cover measurements.

Another important benefit is the improvement in solar panel lifetime. By avoiding extreme tilt angles in high-wind conditions, the dynamic algorithm reduces mechanical stress. The optimization also avoids self-shading in the early morning and late afternoon by setting the azimuth angles appropriately, which prevents uneven degradation of the solar panel cells. This contributes to a longer system lifetime and lower long-term cost.

Conclusion

In this work, I have presented a comprehensive dynamic optimization algorithm for solar panel mounting orientation based on the spatiotemporal distribution of solar radiation. The key contributions are summarized as follows.

First, I developed a three-dimensional photovoltaic radiation reception model that accurately quantifies the effective radiation received by both upper and lower solar panel layers in a dual-layer configuration. The model explicitly includes interlayer shading effects and has been validated with field measurements, achieving relative errors under 5%.

Second, I designed a dynamic optimization algorithm that combines a BP neural network for radiation prediction with a particle swarm optimization algorithm for angle sequence determination. The objective is to maximize the total life-cycle net revenue, considering both the power generation benefit and the adjustment cost. This algorithm successfully handles the seasonal and diurnal variation of solar radiation and the spatial heterogeneity caused by building obstructions.

Third, the simulation results demonstrate significant improvements over the traditional fixed mounting method. The annual power generation increases by 18.3%, the annual average effective radiation intensity increases by 18.6%, and the static payback period is shortened from 8.2 years to 6.9 years. The unit area power generation improves by 22%, indicating a substantial enhancement in spatial utilization efficiency.

Finally, the algorithm is designed to be cost-effective and practical for industrial rooftop applications. It does not require expensive full tracking hardware, but rather a simple scheduled adjustment mechanism. The optimization framework can be adapted to various building layouts, climate conditions, and electricity pricing schemes. For the future, I believe that further research should focus on developing low-cost robust adjustment mechanisms, exploring the integration of solar panel systems with building-integrated photovoltaics and energy storage, and enhancing the algorithm’s real-time adaptability to extreme weather events. By continuously refining the coupling between radiation prediction, shading modeling, and economic optimization, the dynamic control of solar panel orientation will become an essential tool for maximizing the energy yield and economic return of distributed photovoltaic systems in complex environments.

Scroll to Top