Virtual power plant optimization scheduling method and system based on dynamic carbon emission factor and principal-agent game

The virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory solves the problems of insufficient carbon emission accounting accuracy and simplified user response models in virtual power plants. It realizes closed-loop collaborative optimization of carbon signals and power dispatch, and improves the refinement of dispatch schemes and the accuracy of response.

CN123143994APending Publication Date: 2026-11-20NORTH CHINA ELECTRIC POWER UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611326030.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-29
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing virtual power plant optimization dispatch methods suffer from insufficient carbon emission accounting accuracy, simplified user response models, and disconnect between carbon signals and power dispatch. These methods fail to reflect differences in power supply structure and heterogeneity in user behavior, resulting in imprecise dispatch and inaccurate responses.

Method used

An optimization scheduling method based on dynamic carbon emission factors and master-slave game theory is adopted. The carbon emission factors of nodes are calculated through the carbon emission flow conservation relationship, a multi-dimensional comprehensive utility model of users is constructed, a closed-loop collaborative optimization mechanism of carbon signal and power dispatch is established, and Stackelberg game theory is used to connect virtual power plant pricing and user load regulation.

Benefits of technology

It enables refined accounting of carbon emissions from the distribution network, accurately characterizes the bounded rationality of users, improves the timeliness and robustness of dispatching schemes, forms a coordinated optimization of electricity and carbon emissions, and enhances the accuracy of user response and the flexibility of grid operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123143994A_ABST
    Figure CN123143994A_ABST
Patent Text Reader

Abstract

The application discloses a virtual power plant optimal scheduling method and system based on dynamic carbon emission factors and principal-agent game, and belongs to the technical field of power system optimal scheduling. The method comprises the following steps: establishing a power distribution network power flow model and a user response feasible region; determining a dynamic carbon emission factor according to a carbon emission flow conservation relationship and generating a composite price signal based on the active power flow direction of a branch and the carbon emission parameters of a power source; solving an optimal load regulation amount with the maximization of comprehensive utility as a target, mapping the comprehensive utility into a demand response probability through a Logistic function, and calculating an expected response amount; constructing a principal-agent game with a virtual power plant as a leader and a user as a follower, optimizing a price strategy, a demand response incentive and a scheduling plan; updating the expected response amount to the power flow model, re-determining the dynamic carbon emission factor, and generating an optimal scheduling scheme after iteration to convergence; and executing and issuing control instructions according to a preset execution cycle. The application realizes fine calculation of carbon emission and electric-carbon collaborative optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system optimization scheduling technology, specifically to a virtual power plant optimization scheduling method and system based on dynamic carbon emission factors and master-slave game theory. Background Technology

[0002] Virtual power plants aggregate distributed power sources, energy storage, and flexible loads through information and communication technologies, forming a unified dispatchable entity to participate in the electricity market and demand response. When performing optimized dispatch, virtual power plants need to determine the power output, energy storage charging and discharging power, flexible load regulation, and exchange power with the external power grid for each time period, while satisfying the power balance of the distribution network, node voltage, line capacity, and the operating boundaries of each aggregated resource. Existing virtual power plant optimized dispatch methods have the following shortcomings: First, the accuracy of carbon emission accounting is insufficient. Existing methods usually use regional average carbon emission factors or pre-set static carbon emission factors, which are difficult to reflect the spatiotemporal heterogeneity of carbon emissions at different nodes due to differences in power structure and power flow distribution, and cannot generate price signals corresponding to users' actual electricity consumption carbon emissions.

[0003] Second, user response models are overly simplistic. Existing demand response models often assume users are perfectly rational, deterministic responders, or directly determine user participation or non-participation using fixed thresholds. In reality, users must weigh economic benefits, energy comfort, and environmental preferences; their behavior exhibits clear characteristics of bounded rationality and randomness, which fixed-threshold models struggle to accurately describe.

[0004] Third, carbon signaling and power dispatch are disconnected. Existing methods mostly solve in a unidirectional manner, following the sequence of carbon emission calculation, user response prediction, and virtual power plant dispatch, treating the carbon emission factor as an external input unaffected by demand-side behavior. However, user load adjustments can alter node injected power and branch power flow, thereby affecting node carbon emission intensity. Unidirectional solutions cannot form a closed loop between carbon signaling and power dispatch. Summary of the Invention

[0005] The purpose of this invention is to provide a virtual power plant optimization scheduling method and system based on dynamic carbon emission factors and master-slave game theory, so as to solve the above-mentioned problems in the existing technology, realize the refined accounting of carbon emissions at each node of the distribution network, establish a probabilistic response model that reflects the bounded rationality behavior of users, and construct a closed-loop collaborative optimization mechanism between carbon signals and power dispatch.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows: The virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game includes the following steps: S1. Establish a power flow model of the distribution network and the feasible domain of user response, and obtain power source carbon emission parameters, market purchase and sale electricity prices, basic time-of-use electricity prices, carbon market prices, aggregated resource parameters, aggregated resource operation boundaries and network security constraints; the power flow model of the distribution network outputs the active power flow direction of branches and the injected power of nodes in each scheduling period; S2. Based on the active power flow direction of the branch, the injected power of the node, and the carbon emission parameters of the power source, determine the dynamic carbon emission factor of each node at each time period according to the carbon emission flow conservation relationship, and multiply the carbon market price with the dynamic carbon emission factor and add the basic time-of-use electricity price to generate a composite price signal. S3. Based on the composite price signal, the optimal load adjustment amount is solved within the user's feasible domain with the goal of maximizing comprehensive utility. The comprehensive utility is composed of economic benefits, comfort losses, and environmental benefits weighted together. The comprehensive utility is mapped to a continuously changing probability of participating in demand response through a continuous mapping relationship. The product of the probability of participating in demand response and the optimal load adjustment amount is used as the expected response amount to form a user demand response model. S4. Construct a master-slave game with virtual power plants as leaders and flexible load users as followers. The leader optimizes the electricity price strategy, demand response incentives and aggregated resource scheduling plan with the aggregated resource parameters, aggregated resource operation boundaries and network security constraints as limits. The followers output the expected response amount based on the user demand response model. S5. Update the expected response to the power flow model of the distribution network to correct the node injection power and branch active power flow, and redetermine the dynamic carbon emission factor of each node; repeat S3 to S5 until the dynamic carbon emission factor and the expected response meet the preset convergence conditions, and generate an optimized scheduling scheme that includes distributed power output, energy storage charging and discharging power, flexible load adjustment instructions and external power grid exchange power plan. S6. According to the preset execution cycle, execute S2 to S5 to generate an optimized scheduling scheme, and send the control instructions in the optimized scheduling scheme to the aggregated resource control terminal to adjust the actual operating power of the distribution network; use the active power flow direction of the branch and the node injection power corresponding to the adjusted actual operating power of the distribution network as the initial conditions for the next cycle.

[0007] Furthermore, in S1: The aggregated resource parameters include the predicted output and adjustment range of distributed power sources, the rated power of energy storage, the upper and lower limits of the state of charge, and the power exchange boundary of the external power grid. The operational boundary of the aggregated resources includes mutual exclusion constraints for energy storage charging and discharging and upper and lower limits for distributed power output. The network security constraints include upper and lower limits of node voltage and apparent power capacity constraints of branches.

[0008] Furthermore, the carbon emission flow conservation relationship described in S2 is as follows: Based on the active power flow direction of the branch, the adjacent nodes that input active power to node i will form the upstream node set In(i,t); The active power of branch (j,i) reaching the receiver at node i is: ; The dynamic carbon emission factor e(i,t) of node i in time period t is calculated by the following formula: ; ; In the formula, The power supply set for access node i; Carbon emission intensity per unit of electricity; The power source provides active power output; To prevent positive numbers with a denominator of zero; P(j,i,t) is the active power of branch (j,i) in time period t; e(j,t) is the network loss of branch (j,i) in time period t; e(j,t) is the dynamic carbon emission factor of upstream node j in time period t; D(i,t) is the sum of the total active power input and power output of node i at the receiving end in time period t.

[0009] Furthermore, the comprehensive utility described in S3 is a weighted average of economic benefits, comfort losses, and environmental benefits, specifically as follows: The economic benefits are determined based on the composite price signal, the optimal load adjustment amount, and the demand response incentive, and include the change in electricity costs before and after adjustment and response compensation. The comfort loss is determined based on the optimal load adjustment and the comfort parameters within the feasible domain of the user response; The environmental benefits are determined based on the dynamic carbon emission factor and the change in node injection power before and after adjustment, reflecting the net reduction in carbon emissions from node electricity consumption. Within the feasible domain of the user response, the extreme value boundaries of the three indicators—economic benefits, comfort loss, and environmental benefits—are extracted and normalized. Based on the preset economic weights, preset comfort weights, and preset environmental preference weights corresponding to the three indicators, a weighted sum is calculated to form the comprehensive utility, where the sum of the three weights is 1 and all are non-negative.

[0010] Furthermore, the continuous mapping relationship mentioned in S3 is specifically a Logistic function, which takes the comprehensive utility as input, and after processing by a preset utility benchmark and a preset sensitivity parameter, maps to obtain the continuously changing participation demand response probability, wherein the participation demand response probability monotonically increases with the increase of the comprehensive utility.

[0011] Furthermore, the master-slave game described in S4 is a Stackelberg game, where: The leader aims to maximize overall net benefit, which includes the results calculated below: Electricity sales revenue is calculated based on the composite price signal and the load within the feasible domain of the user response. The market transaction revenue calculated based on the aforementioned market purchase and sale electricity prices; The electricity purchase cost is calculated based on the market electricity purchase and sale price and the planned external power grid exchange capacity. The incentive cost is calculated based on the demand response incentive and the expected response amount. Carbon emission cost calculated based on the dynamic carbon emission factor, the node load power within the user response feasible domain, and the carbon market price; The resource operating cost is calculated based on the aggregated resource scheduling plan and the aggregated resource operating boundary. The security penalty cost is calculated based on the amount of overstepping the limits corresponding to the aforementioned network security constraints. The follower is solved independently with the goal of maximizing overall utility; the solution is achieved using an alternating optimal response algorithm, or by transforming the follower's optimal conditions into a KKT system and then constructing a single-layer model with equilibrium constraints through relaxation processing.

[0012] Furthermore, the preset convergence condition in S5 is as follows: during the iterative process from S3 to S5, after each re-determination of the dynamic carbon emission factor of each node, a preset damping coefficient is used to smoothly update the recalculated value and the previous iteration value; when the maximum deviation of the dynamic carbon emission factor of each node in two adjacent iterations is not greater than the preset first convergence threshold and the maximum deviation of the expected response of each user is not greater than the preset second convergence threshold, convergence is determined; if convergence is not achieved after reaching the preset maximum number of iterations, the damping coefficient is reduced and the iteration continues, or the most recent feasible solution that satisfies the network security constraint is output and marked as not fully converged.

[0013] Furthermore, S6 also includes: when the absolute value of the deviation between the actual operating power of the adjusted distribution network and the corresponding power in the current cycle's optimized scheduling scheme exceeds a preset deviation threshold, S2 to S5 are triggered to generate an optimized scheduling scheme.

[0014] The virtual power plant optimization scheduling system based on dynamic carbon emission factors and master-slave game includes a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game.

[0015] Compared with the prior art, the present invention has the following beneficial effects: I. This invention determines the dynamic carbon emission factor of each node at each time period through the carbon emission flow conservation relationship, and recalculates the dynamic carbon emission factor after the user responds to changes in the power flow. This enables carbon metering to reflect the combined effects of power supply structure, network topology, branch power flow and load behavior, overcoming the defect that the static average carbon emission factor cannot reflect the spatiotemporal differences of carbon emissions, and realizing refined accounting of carbon emissions in the distribution network.

[0016] Second, a multidimensional comprehensive utility is constructed by considering economic gains, comfort losses, and environmental benefits. The comprehensive utility is then mapped to the probability of user participation in demand response through a continuous Logistic function. This avoids sudden changes in response caused by fixed thresholds, accurately characterizes users' bounded rational behavior and its uncertainty, and enables the calculation results of user adjustability to reflect user heterogeneity and randomness.

[0017] Third, this invention connects virtual power plant pricing and user load regulation through master-slave game theory, and updates the user's expected response to the power flow and carbon flow calculation of the distribution network, forming a closed-loop iteration in which carbon flow determines the price signal, price guides the probabilistic response, response reshapes the power flow, and power flow updates the carbon flow. This improves the problem of carbon signal being disconnected from power dispatch in traditional unidirectional solution methods and realizes coordinated optimization of electricity and carbon.

[0018] Fourth, the optimized scheduling scheme is executed on a rolling basis according to the preset execution cycle, and recalculation is triggered in advance based on the actual measured execution deviation. This enables the scheduling scheme to track changes in the actual operating status, improves the timeliness and robustness of the scheduling scheme, and realizes the organic integration of the algorithm with the actual data acquisition, control and monitoring process of the virtual power plant. Attached Figure Description

[0019] Figure 1 This is a schematic diagram of the method flow of the present invention; Figure 2 This is a schematic diagram of the master-slave game architecture in an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the rolling execution of the optimized scheduling scheme in an embodiment of the present invention. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.

[0021] This embodiment provides a virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory. This method is implemented through a hardware system including a processor and memory. In a specific embodiment, the distribution network node set is denoted as N, the branch set as L, the scheduling period set as T, the power source set as G, the energy storage set as B, and the flexible load user set as I. The scheduling period length is denoted as Δt. Figure 1 The following is a flowchart illustrating the method, and the specific implementation process of the method is as follows.

[0022] S1. Establish a power flow model of the distribution network and the feasible domain of user response, and obtain power source carbon emission parameters, market purchase and sale electricity prices, basic time-of-use electricity prices, carbon market prices, aggregated resource parameters, aggregated resource operation boundaries and network security constraints; the power flow model of the distribution network outputs the active power flow direction of branches and the injected power of nodes in each scheduling period.

[0023] Distribution network power flow models describe the electrical relationships between voltage, current, active power, and reactive power at various nodes in a distribution network. The user response feasible region represents the range of load power that flexible load users can adjust while ensuring basic electricity demand. Obtain the following data: Carbon emission parameters for power sources, including the carbon emission intensity per unit of electricity from each distributed power source. ; Market electricity price data, including time-of-use base price Market-based electricity purchase and sale prices, ancillary service prices, and reference time-of-use electricity price data; Carbon market prices ; Aggregate resource parameters, including the predicted output and regulation range of distributed power sources, the rated power and upper and lower limits of energy storage and the power exchange boundary of the external power grid; Aggregate resource operation boundaries, including mutual exclusion constraints for energy storage charging and discharging and upper and lower limits for distributed power output; Network security constraints include node voltage upper and lower limits and branch apparent power capacity constraints.

[0024] The power flow model of the distribution network outputs the direction of active power flow in branches and the injected power at nodes for each scheduling period.

[0025] For user i's baseline load during time period t and load regulation Active load after response Represented as: In the formula, >0 indicates that the user has reduced their power consumption. <0 indicates an increase in power consumption by the user. For loads that can be transferred across time periods, energy conservation is satisfied within the complete dispatch cycle: In the formula, Let i be the set of time periods during which load transfer is permitted for user i. For interruptible loads, the above energy conservation constraint can be replaced with a cumulative power reduction limit and a continuous interruption duration constraint.

[0026] For energy storage b, its state of charge Updated according to charging and discharging power: In the formula, and These are charging power and discharging power, respectively. and These are charging efficiency and discharging efficiency, respectively. This is the rated capacity. SOC(b,t) and Each device must meet its upper and lower limits, and mutual exclusion variables or mutual exclusion constraints must be used to prevent simultaneous charging and discharging during the same period.

[0027] For the branch from node i to node j The active and reactive power satisfy the following: In the formula, Let j be the set of downstream nodes of node j; and Let r(i,j) and x(i,j) be the net active and net reactive loads injected into the node, respectively; r(i,j) and x(i,j) be the branch resistance and reactance, respectively; and l(i,j,t) be the square of the branch current magnitude. The node voltage satisfies: Node voltages and branch apparent power meet preset upper and lower limits, respectively. For ring distribution networks, an AC power flow model or a linearized distribution network power flow model can be used to replace the above branch power flow relationships, while ensuring that the branch active power flow direction and receiving active power required for subsequent carbon emission flow calculations are available.

[0028] This step is executed once during the system initialization phase. In subsequent rolling cycles, the input parameters of the power flow model are updated with the latest measurement data, and the model reconstruction step is not repeated.

[0029] S2. Based on the active power flow direction of the branch, the injected power of the node, and the carbon emission parameters of the power source, determine the dynamic carbon emission factor of each node for each time period according to the carbon emission flow conservation relationship, and multiply the carbon market price with the dynamic carbon emission factor and add the basic time-of-use electricity price to generate a composite price signal.

[0030] The dynamic carbon emission factor for each time period is calculated based on carbon emission flow tracking. Both the equivalent power source of the upstream grid and distributed power sources connected to the distribution network are considered carbon emission sources. The carbon emission intensity per unit of electricity of the equivalent power source of the upstream grid can be determined according to the power generation structure of the corresponding region in each time period: the direct carbon emission intensity per unit of electricity for wind power and photovoltaic power can be set to zero, or the verified full life-cycle carbon emission intensity can be used; for other power sources, the carbon emission intensity per unit of electricity corresponding to their fuel type and operating status is used. If the real-time generator unit combination and marginal emission intensity of the upstream grid cannot be directly obtained, the average carbon emission factor published for that region is used as the starting iteration value.

[0031] Based on the current active power flow direction of the branch, the adjacent nodes that input active power to node i form the upstream node set In(i,t). The active power of branch (j,i) reaching the receiving end of node i is... Represented as: In the formula, This represents the active power loss of the branch. Based on the conservation of carbon emission flow at each node, the dynamic carbon emission factor e(i,t) of node i in time period t is expressed as: In the formula, The power supply set for access node i; Carbon emission intensity per unit of electricity; The power source provides active power output; To prevent positive numbers with a denominator of zero; P(j,i,t) is the active power of branch (j,i) in time period t; e(j,t) is the network loss of branch (j,i) in time period t; e(j,t) is the dynamic carbon emission factor of upstream node j in time period t; D(i,t) is the sum of the total active power input and power output of node i at the receiving end in time period t.

[0032] When a ring network or power flow direction reversal exists, a system of linear equations is constructed for all nodes, constrained by the carbon emission flow conservation relationships at each node. The carbon emission intensity of each power source is used as the source-end injection to solve for each node in a unified manner. Specifically, when the distribution network is a ring network or there are multiple reverse power flow paths, the carbon emission flow conservation relationships of each node are combined into a linear equation system for unified solution; when the branch power flow direction changes, In(i,t) is redefined so that the dynamic carbon emission factor is updated with the network operating status.

[0033] To obtain the overall carbon signal of the virtual power plant, the dynamic carbon emission factors of the nodes are weighted according to the load power of the nodes covered by the virtual power plant to obtain the comprehensive dynamic carbon emission factor for time period t. : In the formula, This represents the set of nodes covered by the virtual power plant. Fine-grained node control uses e(i,t), and the aggregation layer operation evaluation uses EF(t).

[0034] After obtaining the dynamic carbon emission factors for each node and time period, the carbon market price will be... Multiplying this by the dynamic carbon emission factor e(i,t) yields the carbon emission cost component of node i in time period t, which is then superimposed with the base time-of-use electricity price from the market electricity price data. Generate composite price signals : Among them, the basic time-of-use electricity price The initial value is based on time-of-use electricity price data published in the electricity market, which is used as a decision variable in the virtual power plant optimization model, and regulatory-permitted upper and lower price limits are set. This composite price signal simultaneously reflects the value of electricity as a commodity and the environmental cost of carbon emissions generated by electricity consumption.

[0035] S3. Based on the composite price signal, the optimal load adjustment amount is solved within the user's feasible domain with the goal of maximizing comprehensive utility. The comprehensive utility is composed of economic benefits, comfort losses, and environmental benefits weighted together. The comprehensive utility is mapped to a continuously changing probability of participating in demand response through a continuous mapping relationship. The product of the probability of participating in demand response and the optimal load adjustment amount is used as the expected response amount to form a user demand response model.

[0036] The environmental benefits are determined based on the dynamic carbon emission factor and the change in node injection power before and after adjustment, reflecting the net reduction in carbon emissions from node electricity consumption. Within the feasible domain of the user response, the extreme value boundaries of the three indicators—economic benefits, comfort loss, and environmental benefits—are extracted and normalized. Based on the preset economic weights, preset comfort weights, and preset environmental preference weights corresponding to the three indicators, a weighted sum is calculated to form the comprehensive utility, where the sum of the three weights is 1 and all are non-negative.

[0037] The overall utility is a weighted average of three components: economic benefits, comfort losses, and environmental benefits, specifically: The economic benefit S(i) is determined based on the composite price signal, the optimal load adjustment, and the demand response incentive, and includes the change in electricity costs before and after adjustment and the response compensation. In the formula, This represents the incentive price per unit load adjustment. For scenarios where incentives are only provided for load reduction, |x(i,t)| is replaced with max{x(i,t),0}.

[0038] The comfort loss C(i) is determined based on the optimal load adjustment and comfort parameters within the feasible region of user response. In this embodiment, a quadratic function containing a linear term of absolute value is used: In the formula, a(i,t) and b(i,t) are non-negative comfort parameters. For temperature-controlled loads, the comfort loss can also be calculated based on the deviation of the indoor temperature from the set temperature; for electric vehicles, the comfort loss can also be calculated based on the deviation of the state of charge at the departure time from the target state of charge.

[0039] The environmental benefit R(i) is determined based on the dynamic carbon emission factor and the change in node injection power before and after adjustment, reflecting the net reduction in carbon emissions from node electricity consumption: For load transfer across time periods, the above environmental benefit expression reflects both the net carbon emission changes resulting from reduced electricity consumption during high-carbon periods and increased electricity consumption during low-carbon periods.

[0040] Economic gains, comfort losses, and environmental benefits have different dimensions. For any indicator X(i), a Min-Max normalization method is used: In the formula, and It can be obtained through optimization or enumeration within the user's feasible domain; when there are enough historical valid samples, it can also be determined based on valid samples of similar users in the same scheduling scenario, and values ​​that exceed the upper and lower bounds can be truncated.

[0041] The normalized overall user utility U(i) is expressed as: In the formula, These represent the preset weights assigned by users to economic benefits, comfort losses, and environmental benefits, respectively. Different users are assigned different weights to describe user heterogeneity. In this embodiment, the preset weight is for economic benefits. Set the value to 0.5, and preset the comfort weight. Set the value to 0.3, and pre-determine the environmental preference weight. Take 0.2.

[0042] Furthermore, the logistic function is used to map the overall utility to the probability Pr(i) of user participation in the demand response: In the formula, k(i)>0 is the preset utility sensitivity parameter. The preset participation utility benchmark; in this embodiment, the preset utility benchmark Set the threshold to 0, and set the preset sensitivity parameter k(i) to 2. Pr(i) changes continuously with the overall utility to avoid abrupt changes at the critical point in the fixed threshold model.

[0043] The user obtains the optimal load adjustment within the feasible region. Then, the expected response quantity available for scheduling calculations by the virtual power plant. Represented as: Expected response volume This is the output of the user demand response model, representing the user's expected adjustment behavior under current price signals and incentive conditions. This constitutes the user demand response model.

[0044] S4. Construct a master-slave game with virtual power plants as leaders and flexible load users as followers. The leader optimizes the electricity pricing strategy, demand response incentives, and aggregated resource scheduling plan based on the aggregated resource parameters, aggregated resource operation boundaries, and network security constraints. The followers output the expected response amount based on the user demand response model.

[0045] The master-slave game is a Stackelberg game, where: The leader aims to maximize overall net revenue, which includes the following calculated results: electricity sales revenue calculated based on the composite price signal and the load within the feasible region of user response; market transaction revenue calculated based on the market electricity purchase and sale price and participation in electricity market transactions; electricity purchase cost calculated based on the market electricity purchase and sale price and the external grid exchange power plan; incentive cost calculated based on the demand response incentive and the expected response amount; carbon emission cost calculated based on the dynamic carbon emission factor, the node load power within the feasible region of user response, and the carbon market price; resource operation cost calculated based on the aggregated resource scheduling plan and the aggregated resource operation boundary; and security penalty cost calculated based on the over-limit amount corresponding to the network security constraints. The follower is solved independently with the goal of maximizing overall utility; the solution is achieved using an alternating optimal response algorithm, or by transforming the follower's optimal conditions into a KKT system and then constructing a single-layer model with equilibrium constraints through relaxation processing.

[0046] Reference Figure 2 A Stackelberg master-slave game model was established and solved. The upper-level leader is a virtual power plant, and its decision variables include at least the base time-of-use price. User incentive pricing The system includes distributed controllable power generation output, energy storage charging and discharging power, and power exchanged with the external power grid. The lower-level followers are multiple flexible load users, whose decision variables are the load adjustment amount x(i,t) for each time period.

[0047] Given the composite price, incentive price, and dynamic carbon emission factor, lower-level user i aims to maximize overall utility: User feasible domain It includes at least upper and lower limits of load power and adjustable time period constraints; for transferred loads, it also includes the aforementioned energy conservation constraints; for interruptible loads, it also includes constraints on maximum interruption power, cumulative interruption power, maximum continuous interruption duration, and number of daily interruptions; for electric vehicles and user-side energy storage, it also includes the aforementioned state of charge update relationship, upper and lower limits of charging and discharging power, and target state of charge constraints at the departure time.

[0048] The upper-level virtual power plant is optimized with the goal of maximizing overall net profit. Represented as: In the formula, Revenue generated from supplying power to aggregated users; The revenue obtained from participating in the electricity market, ancillary services, or demand response is determined based on the market clearing price and the winning bid volume, settled according to market rules. The cost of purchasing electricity from an external power grid; Incentive costs paid to users; Cost of carbon emissions; The operating costs of aggregated resources such as distributed power sources and energy storage; The penalties for violating cybersecurity regulations or failing to meet market targets. The specific calculation formulas for each cost-benefit item are as follows: In the formula, The purchase price of electricity from the external power grid. This refers to the power exchanged with the external power grid. If the carbon market settlement boundary only covers electricity purchased from the external power grid, the nodal load carbon emissions in the aforementioned carbon emission costs can be replaced with the product of the electricity purchased from the external power grid and its equivalent carbon emission intensity.

[0049] The upper-level objective is to maximize the overall net return under the given constraints: In the formula, and These represent the equality constraints and inequality constraints of the distribution network, including the aforementioned branch power flow relationship, node power balance, node voltage upper and lower limits, and branch capacity constraints. and These represent the equality and inequality constraints of aggregated resources, including distributed generation output boundaries, energy storage operation constraints, flexible load feasible region, external grid exchange power boundaries, basic time-of-use tariff upper and lower limits, incentive price upper and lower limits, and incentive budget constraints.

[0050] In one specific implementation, when the user comfort loss is a convex function and the user feasible region is a convex set, the lower-level problem is a concave utility maximization problem. Substituting the first-order optimal conditions, primal feasible conditions, dual feasible conditions, and complementary relaxation conditions of each lower-level problem into the upper-level problem transforms the two-level model into a single-level model with equilibrium constraints. For complementary constraints, penalty functions, relaxation variables, or the Big M method are used. The transformed model can be solved using the interior-point method, sequential quadratic programming, branch and bound method, or a combination thereof.

[0051] In another specific implementation, an alternating optimal response algorithm is used to solve the problem. The virtual power plant generates candidate base time-of-use tariffs, incentive prices, and aggregated resource plans based on the current dynamic carbon emission factors; each user solves the comprehensive utility maximization problem in parallel, and then calculates the participation probability and expected response amount through the Logistic function; the virtual power plant substitutes the expected response amount into the comprehensive net revenue maximization problem to update the upper-level decision; when the changes in the upper-level decision and the lower-level expected response amount are not greater than the game convergence threshold, the Stackelberg equilibrium is obtained.

[0052] S5. Update the expected response to the power flow model of the distribution network to correct the node injection power and branch active power flow, and redetermine the dynamic carbon emission factor of each node; repeat S3 to S5 until the dynamic carbon emission factor and the expected response meet the preset convergence conditions, and generate an optimized scheduling scheme that includes distributed power output, energy storage charging and discharging power, flexible load adjustment instructions and external power grid exchange power plan.

[0053] Write the user's expected response volume back to the corresponding node and update the node load: The distribution network power flow is recalculated based on the updated node loads, and the dynamic carbon emission factor is recalculated based on the aforementioned conservation relationship between receiver active power and node carbon emission flow. To reduce iterative oscillations caused by the interaction between user response and carbon emission factor, a damped update is applied to the dynamic carbon emission factor: In the formula, To utilize the dynamic carbon emission factor calculated using the updated tidal current, 0 < ≤1 represents the carbon factor damping coefficient. In this embodiment, the damping coefficient is preset. We set it to 0.6. The user's expected response can also be updated using the corresponding response damping coefficient.

[0054] Repeat steps S3 to S5 until the dynamic carbon emission factor and the expected response value meet the preset convergence conditions. Specifically, during the iterative process of S3 to S5, after each recalculation of the dynamic carbon emission factor of each node, a preset damping coefficient is used to smoothly update the recalculated value and the previous iteration value. Convergence is determined when the maximum deviation of the dynamic carbon emission factor of each node in two adjacent iterations is not greater than the preset first convergence threshold and the maximum deviation of the expected response value of each user is not greater than the preset second convergence threshold. If convergence is not achieved after reaching the preset maximum number of iterations, the damping coefficient is reduced and iteration continues, or the most recent feasible solution that meets the network security constraints is output and marked as not fully converged. Convergence is determined when two adjacent closed-loop iterations of the electric carbon emission factor meet the following conditions: In the formula, The convergence threshold for the dynamic carbon emission factor is set to 0.001 in this embodiment. ; The convergence threshold for the user's expected response is set to 0.01MW in this embodiment. If the above two convergence conditions are not met even after reaching the maximum number of iterations, the damping coefficient is reduced and iteration continues, or the most recent feasible solution that satisfies the network security constraints and has the highest overall net benefit is output and marked as not fully converged. In this embodiment, the maximum number of iterations is preset. Take 50.

[0055] The converged virtual power plant optimization scheduling scheme should include at least the dynamic carbon emission factor, composite price, incentive price, user participation probability and expected response amount, distributed controllable power output, energy storage charging and discharging power, exchange power with the external power grid, node voltage, branch power, operating cost and carbon emissions for each node and time period.

[0056] S6. According to the preset execution cycle, execute S2 to S5 to generate an optimized scheduling scheme, and send the control instructions in the optimized scheduling scheme to the aggregated resource control terminal to adjust the actual operating power of the distribution network; use the active power flow direction of the branch and the node injection power corresponding to the adjusted actual operating power of the distribution network as the initial conditions for the next cycle.

[0057] Reference Figure 3The optimized scheduling scheme is executed in a rolling time domain manner. At the beginning of each rolling cycle, the latest node load, distributed power output, energy storage state of charge, user online status, electricity market price, and carbon market price are obtained. Within the prediction time domain of length H, steps S2 to S5 are executed based on the updated model, and control instructions, composite price signals, and incentive information for the first execution period are issued only to the resource control terminal and user terminals. After the execution period ends, the actual output, actual load, and user confirmation information are received, and the latest measured status is used as the initial condition for the next rolling cycle.

[0058] According to the preset execution cycle, steps S2 to S5 are executed to generate the optimized scheduling scheme for the current cycle, and control commands from the optimized scheduling scheme are sent to the aggregated resource control terminal to adjust the actual operating power of the distribution network. The adjusted actual operating power of the distribution network is used as the new boundary condition to recalculate the power flow, obtaining the corresponding branch active power flow direction and node injection power, which are then used as the initial conditions for the next cycle. In this embodiment, the preset execution cycle is 15 minutes.

[0059] The actual execution value of resource r in time period t and planned value Execution deviation Represented as: When the absolute value of the execution deviation exceeds the preset deviation threshold of the corresponding resource, or when the node voltage, branch power, or external power grid switching power approaches the safety boundary, the operation monitoring and rolling correction module triggers an early recalculation; otherwise, it recalculates when the next preset rolling cycle arrives. In this embodiment, the preset deviation threshold is 5%. The actual response data is also used to update the user's utility sensitivity parameter, response availability, or feasible domain boundary, but does not change the aforementioned bounded rational probabilistic response structure obtained by mapping the comprehensive utility through the Logistic function to the participation probability and expected response quantity.

[0060] This embodiment also provides a virtual power plant optimization scheduling system based on dynamic carbon emission factors and master-slave game theory, including a processor and a memory. The memory stores a computer program, which, when executed by the processor, implements the virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory. Logically, this system can be divided into the following functional modules: The multi-source data access module is used to acquire distribution network topology, resource parameters, user response feasible domain and related data and maintain node mapping.

[0061] The optimized scheduling decision module includes a built-in power flow calculation unit, carbon factor calculation unit, probability response unit, game theory solution unit, and closed-loop iteration unit, which are used to execute S2 to S5.

[0062] The scheduling execution and interaction module is used to issue control commands to the aggregated resource control terminal and push composite price signals and demand response incentive information to the user terminal.

[0063] The operation monitoring and rolling correction module is used to trigger the regeneration of the optimized scheduling scheme when the absolute value of the deviation between the actual operating power of the adjusted distribution network and the corresponding power in the current cycle's optimized scheduling scheme exceeds a preset deviation threshold.

[0064] It should be noted that, provided the data dependencies are satisfied, the calculation of dynamic carbon emission factors for different nodes, the lower-level optimization for different users, and the power flow verification for different candidate scenarios can be performed in parallel. Dynamic carbon emission factors can also be obtained by other tracking methods that satisfy carbon flow conservation and can output the carbon intensity of nodes during specific time periods; master-slave game theory can be solved using mathematical programming, heuristic search, or a combination of both.

[0065] Embodiments of the present invention may be implemented in the form of a method, system, or computer program product. Therefore, the present invention may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0066] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each flow, each block, or combination of flows and / or blocks in the flowchart illustrations and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flow... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0067] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more blocks of a block diagram.

[0068] These computer program instructions can also be loaded onto a computer or other programmable data processing equipment, and by performing a series of operational steps on the computer or other programmable equipment to produce a computer-implemented process, thereby executing the instructions on the computer or other programmable equipment and providing a means for implementing the process. Figure 1 A process or multiple processes and / or a block diagram with one or more blocks specifying the steps of a function.

[0069] Contents not described in detail in this specification are prior art known to those skilled in the art. It is hereby indicated that the above description is intended to help those skilled in the art understand this invention, but does not limit the scope of protection of this invention. Any equivalent substitutions, modifications, improvements, or simplifications of the above descriptions that do not depart from the essential content of this invention fall within the scope of protection of this invention.

Claims

1. A virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory, characterized in that, Includes the following steps: S1. Establish a power flow model of the distribution network and the feasible domain of user response, and obtain power source carbon emission parameters, market purchase and sale electricity prices, basic time-of-use electricity prices, carbon market prices, aggregated resource parameters, aggregated resource operation boundaries and network security constraints; the power flow model of the distribution network outputs the active power flow direction of branches and the injected power of nodes in each scheduling period; S2. Based on the active power flow direction of the branch, the injected power of the node, and the carbon emission parameters of the power source, determine the dynamic carbon emission factor of each node at each time period according to the carbon emission flow conservation relationship, and multiply the carbon market price with the dynamic carbon emission factor and add the basic time-of-use electricity price to generate a composite price signal. S3. Based on the composite price signal, the optimal load adjustment amount is solved within the user's feasible domain with the goal of maximizing comprehensive utility. The comprehensive utility is composed of economic benefits, comfort losses, and environmental benefits weighted together. The comprehensive utility is mapped to a continuously changing probability of participating in demand response through a continuous mapping relationship. The product of the probability of participating in demand response and the optimal load adjustment amount is used as the expected response amount to form a user demand response model. S4. Construct a master-slave game with virtual power plants as leaders and flexible load users as followers. The leader optimizes the electricity price strategy, demand response incentives and aggregated resource scheduling plan with the aggregated resource parameters, aggregated resource operation boundaries and network security constraints as limits. The followers output the expected response amount based on the user demand response model. S5. Update the expected response to the power flow model of the distribution network to correct the node injection power and branch active power flow, and redetermine the dynamic carbon emission factor of each node; repeat S3 to S5 until the dynamic carbon emission factor and the expected response meet the preset convergence conditions, and generate an optimized scheduling scheme that includes distributed power output, energy storage charging and discharging power, flexible load adjustment instructions and external power grid exchange power plan. S6. According to the preset execution cycle, execute S2 to S5 to generate an optimized scheduling scheme, and send the control instructions in the optimized scheduling scheme to the aggregated resource control terminal to adjust the actual operating power of the distribution network; use the active power flow direction of the branch and the node injection power corresponding to the adjusted actual operating power of the distribution network as the initial conditions for the next cycle.

2. The virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory as described in claim 1, characterized in that, In S1: The aggregated resource parameters include the predicted output and adjustment range of distributed power sources, the rated power of energy storage, the upper and lower limits of the state of charge, and the power exchange boundary of the external power grid. The operational boundary of the aggregated resources includes mutual exclusion constraints for energy storage charging and discharging and upper and lower limits for distributed power output. The network security constraints include upper and lower limits of node voltage and apparent power capacity constraints of branches.

3. The virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory as described in claim 1, characterized in that, The carbon emission flow conservation relationship described in S2 is as follows: Based on the active power flow direction of the branch, the adjacent nodes that input active power to node i will form the upstream node set In(i,t); The active power of branch (j,i) reaching the receiver at node i is: ; The dynamic carbon emission factor e(i,t) of node i in time period t is calculated by the following formula: ; ; In the formula, The power supply set for access node i; Carbon emission intensity per unit of electricity; The power source provides active power output; To prevent positive numbers with a denominator of zero; P(j,i,t) is the active power of branch (j,i) in time period t; Let (j,i) be the network loss of branch (j,i) in time period t; e(j,t) is the dynamic carbon emission factor of upstream node j in time period t; D(i,t) represents the sum of the total active power input and power output of node i at time period t.

4. The virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory as described in claim 1, characterized in that, The overall utility described in S3 is a weighted average of economic benefits, comfort losses, and environmental benefits, specifically: The economic benefits are determined based on the composite price signal, the optimal load adjustment amount, and the demand response incentive, and include the change in electricity costs before and after adjustment and response compensation. The comfort loss is determined based on the optimal load adjustment and the comfort parameters within the feasible domain of the user response; The environmental benefits are determined based on the dynamic carbon emission factor and the change in node injection power before and after adjustment, reflecting the net reduction in carbon emissions from node electricity consumption. Within the feasible domain of the user response, the extreme value boundaries of the three indicators—economic benefits, comfort loss, and environmental benefits—are extracted and normalized. Based on the preset economic weights, preset comfort weights, and preset environmental preference weights corresponding to the three indicators, a weighted sum is calculated to form the comprehensive utility, where the sum of the three weights is 1 and all are non-negative.

5. The virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory according to claim 4, characterized in that, The continuous mapping relationship described in S3 is specifically a Logistic function. Taking the comprehensive utility as input, after processing by a preset utility benchmark and a preset sensitivity parameter, it maps to obtain the continuously changing participation demand response probability, wherein the participation demand response probability monotonically increases with the increase of the comprehensive utility.

6. The virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory according to claim 2, characterized in that, The master-slave game described in S4 is a Stackelberg game, where: The leader aims to maximize overall net benefit, which includes the results calculated below: Electricity sales revenue is calculated based on the composite price signal and the load within the feasible domain of the user response. The market transaction revenue calculated based on the aforementioned market purchase and sale electricity prices; The electricity purchase cost is calculated based on the market electricity purchase and sale price and the planned external power grid exchange capacity. The incentive cost is calculated based on the demand response incentive and the expected response amount. Carbon emission cost calculated based on the dynamic carbon emission factor, the node load power within the user response feasible domain, and the carbon market price; The resource operating cost is calculated based on the aggregated resource scheduling plan and the aggregated resource operating boundary. The security penalty cost is calculated based on the amount of overstepping the limits corresponding to the aforementioned network security constraints. The follower is solved independently with the goal of maximizing overall utility; the solution is achieved using an alternating optimal response algorithm, or by transforming the follower's optimal conditions into a KKT system and then constructing a single-layer model with equilibrium constraints through relaxation processing.

7. The virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory according to claim 1, characterized in that, The preset convergence condition in S5 is as follows: During the iterative process from S3 to S5, after each re-determination of the dynamic carbon emission factor of each node, a preset damping coefficient is used to smoothly update the recalculated value and the previous iteration value; when the maximum deviation of the dynamic carbon emission factor of each node in two adjacent iterations is not greater than the preset first convergence threshold and the maximum deviation of the expected response of each user is not greater than the preset second convergence threshold, convergence is determined; if convergence is not achieved after reaching the preset maximum number of iterations, the damping coefficient is reduced and the iteration continues, or the most recent feasible solution that satisfies the network security constraint is output and marked as not fully converged.

8. The virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game theory according to claim 1, characterized in that, S6 also includes: when the absolute value of the deviation between the actual operating power of the adjusted distribution network and the corresponding power in the current cycle's optimized scheduling scheme exceeds a preset deviation threshold, S2 to S5 are triggered to generate an optimized scheduling scheme.

9. A virtual power plant optimization scheduling system based on dynamic carbon emission factors and master-slave game theory, characterized in that, It includes a processor and a memory, the memory storing a computer program, which, when executed by the processor, implements the virtual power plant optimization scheduling method based on dynamic carbon emission factors and master-slave game as described in any one of claims 1 to 8.