A method for optimizing the operation of a park energy system
By distinguishing the supply side and the user side, establishing energy and carbon emission models, and using the optimization of the squid group algorithm, the problem of low utilization efficiency of electric vehicles and renewable energy in the existing technology is solved, and the low cost and low energy system of energy systems are achieved Carbon emission optimization.
Patent Information
- Application Number
- CN202111456079.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-01
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-12-01
AI Technical Summary
The existing energy system optimization methods fail to effectively consider the complex characteristics of electric vehicles and the uncertainty of renewable energy, resulting in low energy utilization efficiency and increased carbon emissions, making it difficult to adapt to the national energy-saving grand strategic goal.
The park energy system is divided into the supply side and the user side, and the energy flow and carbon emission flow model on the supply side, as well as the energy hub matrix model on the user side, consider the randomness of the electric vehicle, and the total cost through the integrated system is optimized at the lowest level. Objective: Optimization is performed using the cascadron group algorithm.
It improves the utilization rate of renewable energy, reduces carbon emissions, reduces operating costs, and the optimization model is robust.
Smart Images

Figure CN114519449B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of new energy optimization technology, and in particular to a park energy system operation optimization method. Background Art
[0002] With the promotion of electric vehicles and the substantial increase in installed capacity of renewable energy, the grid connection of electric vehicles and renewable energy poses huge challenges to the energy system.
[0003] There are many types of electric vehicles. Existing research is limited to treating electric vehicles as uncertain loads on the consumer side and does not consider the complex characteristics of actual electric vehicles.
[0004] Existing operational optimization methods fail to consider the integration of electric vehicles and lack in-depth research on the utilization of renewable energy sources such as wind and solar power. This is inconsistent with the country's strategic goal of energy conservation. Faced with enormous challenges, new energy optimization methods are urgently needed. Summary of the Invention
[0005] The purpose of the present invention is to overcome at least one of the deficiencies of the prior art and to provide a method for optimizing the operation of a park energy system. The method takes into account the complex characteristics of electric vehicles, classifies electric vehicles, and considers the connection of electric vehicles to the energy system and their participation in grid dispatching. When participating in dispatching, electric vehicles are considered as consumer terminals, energy storage devices, and production terminals. At the same time, the method fully considers the uncertainty of wind and solar renewable energy output, and optimizes the park energy system with the lowest total cost of the integrated system's operating cost, carbon emission cost, abandoned photovoltaic cost, and user comfort cost as the optimization goal. Simulation results show that the operation optimization model proposed in this article is robust and can improve the utilization of renewable energy and reduce carbon emissions.
[0006] The present invention adopts the following technical solutions:
[0007] A method for optimizing the operation of a park energy system comprises the following steps:
[0008] S1. Divide the park energy system into the supply side and the user side. The supply side includes gas boilers, CHP units, photovoltaic units, and wind turbines, and the user side includes energy storage equipment, electric heat pumps, absorption refrigeration units, air conditioning equipment, and electric vehicles.
[0009] S2. On the supply side, considering the output uncertainty of photovoltaic units and wind turbines, a hub energy flow model and a carbon emission flow model on the supply side are established; on the user side, considering the randomness of electric vehicle access, an energy hub matrix model on the user side is established;
[0010] S3. Based on the hub energy flow model and carbon emission flow model of the supply side obtained in step S2, and the energy hub matrix model of the user side, calculate the total cost of the supply side. The total cost includes operating cost, carbon emission cost, and wind and solar curtailment cost. The objective function of the park energy system operation optimization is to minimize the total cost.
[0011] S4. Solve the objective function in step S3 to obtain an optimal solution, and optimize the operation of the park energy system according to the optimal solution.
[0012] For any of the possible implementations described above, a further implementation is provided, in which step S2 is specifically:
[0013] The energy hub model on the supply side described in S2.1 is as follows:
[0014]
[0015] Where, P e 、P h are the power and heat of the supply-side output node respectively; η T 、 η GB They are transformer efficiency, CHP unit power generation efficiency, CHP unit heating efficiency and gas boiler efficiency; They are respectively the gas distribution coefficient of CHP unit and gas distribution coefficient of gas boiler unit, E e 、E g 、E h are the electricity, gas and heat energy purchased by the park energy system from the upper network, P wt 、P pv They are the actual usage values of wind power and photovoltaic power respectively;
[0016] S2.2 The energy hub matrix model on the user side is as follows:
[0017]
[0018] Where: L e 、L h are the power and heat of the user-side input node respectively; D e 、D h 、D c They are user-side electrical load, heating load and cooling load respectively; are the energy distribution coefficients of transformer, electric heat pump, air conditioner, heat exchanger and absorption chiller respectively; η EHP ,η AC ,η HE ,η AFThey are electric heat pump efficiency, air conditioning efficiency, heat exchange efficiency, and absorption chiller efficiency.
[0019] Any of the possible implementations described above further provides an implementation in which, in step S2.1,
[0020] The wind power and photovoltaic output forecast values are derived based on the historical output data of wind turbines and photovoltaic units;
[0021] The wind power and photovoltaic power output forecast errors follow a normal distribution with a mean of 0 and the following standard deviation:
[0022]
[0023] Where: σ wt , σ pv are the standard deviation of wind power output prediction error and the standard deviation of photovoltaic output prediction error respectively; wt ,λ pv are the standard deviation coefficients of wind power output forecast error and photovoltaic output forecast error respectively; They are wind power output forecast value and photovoltaic output forecast value respectively;
[0024] The space for renewable energy to be connected to the grid is limited, so the actual use value of wind power is P wt and the actual use value of photovoltaic P pv Fluctuates within a range smaller than the predicted value plus the prediction error;
[0025]
[0026] Where: δ wt , δ pv They are wind power prediction value error and photovoltaic prediction value error respectively.
[0027] According to any of the possible implementations described above, a further implementation is provided, wherein in step S2.2, the user-side load is obtained through historical data; the user-side load includes electrical load, heating load, and cooling load;
[0028] The user-side load error follows a normal distribution with a mean of 0 and the following standard deviation:
[0029]
[0030] Where: σ e , σ h , σ c are the standard deviation of the electric load error, the standard deviation of the heating load error, and the standard deviation of the cooling load error; λ ed ,λ hd ,λ cdare the standard deviation coefficients of the electric load error, the heating load error, and the cooling load error, respectively;
[0031] According to the demand characteristics of electric vehicles, electric vehicles are divided into rigid EVs and flexible EVs, among which flexible EVs are further divided into fast-charging flexible EVs and slow-charging flexible EVs. A one-dimensional matrix is used to describe the electric vehicle model:
[0032] Ω=[LGS n S e T s T c ];
[0033] Where: L represents the electric vehicle load type, and the numbers 1, 2, and 3 represent the rigid EV load, slow charging flexible EV charging and discharging load, and fast charging flexible EV charging and discharging load respectively; G represents the electric vehicle charging and discharging flag, which is 1 in charging mode, -1 in discharging mode, and 0 at other times; S n and S e They represent the charge amount when the EV is stopped and the user's expected charge amount when it is off the grid; T s and T c They represent the time when electric vehicles enter the grid and the time when electric vehicles leave the grid respectively;
[0034] Rigid EVs do not participate in grid dispatching; flexible EVs participate in grid dispatching;
[0035] Establishing a flexible EV charging and discharging model:
[0036] The internal charge of a flexible EV satisfies the following expression:
[0037] SOC t =SOC t-1 +P c -P d ;
[0038] Where: P c Charging power for flexible EV; P d Flexible EV discharge power; SOC t is the charge of the flexible EV at time t, SOC t-1 is the charge of the flexible EV at time t-1, where time t-1 represents the previous measurement time before time t.
[0039] Any of the possible implementations described above further provides an implementation in which, in step S3,
[0040] S3.1 The calculation method for the carbon emission cost on the supply side of the park energy system is:
[0041] S3.1.1 Use the baseline method to determine the free carbon emission quota on the supply side of the park energy system:
[0042]
[0043] Where: CE′ is the free carbon emission quota of the park energy system; β CHPE Carbon emission quota obtained for each unit of power supply of CHP unit, β CHPH , β GB are the carbon emission quotas obtained per unit heat supply of CHP units and gas boiler units respectively; β EGrid Carbon emission quota obtained by purchasing a unit of electricity from the upper power grid;
[0044] S3.1.2 When the carbon emissions of the park's energy system exceed the free carbon emission quota, carbon emission rights shall be purchased from the carbon trading market. The higher the carbon emission range, the higher the corresponding carbon trading price;
[0045] S3.1.3 Calculate the carbon emission cost C on the supply side of the park energy system co2 : Carbon emission costs are calculated using a tiered carbon price;
[0046] The carbon emissions of the park's energy system are calculated using the following formula:
[0047] CE=β e E e +β g E g
[0048] Where: CE is the carbon emission of the park energy system, β e is the carbon emissions generated by the upper grid per unit of power generation, β g Carbon emissions generated per unit of natural gas consumed;
[0049] Carbon emission cost C on the supply side of the park energy system co2 for:
[0050]
[0051] c co2 is the carbon price per unit of carbon emissions;
[0052] S3.2 Operation cost of the supply side of the park energy system C b The calculation method is:
[0053]
[0054] S3.3 Cost of abandoned wind and solar power on the supply side of the park energy system C p The calculation method is:
[0055]
[0056] Where: Cb 、C p are operating costs and abandoned wind and solar costs respectively; c e 、c g 、c h are electricity price, gas price and heat price respectively; c p is the unit cost of abandoned wind and solar power; P wt 、P pv are the actual usage values of wind power and photovoltaic power respectively, They are wind power forecast values and photovoltaic forecast values respectively.
[0057] Any possible implementation as described above, further provides an implementation, in step S3, the total cost on the supply side also includes user comfort cost, and the user comfort cost is the cost generated when an offset occurs between the user's actual electric load, thermal load, cooling load and the energy provided by the park energy system; the offset refers to the difference between energy supply and load caused by the park energy system failing to meet the user's actual load demand.
[0058] In any of the possible implementations described above, a further implementation is provided, in which, in step S4, the objective function is solved using a salp swarm algorithm.
[0059] For any of the possible implementations described above, a further implementation is provided, in which a specific method for solving the objective function using the salp swarm algorithm is as follows:
[0060] S4.1 Assume that the search space is an N×D Euclidean space, where D is the dimension of the space and N is the number of populations; the nth population X n =[X n1 ,X n2 ,…,X nD ] T represents the output of each device on the supply side and user side in the nth scenario, including the CHP unit electrical output, CHP unit thermal output, GB unit output, electric heat pump output, air conditioning output, and absorption refrigeration unit output; F n represents the total cost of the nth population Xn; n=1,2,3,…,N; the upper bound of the search space is ub=[ub1,ub2,…,ub D ], lower bound lb=[lb1,lb2,…,lb D ]; ub1, ub2, ..., ub n are the upper limits of the output of each device on the supply side and the user side respectively; lb1, lb2, ..., lb n are the lower limits of the output of each device on the supply side and the user side respectively;
[0061] S4.2 Initialize the population; initialize a salp population of size N × D based on the upper and lower bounds of each dimension of the search space;
[0062] S4.3 Calculate the total cost Fn of each population Xn; Select food: Sort the populations Xn from smallest to largest according to the value of Fn, and set the population with the smallest total cost Fn at the top as the current food, denoted by X0 as the current food; Select leaders and followers: Excluding the current food X0, for the remaining N-1 populations in the population, follow the order of the salp groups, and consider the populations in the top half as leaders, and the remaining populations as followers;
[0063] S4.4: Leader Position Update
[0064] During the movement and foraging of the salp chain, the leader's position update is expressed as:
[0065]
[0066] Where: x 0d are the device output of the dth dimension of the nth group and the device output of the dth dimension of food; d and lb d are the upper and lower bounds of the device output in the corresponding d-th dimension; c2 and c3 are control parameters; c1 is the convergence factor in the optimization algorithm;
[0067] The expression of c1 is:
[0068]
[0069] Where: iter is the current number of iterations; maxiter is the maximum number of iterations;
[0070] S4.5 Follower Location Update
[0071] During the movement and foraging process of the salp chain, the followers move forward in a chain-like manner through the mutual influence between the preceding and following individuals; their displacement conforms to Newton's laws of motion, and the movement displacement of the followers is:
[0072]
[0073] Where: a is acceleration, the calculation formula is a=v final / iter;, and
[0074] After simplification, it is expressed as:
[0075]
[0076] Where: are the device outputs of the dth dimension of two followers that are closely connected to each other before the update; Contribute to the updated follower's device in the dth dimension;
[0077] S4.6 Calculate the total cost of each population after the update, and compare the total cost of each population after the update with the total cost of the current food. If the total cost of a population after the update is less than the total cost of the current food, the population with the smallest total cost is used as the new food;
[0078] S4.7 Repeat steps S4.4-S4.6 until a certain number of iterations is reached or the total cost reaches the termination threshold. After the termination condition is met, the current food is the optimal solution with the minimum total cost.
[0079] On the other hand, the present invention also provides an information data processing terminal for implementing the above-mentioned park energy system operation optimization method.
[0080] On the other hand, the present invention also provides a computer-readable storage medium comprising instructions, which, when executed on a computer, enables the computer to execute the above-mentioned park energy system operation optimization method.
[0081] The beneficial effects of the present invention are:
[0082] 1. The campus energy system of the present invention considers the uncertainty of user energy consumption behavior and the random access of electric vehicles on the user side, and the uncertainty of wind turbine and photovoltaic unit output on the supply side.
[0083] 2. The operation optimization strategy proposed in this invention combines the energy flow and carbon emission flow models, while taking into account carbon emissions, operating costs, wind and solar curtailment costs, and user comfort costs, with the lowest total cost as the optimization goal. The solution obtained ensures the full utilization of renewable energy and reduces carbon emissions.
[0084] 3. This paper adopts the Salp Swarm algorithm to solve the model and proposes comprehensive analysis solutions for multiple scenarios. The simulation results show that the operation optimization model proposed in this paper is robust. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 Shown is an algorithm flow chart of the ascidian swarm algorithm in the embodiment.
[0086] Figure 2 The figure shows the electricity price change diagram (within 24 hours a day) in the embodiment.
[0087] Figure 3 Shown is the electricity price change curve in the embodiment.
[0088] Figure 4 Shown is a wind and solar power prediction diagram in an embodiment.
[0089] Figure 5 Shown is the predicted value of the electric heating load in the embodiment.
[0090] Figure 6 The figure shows a schematic diagram of electric power balance in scenario 2 in the embodiment.
[0091] Figure 7 The figure shows a schematic diagram of thermal power balance in scenario 2 in the embodiment.
[0092] Figure 8 Shown is a structural diagram of the park's integrated energy system in an embodiment. DETAILED DESCRIPTION
[0093] The following will describe in detail specific embodiments of the present invention with reference to the accompanying drawings. It should be noted that the technical features or combinations of technical features described in the following embodiments should not be considered isolated, and they can be combined with each other to achieve better technical effects.
[0094] The embodiment of the present invention provides a method for optimizing the operation of a park energy system. The park energy system structure is as follows: Figure 8 As shown, the method includes:
[0095] S1. The park's energy system is divided into the supply side and the user side. The users are multi-energy users. To increase their responsiveness to energy demand, the user side is equipped with energy storage equipment, electric heat pumps, absorption refrigeration units, air conditioning equipment, and electric vehicles. The supply side is equipped with gas boilers, CHP units, photovoltaic units, and wind turbines, and can interact with the upper-level power grid.
[0096] S2. On the supply side, considering the output uncertainty of photovoltaic units and wind turbines, a hub energy flow model and a carbon emission flow model on the supply side are established; on the user side, considering the randomness of electric vehicle access, an energy hub matrix model on the user side is established;
[0097] S3. Based on the hub energy flow model and carbon emission flow model of the supply side obtained in step S2, and the energy hub matrix model of the user side, calculate the total cost of the supply side. The total cost includes operating cost, carbon emission cost, and abandoned wind and solar power costs. The objective function of the park energy system operation optimization is to minimize the total cost. The total cost may also include user comfort cost.
[0098] S4. Solve the objective function in step S3 to obtain an optimal solution, and optimize the operation of the park energy system according to the optimal solution.
[0099] In a specific embodiment, the specific steps of step S2 are:
[0100] S2.1 purchases electricity, heat, natural gas and other energy from upstream sources and manages energy conversion equipment to meet users' multi-energy loads. The hub energy flow model and carbon emission flow model on the supply side are as follows:
[0101]
[0102] Where, P e 、P h are the electrical power and thermal power of the supply-side output node respectively; η T 、 η GB They are transformer efficiency, CHP unit power generation efficiency, CHP unit heating efficiency and gas boiler efficiency; They are respectively the gas distribution coefficient of CHP unit and gas distribution coefficient of gas boiler unit, E e 、E g 、E h are the electricity, gas and heat energy purchased by the park energy system from the upper network, P wt 、P pv They are the actual usage values of wind power and photovoltaic power respectively;
[0103] S2.2 On the energy demand side, users purchase electricity and thermal energy resources from system operators and use various energy-consuming devices to meet their electricity, heat, and cooling energy needs. The user's energy hub matrix model can be established as follows:
[0104]
[0105] Where: L e 、L h are the power and heat of the user-side input node respectively; D e 、D h 、D c They are user-side electricity demand, heating demand, and cooling demand respectively; are the energy distribution coefficients of transformer, electric heat pump, air conditioner, heat exchanger and absorption chiller respectively; η EHP ,η AC ,η HE ,η AF They are electric heat pump efficiency, air conditioning efficiency, heat exchange efficiency, and absorption chiller efficiency.
[0106] In a specific embodiment, in step S2.1, considering the wind and solar power output prediction error and the load prediction error, the consumed wind and solar power output ≤ the predicted value + the predicted error, and the load = the load predicted value + the predicted error;
[0107] The wind and solar power output prediction value can be obtained from the historical output data of wind turbines and photovoltaic units. In a specific embodiment, the wind and solar power output prediction value is shown in FIG. Figure 4 .
[0108] The wind and solar output forecast errors follow a normal distribution with a mean of 0 and the following standard deviation:
[0109]
[0110] Where: σ wt , σ pv are the standard deviation of wind power output prediction error and the standard deviation of photovoltaic output prediction error respectively; wt ,λ pv are the standard deviation coefficients of wind power output forecast error and photovoltaic output forecast error respectively; They are wind power output forecast value and photovoltaic output forecast value respectively;
[0111] The space for renewable energy to be connected to the grid is limited, so the actual use value of wind power is P wt and the actual use value of photovoltaic P pv Fluctuates within a range smaller than the predicted value plus the prediction error;
[0112]
[0113] Where: δ wt , δ pv They are wind power prediction value error and photovoltaic prediction value error respectively.
[0114] In step S2.2, the user side load is obtained through historical data; the user side load includes electric load, heat load and cooling load; for example, in a specific embodiment, the electric, heat and cooling loads are obtained by historical load forecasting, and the detailed loads are shown in FIG. Figure 5 .
[0115] The user-side load error follows a normal distribution with a mean of 0 and the following standard deviation:
[0116]
[0117] Where: σ e , σ h , σ c are the standard deviation of the electric load error, the standard deviation of the heating load error, and the standard deviation of the cooling load error; λ ed ,λ hd ,λ cd They are the standard deviation coefficient of electric load error, the standard deviation coefficient of heating load error and the standard deviation coefficient of cooling load error respectively.
[0118] Due to the volatility and randomness of wind power output, large-scale wind power access poses a huge challenge to the optimized scheduling of the power generation side of the power system. Based on the differences in electric vehicle charging needs, this article divides electric vehicles (EVs) into three categories: the first category is rigid EVs, which have a relatively long average daily driving time and high requirements for charging speed and charging time, and cannot participate in grid interaction; the second category is fast-charging flexible EVs, which have a fast scheduling response and can reduce the regional grid load in a short period of time, but the fast-charging mode will produce a huge current impact on the power battery pack, and the battery will heat up severely during charging, which will reduce the cycle life of the power battery pack. At the same time, the operator's dedicated charging piles must be used, and the charging fee will increase the service fee of the charging pile operator on top of the industrial electricity price; the third category is slow-charging flexible EVs, which can transfer a large number of EV charging time periods. Since the slow charging power is relatively small, it can reduce the heating phenomenon of the battery during charging, thereby extending the battery life; the EV slow charging period generally occurs during low-peak electricity consumption periods, using community charging piles or private charging piles, and the charging price is the residential electricity price;
[0119] This application describes the demand characteristics of electric vehicles in detail, and divides electric vehicles into rigid EVs, fast-charging flexible EVs, and slow-charging flexible EVs. A one-dimensional matrix is used to describe the EV model:
[0120] Ω=[LGS n S e T s T c ]
[0121] Where: L represents the electric vehicle load type, with the numbers 1, 2, and 3 representing rigid EV load, slow-charging flexible EV charge-discharge load, and fast-charging flexible EV charge-discharge load, respectively; G represents the electric vehicle charge-discharge flag, which is 1 when in charge mode, -1 when in discharge mode, and 0 at all other times; Sn and Se represent the state of charge when the EV is parked and the user's expected charge when off-grid, respectively; T s and T c They represent the time when electric vehicles join the grid and the time when users leave the grid respectively;
[0122] Rigid vehicles are vehicles that do not participate in grid dispatch. By analyzing US private car driving data and fitting the data, a probability density curve for the predicted daily mileage of electric vehicles was obtained. The probability density curve for the mileage of electric vehicles approximates a normal distribution. The time when the driving ends is used as the charging time to obtain the probability density curve for the time of access to the grid. The time when the electric vehicle ends driving is approximate to the WeiBULL distribution. Monte Carlo sampling is used to obtain a rigid EV model. For the flexible EV charging and discharging model, the time when the flexible EV ends driving is used as the time when it is connected to the grid. The internal charge state of the electric vehicle satisfies the following expression:
[0123] SOC t =SOCt-1 +P c -P d
[0124] Where: P c Charging power for flexible EV; P d Flexible EV discharge power; SOC t is the charge of EV at time t, SOC t-1 is the charge of EV at time t-1, where time t-1 represents the previous measurement time before time t.
[0125] In a specific embodiment, in step S3,
[0126] The calculation method for the carbon emission cost of the supply side of the park energy system is:
[0127] S3.1.1 Use the baseline method to determine the free carbon emission quota on the supply side of the park energy system:
[0128]
[0129] Where: CE′ is the free carbon emission quota of the park energy system; β CHPE Carbon emission quota obtained per unit power supply of CHP unit, β CHPH , β GB Carbon emission allowances obtained for heat supply of CHP units and gas boiler units; EGrid The carbon emission quota is obtained by purchasing a unit of electricity from the superior power grid.
[0130] S3.1.2 When the carbon emissions of the park's energy system exceed the free carbon emission quota, the park will purchase carbon emission rights from the carbon trading market. The higher the carbon emission range, the higher the corresponding carbon trading price. When the park's carbon emissions are lower than the free carbon emission quota, the park will provide a certain subsidy (or no subsidy, just free payment);
[0131] S3.1.3 Carbon emission cost C on the supply side of the park energy system co2 The carbon emission cost is calculated using a tiered carbon price. This paper assumes that the electricity purchased from the upper power grid comes from thermal power. The park's carbon emissions mainly come from natural gas consumption and carbon emissions on the power generation side caused by the amount of electricity purchased. The park's carbon emissions are calculated using the following formula:
[0132] CE=β e E e +β g E g
[0133] Where: CE is the carbon emission of the park, β e is the carbon emissions generated by the upper grid per unit of power generation, β gThe carbon emissions generated per unit of natural gas consumed.
[0134] Carbon emission cost C co2 for:
[0135]
[0136] The carbon price per unit of carbon emissions. When a user participates in a response, there is a shift between the actual electricity, heating, and cooling energy load and the energy supplied by the system. To compensate the user, the user comfort cost is defined based on the user energy offset.
[0137] The mathematical description of operating costs and wind and solar power curtailment costs is shown in the following formula.
[0138]
[0139]
[0140] Where: C b 、C p They are operating costs, abandoned wind and solar costs, E e 、E g 、E h They are electricity purchase, gas purchase, and heat purchase, c e 、c g 、c h are electricity price, gas price and heat price respectively; c p is the unit cost of abandoned wind and solar power; P wt 、P pv is the actual usage value of wind power and photovoltaic power, are the predicted values of wind power and photovoltaic power respectively.
[0141] In a specific embodiment, in step S4, the objective function is solved using a salp swarm algorithm.
[0142] S4.1 Assume that the search space is an N×D Euclidean space, where D is the dimension of the space and N is the number of populations; the nth population X n =[X n1 ,X n2 ,…,X nD ] T represents the output of each device on the supply side and user side in the nth scenario, including the CHP unit electrical output, CHP unit thermal output, GB unit output, electric heat pump output, air conditioning output, and absorption refrigeration unit output; F n represents the total cost of the nth population Xn; n=1,2,3,…,N; the upper bound of the search space is ub=[ub1,ub2,…,ub D ], lower bound lb=[lb1,lb2,…,lb D]; ub1, ub2, ..., ub n are the upper limits of the output of each device on the supply side and the user side respectively; lb1, lb2, ..., lb n are the lower limits of the output of each device on the supply side and the user side respectively;
[0143] S4.2 Initialize the population; initialize a salp population of size N × D based on the upper and lower bounds of each dimension of the search space;
[0144] S4.3 Calculate the total cost Fn (population fitness) of each population Xn; Select food: Sort the populations Xn from smallest to largest according to the value of Fn, and set the population with the smallest total cost Fn at the top as the current food, denoted by X0; Select leader and follower: excluding the current food X0, the remaining N-1 populations in the population are ranked according to the order of the salp groups, and the populations in the top half are considered leaders, and the remaining populations are considered followers;
[0145] S4.4: Leader Position Update
[0146] During the movement and foraging of the salp chain, the leader's position update is expressed as:
[0147]
[0148] Where: x 0d are the device output of the dth dimension of the nth group and the device output of the dth dimension of food; d and lb d are the upper and lower bounds of the device output in the corresponding d-th dimension; c2 and c3 are control parameters; c1 is the convergence factor in the optimization algorithm;
[0149] The expression of c1 is:
[0150]
[0151] Where: iter is the current number of iterations; maxiter is the maximum number of iterations;
[0152] S4.5 Follower Location Update
[0153] During the movement and foraging process of the salp chain, the followers move forward in a chain-like manner through the mutual influence between the preceding and following individuals; their displacement conforms to Newton's laws of motion, and the movement displacement of the followers is:
[0154]
[0155] Where: a is acceleration, the calculation formula is a=v final / iter;, and
[0156] After simplification, it is expressed as:
[0157]
[0158] Where: are the device outputs of the dth dimension of two followers that are closely connected to each other before the update; Contribute to the updated follower's device in the dth dimension;
[0159] S4.6 Calculate the total cost of each population after the update, and compare the total cost of each population after the update with the total cost of the current food. If the total cost of a population after the update is less than the total cost of the current food, the population with the smallest total cost is used as the new food;
[0160] S4.7 Repeat steps S4.4-S4.6 until a certain number of iterations is reached or the total cost reaches the termination threshold. After the termination condition is met, the current food is the optimal solution with the minimum total cost.
[0161] In order to verify the park energy system operation optimization method proposed in this application, two scenarios are proposed below for comparative verification.
[0162] Initial data see Figure 2-Figure 5 .
[0163] This example uses Monte Carlo sampling to select 100 electric vehicles and sets two scenarios:
[0164] Scenario 1 is that electric vehicles do not participate in the scheduling plan. That is, when the owner's battery level at the end of the trip is less than the expected battery level for the second trip, the electric vehicle is charged, and the charging start time is the time when the owner ends the trip, and the end time is the time when the charging reaches the expected battery level or the start time of the owner's second trip.
[0165] Scenario 2 involves electric vehicles participating in the scheduling plan. This means that the owner's electric vehicle connects to the grid at the end of a trip, and the time it leaves the grid coincides with the start of the next trip. Regardless of whether the vehicle's remaining charge is greater than or less than the desired charge, the electric vehicle participates in the scheduling, acting as virtual energy storage. The constraint is to ensure that each vehicle's charge when leaving the grid is greater than or equal to the owner's desired charge.
[0166] Figure 3 This is the electricity price change in scenario 2. After electric vehicles participate in scheduling, the original electricity price is optimized.
[0167] Figure 6This is the power balance curve for scenario 2. It shows that EVs are mostly charged between 11 PM and 5 AM. During this time, electricity prices are relatively low, user electricity consumption is low, and renewable energy output is high. EV charging can effectively absorb renewable energy. In the afternoon, user load is higher, and EV discharge meets user demand. EVs act as energy storage, reducing operating costs.
[0168] Figure 7 This is the heat load power balance curve for scenario 2. The heat load is primarily supplied by the upstream heating network, gas boilers, and CHP units. The CHP unit's output is affected by the electrical load. When the electrical load is low, the CHP unit's power supply and heating capacity decrease, and the heat load primarily relies on upstream supply. When the electrical load is high, the CHP unit's output and heating capacity increase, and the heat load primarily relies on the CHP unit.
[0169] The running result data is shown in Table 1.
[0170] Table 1 Operating costs of various scenarios
[0171] Scenario Energy purchase cost Cost of curtailing wind and solar power Comfort costs Carbon emission costs Total cost Scenario 1 4511 35 0 507 5053 Scenario 2 4110 0 0 441 4551
[0172] It can be seen from Table 1 that the total cost of Scenario 2 is significantly lower than that of Scenario 1, which shows that the participation of electric vehicles in scheduling will increase the capacity of the system's virtual energy storage system and improve the system's absorption of renewable energy, thereby reducing energy purchase costs and carbon emissions.
[0173] Although several embodiments of the present invention have been described herein, those skilled in the art will appreciate that modifications may be made to the embodiments herein without departing from the spirit of the present invention. The above embodiments are merely exemplary and should not be used as limitations on the scope of the present invention.
Claims
1. A method for optimizing the operation of a park energy system. It is characterized in that The method comprises the following steps: S1. The park energy system is divided into the supply side and the user side. The supply side includes gas boilers, CHP units, photovoltaic units and wind turbines, and the user side includes energy storage equipment, electric heat pumps, absorption refrigeration units, air conditioning equipment and electric vehicles. S2. On the supply side, considering the output uncertainty of photovoltaic units and wind turbines, a hub energy flow model and a carbon emission flow model on the supply side are established; on the user side, considering the randomness of electric vehicle access, an energy hub matrix model on the user side is established; S3. According to the hub energy flow model and carbon emission flow model of the supply side obtained in step S2, and the energy hub matrix model of the user side, the total cost of the supply side is calculated. The total cost includes the operating cost, carbon emission cost and abandoned wind and solar cost. The objective function of the park energy system operation optimization is to minimize the total cost. S4, solving the objective function in step S3 to obtain an optimal solution, and optimizing the operation of the park energy system according to the optimal solution; Step S2 is specifically as follows: The energy hub model on the supply side described in S2.1 is as follows: Where P e , P h are the power and heat of the supply-side output node respectively; η T , η GB They are transformer efficiency, CHP unit power generation efficiency, CHP unit heating efficiency and gas boiler efficiency; are the gas distribution coefficients of CHP units and gas boiler units, respectively. e 、E g 、E h are the electricity, gas and heat purchased by the park energy system from the superior network, P wt , P pv They are the actual usage values of wind power and photovoltaic power respectively; S2.2 The energy hub matrix model on the user side is as follows: Where: L e , L h are the power and heat of the user-side input node respectively; D e , D h , D c They are the user-side electrical load, heat load and cooling load respectively; They are transformer energy allocation coefficient, electric heat pump energy allocation coefficient, air conditioner energy allocation coefficient, heat exchanger energy allocation coefficient, and absorption chiller energy allocation coefficient; η EHP , η AC , η HE , η AF They are electric heat pump efficiency, air conditioning efficiency, heat exchange efficiency, and absorption chiller efficiency; In step S2.1, the actual wind power usage value P wt The actual use value of Heguang pv Fluctuates within a range smaller than the forecast value plus the forecast error: Where: are wind power output prediction value and photovoltaic power output prediction value respectively; δ wt , δ pv They are wind power prediction value error and photovoltaic prediction value error respectively; The wind power output forecast value and photovoltaic output forecast value are obtained based on the historical output data of wind turbines and photovoltaic units respectively; The wind power output prediction value error and photovoltaic output prediction value error follow a normal distribution with a mean of 0 and the following standard deviation: Where: wt , σ pv are the standard deviation of wind power output prediction error and the standard deviation of photovoltaic output prediction error respectively; wt , pv They are the standard deviation coefficients of wind power output prediction value errors and photovoltaic output prediction value errors respectively; In step S2.2, the user side load is obtained through historical data; the user side load includes electric load, heat load and cooling load; The user-side load error follows a normal distribution with a mean of 0 and the following standard deviation: Where: e , σ h , σ c are the standard deviation of the electric load error, the standard deviation of the heat load error, and the standard deviation of the cooling load error; ed , hd , cd They are the standard deviation coefficient of the electric load error, the standard deviation coefficient of the heat load error and the standard deviation coefficient of the cooling load error; According to the demand characteristics of electric vehicles, electric vehicles are divided into rigid EVs and flexible EVs, among which flexible EVs are further divided into fast-charging flexible EVs and slow-charging flexible EVs. A one-dimensional matrix is used to describe the electric vehicle model: Ω=[L G S n S e T s T c ]; Where: L represents the type of electric vehicle load, with the numbers 1, 2, and 3 representing rigid EV load, slow-charging flexible EV charge-discharge load, and fast-charging flexible EV charge-discharge load, respectively; G represents the electric vehicle charge-discharge flag, which is 1 in charging mode, -1 in discharge mode, and 0 at other times; S n and S e They represent the charge amount when the EV is stopped and the user's expected charge amount when off-grid; T s and T c They represent the time when the electric vehicle enters the grid and the time when the electric vehicle leaves the grid respectively; Rigid EVs do not participate in grid dispatching; flexible EVs participate in grid dispatching; Establishing a flexible EV charging and discharging model: The internal charge of a flexible EV satisfies the following expression: SOCIETY t =SOC t-1 +P c -P d ; Where: P c Charging power for flexible EV; P d Flexible EV discharge power; SOC t is the charge of the flexible EV at time t, SOC t-1 is the charge of the flexible EV at time t-1, where time t-1 represents the previous measurement time before time t; In step S3, S3.1 The calculation method for the carbon emission cost on the supply side of the park energy system is: S3.1.1 The baseline method is used to determine the free carbon emission quota on the supply side of the park energy system: Where: CE′ is the free carbon emission quota of the park energy system; β CHPE Carbon emission quota obtained for each power supply of CHP unit, β CHPH , β GB The carbon emission quotas obtained for the unit heat supply of CHP units and gas boiler units respectively; β EGrid Carbon emission quota obtained by purchasing a unit of electricity from the upper power grid; S3.1.2 When the carbon emissions of the park's energy system exceed the free carbon emission quota, the carbon emission rights shall be purchased from the carbon trading market. The larger the carbon emission range, the higher the corresponding carbon trading price; S3.1.3 Calculate the carbon emission cost C of the supply side of the park energy system co2 :The carbon emission cost is calculated using a tiered carbon price; The carbon emissions of the park's energy system are calculated as follows: EC=β e It is e +β g It is g ; Where: CE is the carbon emission of the park energy system, β e is the carbon emissions generated by the upper grid per unit of power generation, β g The amount of carbon emissions produced for each unit of natural gas consumed; Carbon emission cost C on the supply side of the park energy system co2 for: c co2 is the carbon price per unit of carbon emissions; S3.2 Operation cost of the supply side of the park energy system C b The calculation method is: S3.3 Cost of abandoned wind and solar power on the supply side of the park energy system C p The calculation method is: Where: C b , C p are operating costs and abandoned wind and solar costs respectively; c e 、c g 、c h are electricity price, gas price and heat price respectively; c p P is the unit cost of abandoned wind and solar power; wt , P pv are the actual usage values of wind power and photovoltaic power respectively. They are wind power prediction value and photovoltaic prediction value respectively; In step S4, the objective function is solved using the salp swarm algorithm. The specific method is: S4.1 Assume that the search space is an N×D Euclidean space, where D is the dimension of the space and N is the number of populations; the nth population X n =[X n1 ,X n2 ,…,X nD ] T represents the output of each device on the supply side and user side in the nth scenario, including the CHP unit electrical output, CHP unit thermal output, GB unit output, electric heat pump output, air conditioning output, and absorption refrigeration unit output; F n represents the total cost of the nth population Xn; n = 1, 2, 3, ..., N; the upper bound of the search space is ub = [ub 1 ,ub 2 ,…,ub D ], the lower bound lb=[lb 1 ,lb 2 ,…,lb D ];ub 1 ,ub 2 ,……,ub n are the upper limits of the output of each device on the supply side and the user side respectively; lb 1 lb 2 ,……,lb n are the lower limits of the output of each device on the supply side and the user side respectively; S4.2 Initialize the population; initialize a population of salps of size N×D according to the upper and lower bounds of each dimension of the search space; S4.3 Calculate the total cost Fn of each population Xn; Select food: Sort the population Xn from small to large according to the value of Fn, and set the first population with the smallest total cost Fn as the current food, record Xn as 0 For the current food; select the leader and follower: except for the current food X 0 In addition, for the remaining N-1 populations in the population, the populations in the first half are regarded as leaders and the rest as followers according to the order of the salp population; S4.4: Leader position update During the movement and foraging of the salp chain, the leader's position update is expressed as: Where: x 0d are the equipment output of the dth dimension of the nth group and the equipment output of the dth dimension of the food; ub d and lb d are the upper and lower bounds of the device output of the corresponding d-th dimension; c 2 、c 3 is the control parameter; c 1 is the convergence factor in the optimization algorithm; c 1 The expression is: Where: iter is the current number of iterations; maxiter is the maximum number of iterations; S4.5 Follower Location Update During the movement and foraging of the salp chain, the followers move forward in a chain-like manner through the mutual influence between the individuals in front and behind; their displacement conforms to Newton's laws of motion, and the movement displacement of the followers is: Where: a is acceleration, and the calculation formula is a=v final / iter; and After simplification, it is expressed as: Where: They are the device outputs of the dth dimension of two followers that are closely connected to each other before the update; Contribute to the updated follower's device in the dth dimension; S4.6 Calculate the total cost of each population after the update, and compare the total cost of each population after the update with the total cost of the current food. If the total cost of a population after the update is less than the total cost of the current food, the population with the smallest total cost is used as the new current food; S4.7 Repeat steps S4.4 to S4.6 until a certain number of iterations is reached or the total cost reaches the termination threshold. After the termination condition is met, the current food is the optimal solution with the minimum total cost.
2. The park energy system operation optimization method according to claim 1, It is characterized in that In step S3, the total cost on the supply side also includes the user comfort cost, which is the cost generated when an offset occurs between the user's actual electrical load, thermal load, cooling load and the energy provided by the park energy system; the offset refers to the difference between the energy supply and load caused by the park energy system failing to meet the user's actual load demand.
3. An information data processing terminal for implementing the park energy system operation optimization method as described in any one of claims 1-2.
4. A computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute the park energy system operation optimization method as described in any one of claims 1-2.
