Abstract
The global energy structure is undergoing a transition toward green and low-carbon development. To address the challenges of large-scale energy consumption management and insufficient low-carbon potential exploitation in university buildings, this study first develops models of photovoltaic (PV) generation and battery energy storage systems. Subsequently, an optimal scheduling model is established with the objectives of minimizing economic operating costs and carbon tax, while considering power balance constraints and equipment output constraints. Furthermore, to overcome the problems of premature convergence and local optima in the traditional particle swarm optimization (PSO) algorithm, a Sine-triggered Particle Swarm Optimization (STPSO) algorithm is proposed. By dynamically adjusting the particle search range using a sine function, the proposed algorithm enhances global exploration capability and effectively avoids premature convergence. Experimental results demonstrate that, compared with MEDDPG, MA, MOPSO, and PSO, the proposed STPSO algorithm achieves the lowest relative percentage growth value and the shortest computation time, requiring only 46.5 s, which verifies the effectiveness of the proposed improvements. Compared with the conventional PSO algorithm, STPSO achieves the most significant reduction in daily operating costs under rainy conditions, with a maximum saving of 45%. Moreover, it reduces carbon dioxide emissions by 119.82 kg on sunny days. The proposed method provides an effective solution for green energy management and low-carbon operation of university dormitory building clusters.
1. Introduction
As global environmental pressures continue to intensify, countries around the world are accelerating the transition of their energy structures by reducing fossil fuel consumption and increasing the share of renewable energy development and utilization. These efforts aim to address the challenges posed by global climate change and achieve the goals set forth in the Paris Agreement, particularly limiting the increase in global average temperature to well below 2 °C above pre-industrial levels. With the continuous expansion of university campuses and the increasing number of functional buildings, the overall energy consumption structure of universities has become increasingly complex, accompanied by continuously growing energy demand. As the area with the highest population density on campus, dormitory buildings generally consume significantly more electricity than other functional areas and have become a key target for energy conservation management. Due to the large variety of electrical appliances, long operating periods, and strong consumption regularity in dormitory areas, investigating optimal power scheduling strategies for university dormitory buildings can not only facilitate demand-side resource regulation and achieve peak shaving and valley filling but also effectively improve energy utilization efficiency, which has significant practical implications.
Distributed generation can improve energy utilization efficiency and promote the integration of renewable energy resources, thereby alleviating the technical and energy storage limitations of conventional power grids. According to statistics from the National Energy Administration, by September 2023, the cumulative installed capacity of distributed photovoltaic (PV) generation in China had reached 105 million kW, with an additional installed capacity of 32.977 million kW. The cumulative number of distributed PV installations exceeded 5 million households [1]. However, with the continuous increase in installed PV capacity, which is gradually approaching or even exceeding the hosting capacity of distribution networks, challenges associated with PV grid connection and renewable energy consumption have become increasingly prominent [2]. At present, China’s PV power generation is generally characterized by high electricity export to the grid and low local self-consumption.
To further improve the utilization efficiency of PV power, it is essential to promote the deployment of demand response strategies and energy storage systems (ESSs). By optimizing the coordinated operation of PV generation and energy storage resources, accurate supply-demand balancing can be achieved, thereby enhancing the local consumption of renewable energy [3]. However, the optimal scheduling of distributed energy systems faces numerous challenges. A key challenge lies in coordinating the operational strategies of multiple devices to achieve both efficient system operation and economic benefits. This problem can be formulated as a typical multi-objective optimization problem involving multiple coupled objectives, decision variables, and constraints. Therefore, it is necessary to determine an optimal trade-off solution under complex operational constraints.
To address these challenges, Jeong et al. proposed a two-stage operation method for ESSs. From the perspective of future electricity markets, this method optimizes ESS operation by reducing the total operating cost while mitigating the risks associated with inaccurate forecasts of renewable energy generation [4]. Kristina Orehounig et al. investigated static planning and scenario analysis at the community scale based on the Energy Hub concept [5]. Xu et al. proposed an optimal scheduling strategy for a thermoelectric-coupled microgrid [6]. By simplifying the probabilistic model, the computational complexity was reduced, while user satisfaction was also taken into account. However, the computational efficiency of the proposed method for large-scale microgrids still requires further improvement. Nevertheless, these studies have limited capabilities in terms of dynamic optimization during real-time operation.
Furthermore, Meenakshi De et al. investigated the effectiveness of energy management (EM) systems in terms of actual power losses and incorporated demand response (DR) technology into the optimization process [7]. Ralph Evins proposed the ”Energy center” model, composed of mixed integer linear programming. By determining the optimal conversion and storage plans under a set of constraints, the balance among various energy carriers was achieved, however, the uncertainty associated with renewable energy forecasting was not considered [8]. Arif Istiak Abeg et al. utilized an algorithm inspired by the genetic algorithm and the gray Wolf algorithm, and adopted a component with “deduplication” to optimize capacity configuration, aiming to enhance reliability, cost-effectiveness, and sustainability [9]. Gomez-Gonzalez et al. proposed a joint optimization approach for PV household prosumer that simultaneously considers PV generation, household electricity demand, and power conversion processes. The results demonstrated that improving PV self-consumption capability can provide greater economic benefits; however, the economic aspects of energy storage were not considered in their study [10]. Santos et al. proposed a multistage stochastic mathematical model to optimize the sizing of distributed energy technologies while enabling their coordinated operation with energy storage systems and reactive power sources [11]. Li Shengqing et al. proposed an improved ant colony algorithm (ACA) by introducing attenuation, deflection-angle, and inflection-point parameters to optimize photovoltaic microgrid operation and the charging and discharging behavior of hybrid ESSs [12]. However, their study focused on the performance of a single optimization algorithm and lacked comparisons with other intelligent optimization algorithms.
Regarding the role of multi-agent collaboration in accommodating renewable energy within microgrids. Wang et al. modeled subsystems comprising multiple distributed energy resources and employed particle swarm optimization (PSO) to solve a multi-objective optimization problem aimed at maximizing renewable energy utilization [13]. Ignat et al. considered not only solar photovoltaic systems but also several less-investigated distributed energy resources, including geothermal generators and biomass generators. The PSO algorithm was employed to solve the day-ahead scheduling problem of microgrids [14]. Yi et al. investigated a microgrid in Hebei Province, China, and achieved coordinated benefit maximization among different participants by optimally managing the charging time of electric vehicles (EVs) while simultaneously optimizing the capacities of charging stations and energy storage systems. The proposed approach also improved the potential for renewable energy consumption [15]. However, further consideration of economic factors, such as electricity markets and carbon trading, is still required. References [16,17] established and solved optimization models for the power management of energy storage systems. However, these studies primarily focused on off-grid applications, and their applicability to grid-connected microgrids remains limited. Existing optimization models are generally developed for either single time-step optimization [18] or daily basis [19]. Only a few studies envisaged longer horizons [10,20].
Based on the above research, this paper aims to minimize the comprehensive cost, improve the classical particle swarm optimization algorithm, propose a particle swarm optimization algorithm based on sinusoidal triggering, and solve the optimization scheduling model. Through case-study validation, the effectiveness of this method in improving system efficiency and reducing energy consumption has been proven. Figure 1 shows the research framework of this study.
Figure 1.
Research framework.
2. System Description
To study the supply and demand balance of the power system in university dormitory areas and promote energy-saving optimization, it is necessary to combine relatively accurate power consumption data on the demand side. Priority should be given to maximizing the output of clean energy, and the time-of-use electricity price and the state of charge of the battery should be comprehensively considered. Then, energy storage methods should be utilized to coordinate the power system for optimal dispatching, so as to achieve the goal of minimizing the comprehensive cost of both the economic cost and carbon emissions. As shown in Figure 2, it is the diagram of the power dispatching system.
Figure 2.
Power dispatching system.
The TRNSYS 18 software was employed to simulate the proposed system in this study. For the sake of this modeling study, this program includes comprehensive libraries of system and technology components, which include solar energy systems, battery storage units, and other relevant technical elements. The TRNSYS component library has been extensively validated through prior experimental studies [21,22] and is widely adopted for system-level modeling [23].
2.1. Photovoltaic Power
The basic principle of photovoltaic power generation is that when the P-N junction of P-N homogeneous semiconductor materials is exposed to sunlight, electron–hole pairs are generated, forming an internal electrostatic field. Under the action of the electrostatic field, electrons move to form a current, converting light energy into electrical energy. The photovoltaic power generation system consists of equipment such as solar cell arrays, charge and discharge controllers, battery banks, inverters, and solar tracking control systems [24], as shown in Figure 3.
Figure 3.
Photovoltaic power generation system.
The output characteristic of a solar cell is a measure of how much energy is converted and is used to describe the efficiency of energy utilization. The main factors that have a significant impact on the output power of PV power generation systems are light intensity, ambient temperature, and weather conditions. The output power model of a photovoltaic power generation system can be expressed by Formula (1):
In Formula (1): is the output power when the light intensity is (W/m2), is the maximum output power of the photovoltaic power generation system under standard conditions, is the light intensity under standard test conditions, k is the power temperature coefficient, is the temperature of the solar cell, and is the reference temperature.
The output power of PV generation varies significantly throughout the day. PV power generation typically commences around 6:00 a.m., and as solar irradiance intensifies with time, the output power gradually increases, reaching its peak at midday. In the afternoon, as solar irradiance diminishes, the output power correspondingly declines. Figure 4 illustrates the typical daily profile of PV power output.
Figure 4.
Typical output power variation curve of photovoltaic power generation.
2.2. Battery
The battery effectively resolves the fluctuations in grid voltage caused by the influence of light and temperature during the photovoltaic power generation process. Meanwhile, during the time-of-use electricity pricing stage, energy storage devices can also play a very good role in optimizing electricity consumption. To extend the service life of the battery and ensure the safe operation of the power generation system, it is necessary to estimate its state of charge. The state of charge is defined as the ratio of the remaining capacity to the rated capacity, and its mathematical description is as follows:
In the formula, represents the remaining capacity of the battery, and is the rated capacity of the battery. When SOC = 1, it indicates that the battery has been fully charged. When SOC = 0, it means that the battery has been completely discharged. The efficiency of the battery is the highest when the capacity is between 60% and 80%.
The mathematical model expression of the charging and discharging power of the storage battery is as follows:
The constraint conditions of the state of charge are
Here, is the charging power per unit time, is the discharging power per unit time, is the charging efficiency, is the discharging efficiency, is the rated capacity of the battery, is the self-discharge coefficient, is the state of charge at time t, is the minimum state of charge, is the maximum state of charge.
3. Multi-Objective Optimization Scheduling Model
3.1. Objective Function
Based on the power generation model of energy, with operating costs and carbon emissions as the optimization dispatching targets, a 24 h power system optimization dispatching model is established. Operating costs include depreciation expenses of each power generation unit, maintenance costs, transaction costs with the large power grid, and charging and discharging costs of batteries, etc. Solar energy is a clean energy source. Since it does not produce gases such as carbon dioxide during operation, its carbon emissions are not taken into account. Since the vast majority of the electricity in the current power grid is mainly generated by thermal power, a large amount of carbon dioxide will be produced during the operation process when it is introduced into the power grid for supply, polluting the environment. Therefore, carbon emissions are taken as another optimization target.
By studying the mathematical model of energy and considering the respective output models, it is ensured that the comprehensive economic cost and carbon emissions are minimized during the dispatching process. The mathematical expression of the operating cost objective function is as follows.
- (1)
- Operating cost function
The operation cost function in the process of optimizing scheduling is as follows:
Here, is the depreciation cost, is the maintenance cost, is the transaction cost between photovoltaic and the main power grid, and is the charging and discharging cost of the battery.
is the depreciation cost of the power generation model, as shown in the following formula:
In the formula, is the actual installation cost of the power generation model, is the return on investment coefficient, is the active power at time t, is the rated power of the power generation model, and is the capacity coefficient.
represents the maintenance cost of energy, as shown in the following formula:
is the maintenance coefficient of the i-th power generation model.
The cost calculation for transactions between photovoltaic power generation and the main power grid is as follows:
In the formula, and , respectively, represent the electricity price and volume purchased from the power grid, and , respectively, represent the electricity price and volume sold to the power grid within the time period t.
The charging and discharging costs of the battery are calculated as follows:
In the formula, is the charging power of the battery, and is the discharging power of the battery.
- (2)
- Carbon dioxide emission function
Based on the building carbon emission calculation standard “GBT 51366-2019” [25], this paper determines the total carbon emission (GM) corresponding to the building area according to the energy type, energy consumption, and carbon emission factor. The calculation formula is as follows:
In the formula, represents the carbon emissions per unit building area during the building operation stage (kgCO2/m2); represents the annual consumption of Type i energy for buildings (unit/a); is the carbon emission factor of the first type of energy; represents the type i energy consumption (unit/a) of the type j system; represents the amount of Type i energy provided by renewable energy systems consumed by Type j systems (in units per year); i represents the terminal energy types consumed by buildings, including electricity, gas, petroleum, municipal heating, etc. j represents the type of building energy consumption system, including heating and air conditioning, lighting, domestic hot water systems, etc. represents the annual carbon reduction of the building green space carbon sink system (kgCO2/m2); y represents the design life of the building (a); A represents the building area (m2).
- (3)
- Comprehensive cost function
Comprehensive cost refers to the comprehensive consideration of economic cost and carbon emissions. It is not merely about pursuing the lowest economic cost or the smallest carbon emissions with the least environmental impact as the primary priority, but rather giving an appropriate proportion to the two to achieve the highest overall benefit in the long run [26]. The calculation function is as follows:
In the formula, represents the comprehensive cost, is the operating cost function, is the carbon emission function, and are the weights corresponding to the operating cost function and the carbon emission function, respectively, denotes the carbon trading price, set at 42 Yuan/t.
3.2. Constraint Conditions
To achieve the reasonable and reliable operation of multiple energy sources and ensure the maximization of comprehensive benefits during the dispatching process, it is necessary to impose necessary constraints on each power generation model [27]. These constraints specifically include inequality constraints such as power balance constraints, output upper and lower limit constraints, charging and discharging constraints, and interaction constraints with the power grid [28]. The specific constraint formulas are as follows:
- (1)
- Power balance constraint
In the formula, represents the power consumption of the load within time period t, is the power loss of the line during time period t, and is the active power interacting with the main power grid.
- (2)
- Output constraints of each power generation model
In the formula, represents the minimum active power value of the i-th power generation model at time t, and represents the maximum active power value of the i-th power generation model at time t. represents purchasing electricity from the power grid, and vice versa, selling electricity to the power grid.
- (3)
- Constraints on photovoltaic reserve capacity
In the formula, represents the maximum output power of photovoltaic power, is the load power consumption in time period t, is the demand coefficient of the load for the reserve capacity, is the nominal capacity of photovoltaic power in time period t, and is the demand coefficient of photovoltaic power in the system for the reserve capacity.
- (4)
- Charging and discharging constraints
In the formula, represents the charging and discharging power of the battery within time t, is the minimum charging and discharging power of the battery, and is the maximum charging and discharging power of the battery.
3.3. Solution of the Optimized Scheduling Model
3.3.1. Particle Swarm Optimization Algorithm
Particle Swarm Optimization (PSO) is a meta-heuristic global search algorithm, which was first proposed by Dr. Kennedy and Dr. Eberhart in 1995 [29]. The essence of this algorithm is to simulate the hunting behavior of birds during flight. Each individual is regarded as a particle, each with its position and speed, representing a candidate solution in the search space. When a certain particle finds a high-quality food source, it will broadcast information to the surrounding particles. Other particles will adjust their movement directions according to the received signals. When multiple particles discover multiple high-quality foods, the group will select the optimal solution through information exchange and collaboration, thereby determining the next position and speed. Figure 5 is the flowchart of the standard particle swarm optimization algorithm. The update formula of the particle is as follows:
Figure 5.
Flowchart of the standard particle swarm optimization algorithm.
In the formula, the inertia weight plays a controlling role in the particle velocity, with v balancing the local and global search of the particle. When is large, the global search ability of the particle is strong, and when is small, the local development ability of the particle is strong. In the formula, and are learning factors, whose main function is to determine the particle’s self-learning ability and ability to learn from other excellent particles, as well as to accelerate the speed at which the particle approaches the optimal solution. and is a random number within (0,1).
In the particle swarm optimization algorithm, the globally optimal particle will share its position and velocity information with other particles. This is a one-way information dissemination method, which can accelerate the convergence speed of the particles and enable them to find the optimal solution more quickly. The momentum term coefficient is an important parameter in particle swarm optimization algorithms, which is used to control the inertia of particles, that is, the extent to which the current velocity is maintained. To prevent particles from falling into local optima and enhance the search ability for global optima, eliminating the influence of the momentum term, the learning factor is improved, and a sinusoidal trigger mechanism is proposed to further improve the convergence speed and accuracy of the algorithm.
3.3.2. Improved Particle Swarm Optimization Algorithm
In the PSO algorithm, and are also known as the self-cognition term and the group cognition term, which are used to reflect whether particles mainly rely on individual information capture or group cooperation among particles to determine the next movement situation. Studies show that when the value of the self-cognitive component is greater than that of the group component, it will lead to excessive wandering of particles in the search space. When the value of the group components is relatively high, it will lead to individuals prematurely escaping the global optimal state. Therefore, in the early stage of the optimization process, the global search ability of the search space should be enhanced. In the later stage of the optimization process, the convergence ability of the entire search space to the global optimum should be improved. For this purpose, a Sine-Triggered Particle Swarm Optimization algorithm (STPSO) is proposed.
A sine wave is a sine function that varies with time. By performing mathematical transformations on a standard sine wave, it can be changed periodically within a certain range. Therefore, the periodic and nonlinear characteristics of the sine wave are utilized to effectively balance the early global search and the later global convergence ability, so that it changes over time, thereby periodically enhancing the global exploration and local development capabilities. The specific implementation process is as follows:
In the formula, a is the coefficient, is the maximum number of iterations, and is the current number of iterations.
Through the improvement of the learning factor parameters, the specific implementation steps of the sinusoidal-triggered particle swarm optimization algorithm are as follows, and the process is shown in Figure 6.
Figure 6.
Flowchart of the sine-triggered particle swarm optimization algorithm.
Step 1: Population initialization.
- (1)
- Set the initial values of the parameters, including the particle dimension, the number of particles, the number of iterations, and the inertia weight coefficient.
- (2)
- Randomly generate the initial positions and running speeds of all particles.
- (3)
- Map the initialized particles onto the solution space.
Step 2: Determine the fitness function and calculate the particle fitness value.
Step 3: Update the particle state.
- (1)
- Update the individual optimum and global optimum based on the current state of the particle.
- (2)
- Use Formulas (18) and (19) to update the velocity and position of the particles.
Step 4: Assess whether the termination conditions are met.
If the final termination condition is met, the optimal value is directly output; if the termination condition is not met, the next iteration is carried out. When the maximum number of iterations is reached, the final global optimal result is output.
4. Results and Discussion
Based on the actual electricity consumption data of the dormitory area of a university, this study employs the Sine-triggered Particle Swarm Optimization (STPSO) algorithm to achieve optimal scheduling of energy supply units. To minimize the impact of photovoltaic (PV) generation uncertainty on the normal operation of campus electrical equipment, a daily scheduling horizon is adopted, with each day divided into 24 time intervals. Through an analysis of the electrical equipment in the dormitory area, it is found that air-conditioning systems have the highest electricity consumption among all appliances and exhibit strong seasonal characteristics. Therefore, typical-day data during the air-conditioning season from 23 May to 12 July are selected for optimal scheduling. The optimization objective is to minimize the comprehensive economic cost and carbon emissions of the energy system.
4.1. Building Overview
The research object is a university dormitory complex located in Xi’an, Shaanxi Province, China. Ten dormitory buildings constructed in 2018 were selected for this study, with a total area of 70,014 m2, including six male dormitory buildings and four female dormitory buildings. Each dormitory room accommodates four students, as shown in Figure 7. The campus is supplied by two high-voltage incoming lines, with a combined capacity of 24,300 kVA. Meanwhile, a photovoltaic (PV) power generation system was installed in 2018, with a total installed capacity of 2640 kW. The PV system consists of 9600 HH275 (30) M-type solar panels. The south-facing large rooftop has an inherent slope of 20°, while the south slope of the rooftop garden has an inherent slope of 24°. The PV modules are installed using a rooftop flat-laying configuration. The annual average electricity generation of the PV system is approximately 2.5732 million kWh.
Figure 7.
Building and floor plan of the investigated university dormitory. (a) Exterior view of the university dormitory building. (b) Floor plan of the dormitory building.
Hourly electricity consumption data were obtained daily from the energy consumption monitoring and management center. Figure 8 presents the monthly electricity consumption data of two dormitory buildings in 2021. Building A is a six-story large dormitory building with a capacity of 995 students, while Building B is a four-story small dormitory building accommodating 360 students.
Figure 8.
Monthly electricity consumption of two dormitory buildings in 2021.
4.2. Parameter Setting
(1) According to the actual situation of this university dormitory, photovoltaic generation and battery energy storage systems are selected as the primary energy supply equipment. The performance parameters of each component, including the installation cost, service life, rated power, and operation and maintenance (O&M) cost, are listed in Table 1.
Table 1.
Performance parameters of each device.
(2) Electricity prices vary at different times of the day based on electricity demand and scale. Therefore, electricity can be purchased from or sold to the grid at different times based on the energy storage and consumption requirements. The specific electricity prices for each period are shown in Table 2.
Table 2.
Electricity price table for each period.
(3) Prior to the implementation of STPSO-based optimal energy management, the initial algorithm parameters are configured. The detailed parameter settings are presented in Table 3.
Table 3.
Initial parameter settings of the algorithm.
4.3. Parametric Study
4.3.1. Parameter Sensitivity Analysis
To determine the optimal parameters for the STPSO algorithm in solving the comprehensive cost optimization problem in optimal energy management, the range for coefficient a was first established, preliminarily set between 0.54 and 0.64. The experiment selected six distinct values of a within this range, with a particle size of 40, a dimension of 30, and a maximum iteration count of 1000. Twenty independent experiments were conducted. When the global optimal fitness value reached , the algorithm was deemed to have found an optimal solution, and the iteration count at that point was recorded. If the maximum iteration count was reached without meeting the fitness requirement, the solution was considered unsatisfactory and marked as “o”. The number of optimal solutions obtained for different a values and the average iteration count were recorded. The specific experimental results are shown in Table 4.
Table 4.
Number of iterations to find the global optimum using different a values.
Table 4 shows that when a = 0.54, the algorithm obtained the optimal solution 16 times with an average iteration count of 744. When a = 0.58, 0.6, 0.62, and 0.64, the optimal solution was obtained 20 times each, with the minimum average iteration count of 585 occurring when a = 0.6. Analysis of the comprehensive experimental results showed the following: Different values of a significantly impact the algorithm’s optimization performance. When a is set too large, the population spends excessive time searching under a large learning rate, making it prone to missing the optimal solution. Conversely, when a is set too small, the learning rate decreases too slowly, causing the algorithm to enter local search before reaching the optimal solution region.
To further verify the robustness of the parameter a, a statistical analysis was performed on the results of 20 independent runs, as presented in Table 5. A 95% confidence interval for the mean number of iterations corresponding to each parameter value was constructed using the t-distribution. To rigorously evaluate parameter sensitivity, the success rate corresponding to each value of parameter a is presented in Table 5. When a = 0.54 and a = 0.56, the success rates are only 80% and 95%, respectively, indicating insufficient global search capability or premature convergence of the algorithm. In contrast, when , the success rate reaches 100%.
Table 5.
Results of the sensitivity analysis for parameter a.
As shown in Figure 9, the algorithm achieves optimal convergence performance and stability when a = 0.6. The mean number of iterations is the lowest (Mean = 585), with a 95% confidence interval of [509, 662]. Compared with the other parameter settings, the upper bound of the confidence interval for a = 0.6 is significantly lower than those for a = 0.54, 0.58, and 0.64. This indicates that, at the 95% confidence level, a = 0.6 enables the algorithm to reach the optimal solution with fewer iterations while providing better stability.
Figure 9.
Confidence intervals for different values of parameter a.
4.3.2. Weight Determination
In the comprehensive cost function, economic cost and carbon emissions represent two aspects of system operation: economic performance and environmental sustainability, respectively. Therefore, the Pareto frontier analysis method is adopted. The daily operating economic cost and daily carbon emissions are considered as two independent optimization objectives, and the STPSO algorithm is employed to obtain the Pareto solutions. By analyzing the distribution characteristics of the Pareto frontier curve, the optimal combination of weights is determined.
Based on the typical daily data during the air-conditioning season, the optimization results are shown in Figure 10. The Technique for Order Preference by Similarity to an Ideal Solution (TOPSIS) method is applied to evaluate all feasible solutions on the Pareto frontier. The optimal weight combination is obtained as follows: the weight of economic cost is = 0.6, and the weight of carbon emissions is = 0.4. Under this weighting scheme, the daily operating economic cost is approximately 65.33 Yuan, and the daily carbon emissions are approximately 282.37 kg CO2.
Figure 10.
Pareto front distribution between economic cost and carbon emissions.
4.4. Optimized Scheduling Results
During energy optimization scheduling, it is necessary to consider not only the power supply equipment but also the prevailing electricity price, so as to determine whether electricity should be purchased from the grid or supplied by photovoltaic (PV) generation and the battery storage system. The optimal energy supply strategy is selected based on the overall cost. In this study, two application scenarios, namely the air-conditioning season and the non-air-conditioning season, are considered. Energy optimization scheduling is performed under different weather conditions for both scenarios, and the comparison results are presented in Figure 11 and Figure 12.
Figure 11.
Comparison of energy optimization dispatch results for different weather conditions during the air-conditioning season. (a) STPSO sunny day optimal scheduling. (b) PSO sunny day optimal scheduling. (c) STPSO cloudy day optimal scheduling. (d) PSO cloudy day optimal scheduling. (e) STPSO rainy day optimal scheduling. (f) PSO rainy day optimal scheduling.
Figure 12.
Comparison of energy optimization dispatch results for different weather conditions during the non-air-conditioning season. (a) STPSO sunny day optimal scheduling. (b) PSO sunny day optimal scheduling. (c) STPSO cloudy day optimal scheduling. (d) PSO cloudy day optimal scheduling. (e) STPSO rainy day optimal scheduling. (f) PSO rainy day optimal scheduling.
On sunny days during the air-conditioning season, PV generation starts at 7:00, with a relatively high output around noon. While meeting the load demand, the excess PV electricity is mainly used to charge the battery, with any remaining surplus electricity being sold to the grid. The electricity stored in the battery during the midday period is primarily used to meet the electricity demand during the evening peak period. However, due to the high temperature on sunny days, extensive use of air-conditioning at night results in substantially higher electricity consumption in the dormitory area than under other weather conditions. Consequently, the battery discharge during the evening peak period is insufficient to meet the load demand, requiring a large amount of electricity to be purchased from the grid. On cloudy days, although PV generation decreases compared with sunny days, electricity demand also decreases accordingly. Therefore, only a small amount of electricity needs to be purchased from the grid to satisfy the energy demand. During the non-air-conditioning season, the variation trends in electricity consumption under different weather conditions are generally similar, with the main differences being attributable to variations in PV generation.
The comprehensive satisfaction degree of the scheduling solution is a key indicator for evaluating the effectiveness of the optimal scheduling system. Representative simulation results of the comprehensive satisfaction degree for the scheduling solutions during the air-conditioning season are presented.
Regarding the economic performance of the scheduling strategy, the results are shown in Figure 13. The operating cost is the highest on sunny days, while it is the lowest on cloudy days, reaching Yuan. This indicates that the revenue obtained from selling surplus photovoltaic power to the grid exceeds the expenditures associated with battery operation and electricity purchased from the grid. A comparison of different optimal energy management methods shows that, compared with the traditional method, the proposed method achieves the highest daily operating cost reduction under cloudy conditions, with a maximum cost saving of 102.2%. Under rainy conditions, the daily operating cost reduction is relatively lower but still reaches 54.1%. For the PSO-based scheduling method, compared with the traditional method, the daily operating cost can be reduced by 86.6% on cloudy days and 37.3% on rainy days.
Figure 13.
Operating costs of different methods under different weather conditions.
Regarding carbon emission reduction, as shown in Figure 14, the daily carbon emissions obtained using the traditional method exhibit three obvious peaks. After applying the proposed algorithm, the carbon emission peaks are shifted and mainly concentrated during the evening peak period. During the air-conditioning season, maximum carbon emission reduction is achieved on sunny days. Compared with the traditional method, the proposed method can reduce carbon dioxide emissions by 134.29 kg per day. Under rainy conditions, carbon emission reduction is the lowest, with only approximately 10 kg of carbon dioxide emissions being reduced.
Figure 14.
CO2 emissions of different methods under different weather conditions.
Based on the following assumptions, the annual operating cost and total carbon emissions are estimated: (1) The period from 1 May to 30 September is strictly defined as the air-conditioning season, while the remaining period is defined as the non-air-conditioning season, with temperature transition effects during the seasonal boundary periods neglected; (2) the selected typical days representing “sunny,” “cloudy,” and “rainy” weather are assumed to represent the load and PV output patterns of all days with the corresponding weather type throughout the respective season, i.e., the daily operating conditions are assumed to be highly consistent under the same weather type within a given season; (3) based on actual weather statistics for Xi’an in 2021, there were 44 sunny days, 67 cloudy days, and 41 rainy days during the air-conditioning season and 77 sunny days, 108 cloudy days, and 28 rainy days during the non-air-conditioning season. Accordingly, the estimated results are as follows: The total annual operating cost obtained by the STPSO-based scheduling strategy is reduced by 132,600 Yuan compared with PSO and by 1.1096 million Yuan compared with the traditional energy supply method. Meanwhile, the proposed method reduces carbon emissions by approximately 13,000 kg annually. These results demonstrate that the improved particle swarm optimization algorithm can effectively reduce campus electricity costs while responding to the national requirements for energy conservation and emission reduction, thereby maximizing the overall comprehensive benefits.
4.5. Comparative Analysis of Intelligent Optimization Methods
To further verify the stability and effectiveness of different algorithms in solving the real-time scheduling problem of integrated energy systems, comparisons are conducted with several state-of-the-art methods, including MEDDPG, MA, MOPSO, and PSO [30,31]. Taking the air-conditioning season as an example, ten representative days are randomly selected for testing, and each case is independently solved ten times. To ensure a fair and reproducible comparison, all benchmark algorithms were executed under exactly the same software and hardware platform conditions.
The relative percentage increase (RPI) is adopted to evaluate the economic performance of the system. The comparison results are presented in Figure 15. As shown in the figure, the proposed algorithm achieves the lowest RPI among all the compared algorithms, demonstrating superior optimization performance and relatively stable optimization results. Table 6 further presents a comparison of the operating costs obtained by the different optimization methods. It can be observed that, while satisfying the operational constraints of the integrated energy system, the proposed algorithm achieves competitive economic performance compared with the other optimization methods. From a cross-study comparison with the existing literature, scheduling based on the MEDDPG algorithm achieved a 22.8% reduction in overall scheduling costs [30]; While an optimal scheduling model integrating wind and photovoltaic energy utilization with dynamic electricity pricing reported an operating cost reduction of up to 12.53% [32]. In comparison, the proposed method in this study achieves a maximum operating cost saving of approximately 45% under rainy-day conditions.
Figure 15.
Performance comparison of different algorithms.
Table 6.
Comparison of cost results of different optimization methods.
4.6. Comparison of Computational Complexity
Computational complexity is also a key evaluation criterion for determining model performance. Therefore, this study further compares the computational complexity of several optimization models. The complexity of each model is evaluated based on the execution time and memory utilization, and all experiments are conducted under the same computational environment. Figure 16 presents the comparison results of the execution time and memory utilization among the five models. It can be observed that, compared with MEDDPG, MOPSO, MA, and PSO, the proposed STPSO model achieves the shortest execution time, requiring only 46.5 s. Meanwhile, its memory utilization is only 2.3% higher than that of the MOPSO model. Therefore, the proposed model demonstrates advantages in terms of computational complexity and can provide timely data support for real-time optimization and energy-saving control. In contrast, MOPSO is more suitable for offline multi-scenario analysis due to its relatively higher computational burden.
Figure 16.
Computational complexity comparison of different algorithms.
5. Conclusions
To effectively reduce energy consumption in university dormitory areas and alleviate carbon emission pressures, this study proposes a STPSO algorithm to address the issue that the conventional Particle Swarm Optimization (PSO) algorithm is prone to falling into local optima. By dynamically adjusting the learning factors, the proposed algorithm enables more flexible particle movement step sizes, thereby enhancing population diversity and achieving an effective balance between global exploration and local exploitation capabilities. Through comparative experiments and validation, the proposed method demonstrates the following advantages:
(1) Compared with popular deep learning and optimization algorithms, including MEDDPG, MA, MOPSO, and PSO, the proposed STPSO algorithm achieves the lowest relative percentage increase, indicating superior optimization capability in the energy optimal scheduling of dormitory areas. Under uncertain scenarios, the STPSO algorithm achieves the shortest optimization scheduling runtime, requiring only 46.5 s. Its memory consumption is only 2.3% higher than that of the MOPSO model, which has the lowest memory usage. These results verify the efficient real-time scheduling capability of STPSO, making it more suitable for online optimization and energy-saving control by providing timely data support.
(2) The proposed method can effectively utilize photovoltaic power generation resources and incorporate time-of-use electricity pricing into the charging and discharging scheduling of energy storage systems, enabling more efficient energy management under different weather conditions during the air-conditioning season. Compared with the conventional PSO algorithm, the proposed method achieves the most significant reduction in daily operating costs under rainy conditions, with savings of up to 45%. Under sunny conditions, it can reduce carbon dioxide emissions by 119.82 kg.
The results demonstrate that the proposed STPSO algorithm significantly improves the solution efficiency and optimization performance in energy optimal scheduling. Compared with conventional optimization methods, the proposed algorithm exhibits superior search capability and stability under complex constraints, providing theoretical foundations and technical support for the intelligent management of university integrated energy systems. The proposed method not only optimizes the operational strategies of energy devices but also provides dynamic decision-making support for campus energy management. By coordinating photovoltaic power generation, energy storage systems, and grid electricity purchasing and selling behaviors, the proposed approach enhances the self-regulation capability of campus energy systems, improves renewable energy utilization, and reduces dependence on conventional energy supplies. Therefore, it provides an effective technical pathway for universities to achieve refined energy management, smart campus development, and low-carbon development goals.
However, this study mainly conducts analysis based on simplified mathematical models of energy devices and only considers carbon emissions generated during electricity purchasing from the grid. Moreover, this work takes a single university dormitory complex as the research object, and the optimization analysis is carried out with a limited number of representative days covering several typical weather conditions including sunny, cloudy and rainy days. Furthermore, although the STPSO model demonstrates high computational efficiency in the optimal operation of integrated energy systems in university dormitory areas, the computational cost may increase with the diversification of building types and the increasing complexity of energy system structures and operational constraints. Future research will further investigate the applicability and scalability of the proposed method in integrated energy systems of different building types. In addition, by incorporating life cycle assessment and multi-scenario energy management strategies, more reliable technical support can be provided for the refined management and low-carbon operation of integrated energy systems in campus buildings.
Author Contributions
Methodology, F.D.; data curation, Q.W.; writing—original draft preparation, F.D. and S.C.; writing—review and editing, W.Z.; project administration, Z.Z.; supervision, J.Y. All authors have read and agreed to the published version of the manuscript.
Funding
This research was supported by the Research Start-up Funding Program for High-Level Talent at Shaanxi Polytechnic University (No. 203000568) and the National Key Research and Development Program of the 14th Five-Year Plan of China (No. 2024YFC3809205).
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare no conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| ESS | Energy Storage System |
| PV | Photovoltaic |
| PSO | Particle Swarm Optimization |
| STPSO | Sine-Triggered Particle Swarm Optimization |
| SOC | State of Charge |
| DR | Demand Response |
| EM | Energy Management |
| EV | Electric Vehicle |
| TRNSYS | Transient System Simulation Tool |
| MEDDPG | Multi-Objective Deep Deterministic Policy Gradient |
| MOPSO | Multi-Objective Particle Swarm Optimization |
| MA | Memetic Algorithm |
| RPI | Relative Percentage Increase |
| ANOVA | Analysis of Variance |
| TOPSIS | Technique for Order Preference by Similarity to an Ideal Solution |
| CO2 | Carbon Dioxide |
References
- National Energy Administration. China’s Installed Household Photovoltaic Capacity Has Exceeded 100 Million Kilowatts. 2023. Available online: https://www.nea.gov.cn/2023-11/14/c_1310750360.htm (accessed on 14 November 2023).
- Yan, R.; Wang, J.; Wang, J.; Tian, L.; Tang, S.; Wang, Y.; Zhang, Y. Flexibility improvement and stochastic multi-scenario hybrid optimization for an integrated energy system with high-proportion renewable energy. Energy 2023, 263, 125779. [Google Scholar] [CrossRef] [Scilit]
- Impram, S.; Varbak Nese, S.; Oral, B. Challenges of renewable energy penetration on power system flexibility: A survey. Energy Strategy Rev. 2020, 31, 100539. [Google Scholar] [CrossRef] [Scilit]
- Jeong, B.-C.; Shin, D.-H.; Im, J.-B.; Park, J.-Y.; Kim, Y.-J. Implementation of optimal two-stage scheduling of energy storage system based on big-data-driven forecasting—An actual case study in a campus microgrid. Energies 2019, 12, 1124. [Google Scholar] [CrossRef] [Scilit]
- Orehounig, K.; Evins, R.; Dorer, V. Integration of decentralized energy systems in neighbourhoods using the energy hub approach. Appl. Energy 2015, 154, 277–289. [Google Scholar] [CrossRef] [Scilit]
- Xu, H.; Meng, Z.; Wang, Y. Economic dispatching of microgrid considering renewable energy uncertainty and demand side response. Energy Rep. 2020, 6, 196–204. [Google Scholar] [CrossRef] [Scilit]
- De, M.; Mandal, K.K. Energy management strategy and renewable energy integration within multi-microgrid framework utilizing multi-objective modified personal best particle swarm optimization. Sustain. Energy Technol. Assess. 2022, 53, 102410. [Google Scholar] [CrossRef] [Scilit]
- Evins, R.; Orehounig, K.; Dorer, V.; Carmeliet, J. New formulations of the ‘energy hub’ model to address operational constraints. Energy 2014, 73, 387–398. [Google Scholar] [CrossRef] [Scilit]
- Abeg, A.I.; Islam, M.R.; Hossain, M.A.; Ishraque, M.F.; Islam, M.R.; Hossain, M. Capacity and operation optimization of hybrid microgrid for economic zone using a novel meta-heuristic algorithm. J. Energy Storage 2024, 94, 112314. [Google Scholar] [CrossRef] [Scilit]
- Gomez-Gonzalez, M.; Hernandez, J.C.; Vera, D.; Jurado, F.J. Optimal sizing and power schedule in PV household-prosumers for improving PV self-consumption and providing frequency containment reserve. Energy 2020, 191, 116554. [Google Scholar] [CrossRef] [Scilit]
- Santos, S.F.; Fitiwi, D.Z.; Shafie-Khah, M.; Bizuayehu, A.W.; Cabrita, C.M.; Catalao, J.P. New multistage and stochastic mathematical model for maximizing RES hosting capacity—Part I: Problem formulation. IEEE Trans. Sustain. Energy 2016, 8, 304–319. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Deng, N.; Lee, X.; Yan, S.; Chen, C. Optimal configuration of photovoltaic microgrid with improved ant colony dynamic programming. J. Energy Storage 2024, 83, 110714. [Google Scholar] [CrossRef] [Scilit]
- Wang, K.; Xie, Y.; Zhang, W.; Cai, H.; Liang, F.; Li, Y. Research on optimal dispatch of distributed energy considering new energy consumption. Energy Rep. 2023, 10, 1888–1898. [Google Scholar] [CrossRef] [Scilit]
- Ignat, A.; Lazar, E.; Petreus, D. Energy management for an islanded microgrid based on particle swarm optimization. In Proceedings of the 2018 IEEE 24th International Symposium for Design and Technology in Electronic Packaging (SIITME), Iasi, Romania, 25–28 October 2018; pp. 213–216. [Google Scholar] [CrossRef] [Scilit]
- Yi, T.; Cheng, X.; Chen, Y.; Liu, J. Joint optimization of charging station and energy storage economic capacity based on the effect of alternative energy storage of electric vehicle. Energy 2020, 208, 118357. [Google Scholar] [CrossRef] [Scilit]
- Kusakana, K.J. Impact of different South African demand sectors on grid-connected PV systems’ optimal energy dispatch under time of use tariff. Sustain. Energy Technol. Assess. 2018, 27, 150–158. [Google Scholar] [CrossRef] [Scilit]
- Shang, C.; Srinivasan, D.; Reindl, T. An improved particle swarm optimisation algorithm applied to battery sizing for stand-alone hybrid power systems. Int. J. Electr. Power Energy Syst. 2016, 74, 104–117. [Google Scholar] [CrossRef] [Scilit]
- Bahramirad, S.; Reder, W.; Khodaei, A. Reliability-constrained optimal sizing of energy storage system in a microgrid. IEEE Trans. Smart Grid 2012, 3, 2056–2062. [Google Scholar] [CrossRef] [Scilit]
- Wang, W.; Li, C.; He, Y.; Bai, H.; Jia, K.; Kong, Z. Enhancement of household photovoltaic consumption potential in village microgrid considering electric vehicles scheduling and energy storage system configuration. Energy 2024, 311, 133330. [Google Scholar] [CrossRef] [Scilit]
- Alvarez, G.; Chagolla, M.A.; Xaman, J.P.; Jimenez, M.J.; Heras, M.R. A TRNSYS simulation and experimental comparison of the thermal behavior of a building located in desert climate. In ASME 2010 4th International Conference on Energy Sustainability; ASME: Phoenix, AZ, USA, 2010; pp. 349–356. [Google Scholar] [CrossRef] [Scilit]
- Shrivastava, R.L.; Kumar, V.; Untawale, S.P. Modeling and simulation of solar water heater: A TRNSYS perspective. Renew. Sustain. Energy Rev. 2017, 67, 126–143. [Google Scholar] [CrossRef] [Scilit]
- Li, C.; Li, C.; Song, L.; Zhang, N.; Lin, D. Multi-objective optimal scheduling of microgrids based on improved particle swarm optimization algorithm. In Proceedings of the 2024 IEEE 7th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Chongqing, China, 20–22 September 2024; pp. 1081–1086. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Y.; Wei, Y.; Zhang, S.; Guo, Y.; Sun, H. Multi-objective robust optimization of integrated energy system with hydrogen energy storage. Energies 2024, 17, 1132. [Google Scholar] [CrossRef] [Scilit]
- Qi, H.; Zhang, Y.; Liu, X.; Wang, Y.; Li, Z. Multi-objective optimization strategy for the distribution network with distributed photovoltaic and energy storage. Front. Energy Res. 2024, 12, 1418893. [Google Scholar] [CrossRef] [Scilit]
- GB/T 51366-2019; Code for Building Carbon Emission Calculation. Ministry of Housing and Urban-Rural Development of the People’s Republic of China: Beijing, China, 2019.
- Peng, C.; Li, F. A survey on recent advances in event-triggered communication and control. Inf. Sci. 2018, 457–458, 113–125. [Google Scholar] [CrossRef] [Scilit]
- Cheng, H.; Zhang, X.; Yang, P.; Ding, B.; Sun, Z. Scheduling optimization of a regionally integrated energy system based on an improved multi-objective particle swarm algorithm. Energy Rep. 2025, 14, 3888–3904. [Google Scholar] [CrossRef] [Scilit]
- Zhou, Y.; Luo, D.; Wen, A.; Chen, L.; Lin, M. Simplified particle swarm optimization algorithm with improved learning factor and search method. In Proceedings of the 2021 International Conference on Computer Information Science and Artificial Intelligence (CISAI), Kunming, China, 17–19 September 2021; pp. 405–408. [Google Scholar] [CrossRef] [Scilit]
- Chen, K.; Zhou, F.; Yin, L.; Wang, S.; Wang, Y.; Wan, F. A hybrid particle swarm optimizer with sine cosine acceleration coefficients. Inf. Sci. 2018, 422, 218–241. [Google Scholar] [CrossRef] [Scilit]
- Wang, Z.; Hua, Q.; Nieti, S.; Sun, L. Deep reinforcement learning based real-time scheduling optimization of a hybrid cooling-heat-power-hydrogen energy system. Int. J. Hydrogen Energy 2025, 176, 151321. [Google Scholar] [CrossRef] [Scilit]
- Wang, L.; Liu, Y.; Pang, X.; Wang, X.; Wang, H. Flexibility retrofit and optimal scheduling of combined heat and power systems based on an improved memetic algorithm. Acta Energiae Solaris Sin. 2025, 46, 410–419. (In Chinese) [Google Scholar]
- Yang, H.; Kuang, H.; Li, Z.; Xu, Y.; Cao, S. Economic dispatch optimization of microgrid based on improved grey wolf optimizer. Acta Energiae Solaris Sin. 2026, 47, 365–374. (In Chinese) [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.















