A multi-level electricity-carbon market-oriented virtual power plant joint transaction method

By establishing a two-stage, three-layer robust trading model for virtual power plants, the problem of multi-timescale coupling between the electricity market and the carbon emission rights market was solved, the trading strategy of virtual power plants was optimized, and economic and environmental benefits were improved.

CN117745313BActive Publication Date: 2026-11-27HOHAI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311489028.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-08
Publication Date
2026-11-27
Estimated Expiration
2043-11-08

AI Technical Summary

Technical Problem

Existing research has failed to effectively combine the multi-timescale characteristics of the electricity market and the carbon emission rights market, resulting in an inability to accurately serve the current electricity-carbon market trading rules and a lack of trading strategies for virtual power plants over long timescales.

Method used

A two-stage, three-layer robust trading model for a virtual power plant is established, taking into account the uncertainty of wind power output. The model is solved using a column sum and constraint generation algorithm (C&CG), and trading strategies for the medium- and long-term electricity market and the spot market are formulated to optimize the joint revenue of the electricity-carbon market.

Benefits of technology

It achieves optimized coupling of the electricity-carbon market at different time scales, improves the economic and environmental benefits of virtual power plants, and provides a theoretical reference for multi-level market transactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117745313B_ABST
    Figure CN117745313B_ABST
Patent Text Reader

Abstract

The application discloses a kind of virtual power plant joint transaction methods for multi-level electricity-carbon market, steps: first, the multi-time scale coupling relationship of power market and carbon emission right market is analyzed, and the electricity-carbon joint transaction mechanism of virtual power plant under multi-level electricity-carbon market is established;Second, the two-stage transaction model of virtual power plant for multi-level electricity-carbon market is established;Finally, for the uncertainty of wind power output in virtual power plant, introduce robustness coefficient to build two-stage three-layer robust optimization model, and realize the conversion of model by column and constraint generation algorithm Solving, realize the transaction strategy optimization of virtual power plant in multi-level electricity-carbon market.The present application provides theoretical support for virtual power plant to participate in power long-term market and spot market, carbon emission right primary carbon market and secondary carbon market transaction simultaneously, fully excavates the flexible and low-carbon characteristics of virtual power plant, realizes the reasonable consumption of distributed energy in distribution network, and increases the economic benefit and environmental protection benefit of virtual power plant.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power market transaction optimization technology, and in particular relates to a virtual power plant joint trading method for a multi-level electricity carbon market. Background Technology

[0002] In recent years, the reform of the new electricity market has been continuously promoted, and the carbon emission rights market has continued to develop, resulting in fruitful achievements in the construction of the electricity-carbon market. On the one hand, since the start of the new round of electricity reform, multiple pilot electricity spot markets have been operating smoothly and orderly. Practice has proven that the coordinated trading of medium- and long-term markets and spot markets can fully restore the commodity attributes of electricity and truly play a role in price discovery and optimal resource allocation. On the other hand, on July 16, 2021, the carbon market was officially launched and the electricity industry was the first to be included in the scope of regulation. As of June 2, 2023, the carbon market had operated safely for 456 trading days, completing the clearance of 8.65 billion tons of allowances, with a compliance rate of 99.5%. In addition, under the new power system with a high proportion of renewable energy, virtual power plants (VPPs) have gradually become a flexible, adaptable, and economical emerging operating model by using advanced communication, metering, and control methods to achieve coordinated and optimized control of different types of distributed energy. VPPs can participate in both the electricity market and the carbon emission rights market, achieving a win-win situation for the economic efficiency and sustainability of the power system.

[0003] However, most existing studies simply normalize the time scales of carbon market models and electricity market models. In reality, carbon markets do not trade synchronously with electricity markets on an hourly basis, and there is a lack of detailed modeling of multi-level electricity and carbon markets over a complete compliance cycle. This fails to accurately serve the current electricity-carbon market trading rules. Therefore, there is an urgent need to conduct coupling analysis of electricity and carbon markets across multiple time scales and to study the trading strategies of virtual power plants over long time scales. Summary of the Invention

[0004] Purpose of the Invention: The purpose of this invention is to provide a method for joint trading of virtual power plants in a multi-tiered electricity-carbon market. Based on the varying degrees of controllability of the aggregation units within a virtual power plant, a two-stage, three-layer robust trading model is established for virtual power plants participating in a multi-tiered electricity-carbon market, maximizing joint revenue under the electricity-carbon market.

[0005] Technical solution: The present invention provides a method for joint trading of virtual power plants in a multi-tiered electricity carbon market, comprising the following steps:

[0006] Step 1: Analyze the coupling relationship between the electricity market and the carbon emission rights market at multiple time scales, and establish a joint trading mechanism for virtual power plants (VPPs) under a multi-level electricity and carbon market; wherein, the electricity market includes a medium- and long-term market and a spot market, the carbon emission rights market includes a primary carbon market and a secondary carbon market, and the virtual power plant (VPP) includes carbon capture units, wind turbines, energy storage batteries, and flexible loads.

[0007] Step 2: Based on the different controllability of the aggregation units within the Virtual Power Plant (VPP), and according to the capacity information of wind power, carbon capture units, and interruptible loads, establish the first-stage trading model for the VPP, formulate trading strategies for the medium- and long-term electricity market and the primary carbon market, sign medium- and long-term electricity contracts, and obtain initial carbon emission allowances.

[0008] Step 3: Based on wind power output and supply and demand information in the electricity carbon market, establish a second-stage trading model for virtual power plants (VPPs), formulate trading strategies for the electricity spot market and secondary carbon market, and complete the decomposition and delivery of electricity contracts and the calculation and fulfillment of carbon allowances.

[0009] Step 4: Considering the fluctuation of the actual wind power output curve compared with the predicted curve, a robust coefficient is introduced to measure the uncertainty of the actual wind power output in the second-stage trading model. A two-stage, three-layer robust optimization model is constructed, and the column and constraint generation algorithm C&CG is used to realize the model transformation. Finally, the model is solved to realize the joint trading of virtual power plants (VPPs) for the multi-level electricity carbon market.

[0010] This invention integrates the characteristics of different levels of the electricity carbon market across multiple time scales, establishing a coupling relationship between the electricity market and the carbon emission rights market. From a long-term perspective, the medium- and long-term electricity market is closely linked to the primary carbon market. When signing medium- and long-term electricity contracts, virtual power plants need to consider their initial carbon allowance holdings. Excessive contracted electricity volume may mean carbon emissions exceeding the initial allowance limit, resulting in additional carbon emission costs. Furthermore, as the proportion of paid allocation in the primary carbon market gradually increases, virtual power plants also need to bid for sufficient carbon allowances in the primary carbon market to leave an appropriate emission margin and ensure future power generation revenue. From a short-term perspective, both the electricity spot market and the secondary carbon market, as adjustment and balancing markets under long-term market conditions, are characterized by large price fluctuations and frequent changes in supply and demand. The bidding volume of virtual power plants in the electricity spot market is affected by carbon allowance usage and its price, while the clearing results of the electricity spot market also affect the carbon allowance trading volume of virtual power plants in the secondary carbon market.

[0011] The predicted output curve for wind power over a long timescale (Phase I trading) is based on known parameters derived from historical data. However, the actual wind power output over a shorter timescale (Phase II trading) fluctuates around the predicted curve. This fluctuation is an unknown variable, meaning "actual wind power output is uncertain." Virtual power plants (VPPs) need to consider this factor and adjust their market trading strategies and internal scheduling accordingly in Phase II trading. The "robust coefficient method" is a mathematical method proposed in this invention to describe this uncertainty / fluctuation. The larger the coefficient, the greater the deviation / fluctuation of the actual wind power output curve from the predicted output curve. VPP agents can set different robust coefficients based on their own circumstances to create market decision-making strategies and scheduling plans with varying degrees of conservatism.

[0012] Furthermore, in step 1, establishing a joint trading mechanism for virtual power plants (VPPs) under a multi-tiered electricity carbon market specifically includes the following steps:

[0013] Step 2.1 At the beginning of the year, VPP participates in medium- and long-term electricity market transactions and signs electricity contracts based on the rated capacity of its internal carbon capture units and the forecast of renewable energy output. At the same time, it signs dispatch agreements with internal flexible load users to determine the standby capacity of interruptible loads.

[0014] Step 2.2: The primary carbon market issues a portion of carbon allowances to VPPs free of charge based on their historical power generation and carbon emission data. At the same time, VPPs estimate their future additional carbon allowance needs based on the contracted electricity volume and auction them off in the primary carbon market to determine their total initial carbon allowances.

[0015] Step 2.3: At mid-year, VPP breaks down and delivers electricity contracts based on its own power balance, and formulates trading strategies for the electricity spot market based on spot market electricity prices and short-term renewable energy output forecasts.

[0016] Step 2.4: Based on the quarterly carbon allowance usage and changes in market carbon prices, VPP replenishes or sells carbon allowances in the secondary carbon market and updates carbon allowance inventory information.

[0017] Step 2.5: At the end of the year, VPPs need to calculate their carbon emissions for the entire compliance period. If the actual carbon emissions exceed their carbon allowances, they will be subject to penalties for the excess.

[0018] Furthermore, step 2 specifically involves the following: The first-stage trading model for the Virtual Power Plant (VPP) involves highly controllable aggregation units. Trading strategies are formulated based on the rated capacity of carbon capture units, the reserve capacity of interruptible loads, and the high-quality segmented output of wind power forecasts. The optimization objective is to minimize the sum of trading costs in the medium- and long-term electricity market and the primary carbon market, as well as the dispatch costs of the aggregation units. The objective function is constructed as follows:

[0019]

[0020] In the formula: For contracted electricity prices in different quarters of the year, λ C1 The clearing carbon price for the primary carbon market; This refers to the electricity volume under medium- to long-term contracts signed by VPP for the s quarter; E C1 This refers to the amount of carbon allowances that VPPs purchase through paid auctions in the primary carbon market; m IL Reserve cost per unit of interruptible load capacity; For the interruptible load reserve capacity agreed upon by VPP and users during period t of quarter s; k 0 ,k,k s k r These are the four operating cost coefficients for carbon capture units, representing fixed costs, operating costs, start-up costs, and standby capacity costs, respectively. For the carbon capture unit's operation and start-up state variables during period t in the s-th quarter, To contribute to the medium- and long-term plans of carbon capture units during this period. This represents the reserve capacity reserved for the spot market during the same period;

[0021] Other constraints are as follows:

[0022] Constraints on medium- and long-term electricity market transactions:

[0023]

[0024]

[0025] In the formula: For the high-quality segmented output of wind power in the t period of the s-th quarter, β is the ratio of the contracted electricity volume of the VPP to its total market electricity volume; L s,t It is a flexible load with a certain demand response capability, which is the internal load demand of the VPP. These represent the electricity sales and purchases by VPP in the spot market during period t of quarter s, respectively.

[0026] Primary carbon market trading constraints:

[0027] E C1 ≤α×(δB G P G.max T use (4)

[0028] Q C0 =E C1 +(1-α)×(δB G P GT.max T use (5)

[0029] In the formula: E C1 α represents the carbon allowances acquired by the VPP through paid auctions in the primary carbon market; α represents the proportion of paid carbon allowances in the primary carbon market; B G This is the power supply reference value for the carbon capture unit; P G.max This is the maximum output power of the carbon capture unit; T use δ is the maximum annual operating time of the carbon capture unit in the previous year; δ is the annual carbon emission reduction factor set by the government agency; Q C0 This represents the initial total carbon allowances obtained by the VPP at the beginning of the year.

[0030] Medium- and long-term planned output constraints for carbon capture units:

[0031]

[0032]

[0033]

[0034]

[0035] In the formula: P G.min denoted as the minimum output power of the carbon capture unit, and r is the corresponding maximum ramping power.

[0036] Interruptible load standby capacity constraints:

[0037]

[0038] In the formula: ω is the maximum proportion coefficient of interruptible load to the total load inside the VPP.

[0039] Furthermore, step 3 specifically involves: establishing a second-stage trading strategy model for virtual power plants oriented towards the electricity spot market and the secondary carbon market; participating in the electricity carbon balance market based on short-term timescale supply and demand information in the electricity carbon market; realizing the decomposition and delivery of electricity contracts and the calculation and fulfillment of carbon allowances; and minimizing the sum of its own transaction costs and operating costs.

[0040]

[0041] In the formula: The electricity purchase price and sales price in the spot market for period t in the s-th quarter; The carbon allowance price in the secondary carbon market for the s-th quarter; For VPP carbon allowance sales in the secondary carbon market; k′, m ESS m IL m SL These represent the costs of standby capacity activation for carbon capture units, energy storage charging and discharging, interruptible load activation, and transferable load activation per unit power, respectively. The actual power of the unit's standby capacity. The charging and discharging power of the energy storage battery; This represents the actual interruption power of the interruptible load. This represents the actual transfer power of the transferable load.

[0042] Other constraints are as follows:

[0043] Carbon capture unit operating constraints:

[0044]

[0045]

[0046] In the formula: The actual power generation of the carbon capture unit in the t period of the s quarter is numerically composed of two parts: the planned output in the medium and long term and the actual output of the reserve capacity.

[0047] The carbon capture system adopts a liquid storage structure to separate the CO2 absorption and regeneration processes, improving the overall flexible operation capability of the carbon capture unit. The relevant constraints are as follows:

[0048]

[0049]

[0050]

[0051]

[0052] In the formula: The amount of CO2 stored in the storage tank during period t of quarter s; This represents the amount of CO2 absorbed by CCS during the same period. This is the CO2 absorption efficiency coefficient; Represents the amount of CO2 being regenerated or compressed by the CCS; e is the carbon emission intensity factor of the VPP carbon capture unit; E CCS.2max This indicates the maximum carbon regeneration capacity of the CCS within a unit of time period;

[0053] Energy storage battery constraints:

[0054]

[0055]

[0056]

[0057]

[0058]

[0059] In the formula: η represents the energy storage capacity of the energy storage battery during period t in quarter s; ESS.C η ESS.D These are the charge / discharge efficiency coefficients of the energy storage battery; P ESS.Cmax P ESS.Dmax These are the maximum charging power and discharge power of the energy storage battery, respectively; S ESS.Cmax S ESS.Dmax These represent the upper and lower limits of the electrical energy storage capacity in the energy storage battery;

[0060] Flexible load constraints:

[0061]

[0062]

[0063]

[0064]

[0065] In the formula: P IL.max The maximum power interruption of an interruptible load within a continuous period; It is the load power of the transferable load during the t-period of quarter s after dispatch. The load power before load transfer scheduling is given by equation (25), which represents the load transfer power constraint to avoid the centralized use of electricity.

[0066] Medium- and long-term contract electricity volume constraints:

[0067]

[0068]

[0069] In the formula: The actual medium- and long-term contract power output of VPP in the s-th quarter, period t; the contract power output is segmented into curves using the commonly used peak-flat-valley decomposition method, ρ t The contracted electricity volume decomposition coefficients for different time periods;

[0070] Secondary carbon market bidding constraints:

[0071] To prevent arbitrage by VPPs in the secondary carbon market, there are limits on the number of VPPs holding quotas and the amount of quotas traded in a single transaction:

[0072]

[0073]

[0074]

[0075]

[0076] In the formula: χ represents the carbon allowance holdings of the VPP at the end of quarter s; S , χ B ξ represents the maximum carbon allowance sale / purchase factor for the VPP; ξ represents the maximum carbon allowance holding factor for the VPP; τ represents the average emission factor of the power grid in the region to which the VPP is located, representing the carbon emissions converted from a unit of electricity purchased per megawatt; C Pen This represents the penalty paid by the VPP at the end of the compliance period for exceeding carbon emission limits, k C This is the penalty coefficient;

[0077] Capacity balance constraints:

[0078]

[0079] In the formula: θ represents the actual output power of wind power during period t in the s-th quarter; θ represents the energy loss per unit of CO2 captured by CCS.

[0080] Furthermore, in step 4, a robustness coefficient is introduced to characterize the uncertainty of actual wind power output, a two-stage, three-layer robust optimization model is constructed, and the column and constraint generation algorithm CCG is used to transform the model. Specifically, the uncertainty of wind power output is described using a box-type uncertainty set:

[0081]

[0082]

[0083] In the formula: Γ represents the maximum fluctuation range of wind power output during period t in season s; s The uncertainty margin of wind power output is used to control the conservatism of the robust optimization model. s The larger the value, the more conservative the result.

[0084] The established two-stage robust joint trading model for virtual power plants under a multi-level electricity carbon market is shown below:

[0085]

[0086] in, This is the set of decision variables for the first stage; For the set of decision variables in the second stage of the model, equation (36) can be written in a compact form as follows:

[0087]

[0088] Ψ={x|Ax≤a} (38)

[0089]

[0090]

[0091] In the formula: x and y are the decision variables for the first and second stages, respectively; u w , These represent the actual and predicted power output of wind power, respectively. Used to represent the uncertainty of wind power, it is an integer variable of 0-1; Equation (37) is the objective function of the two-stage problem; Equation (38) represents the constraints of the first stage, including equations (2)-(10); Equation (39) represents the uncertainty set of wind power output; Equation (40) represents the constraints of the second stage, including equations (12)-(33); b, c, A, a, B w , Γ w D, E, F, G, and d are constant matrices corresponding to the objective function and constraints;

[0092] The two-stage robust trading model is solved by alternating iterative main and subproblems using the C&CG algorithm. The main problem is a minimization problem used to solve the trading and scheduling decisions of the VPP in the corresponding scenario, including the first-stage model and the constraints related to finding the worst-case subproblems. The expression of the main problem in the i-th iteration is as follows:

[0093] min b T x+η (41)

[0094] stAx≤a (42)

[0095] η≥c T y (k) ,0≤k≤i (43)

[0096]

[0097] In the formula: and The worst-case scenario derived for solving the lower-level problem; x (i) and y (i) Add optimization variables to the main problem, but only x (i) Substitute it into the subproblem as a parameter; η is the objective function value of the second stage to be optimized;

[0098] After making the first-stage decision in the main problem, the subproblem will solve for the VPP operating cost under the worst-case wind power fluctuation scenario. At the same time, the scenario parameters will be brought back to the main problem for further iteration. The subproblem is a two-level max-min optimization problem. By using duality theory, the inner minimization problem is transformed into a maximization problem. The expression of the i-th iteration subproblem after transformation is as follows:

[0099]

[0100] stDγ≤c (46)

[0101] γ≥0 (47)

[0102] z∈U (48)

[0103] In the formula: γ is the dual variable matrix of the second-stage constraint conditions.

[0104] Furthermore, the specific solution model is as follows: Based on the principal subproblem, the C&CG algorithm solves the problem in the following steps:

[0105] Step 4.1: Initialization, set the iteration count i = 1, and the upper bound of the objective function U. B =∞, lower bound L B =-∞, set the convergence criterion ε;

[0106] Step 4.2: Solve the main problem (41)-(44) to obtain the objective function value V of the main problem. i Decision variable x (i) Update the lower bound L of the objective function B =V i ;

[0107] Step 4.3: Substitute the solution to the main problem into equations (45)-(48) to solve the subproblems and obtain the objective function J. i and the worst scenario and Return equations (43) and (44) to the main problem and update the upper bound U of the objective function. B =min{U B ,b T x (i) +J i};

[0108] Step 4.4, Convergence test: If |(U B -L B ) / L B If |≤ε, then the problem converges and iteration stops, and the objective function value is U. B Otherwise, continue iterating, i = i + 1, and return to step 2.

[0109] Furthermore, in step 4, the solution model is programmed in the GAMS numerical analysis software, and the CPLEX solver is called to perform calculations, thereby achieving efficient solution of the mathematical model for virtual power plant joint trading in a multi-level electricity carbon market.

[0110] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:

[0111] (1) This invention considers the different cycles of the carbon emission rights market and the electricity market, as well as the different price fluctuations of electricity and carbon allowances. It proposes a virtual power plant joint trading mechanism for multi-level electricity-carbon markets at different time scales. The virtual power plant formulates different dispatch strategies based on the controllability of its internal aggregation units to adapt to different levels of the electricity-carbon market. Based on this, the invention constructs a two-stage robust trading model for virtual power plants in multi-level electricity-carbon markets. This model considers the uncertainty of renewable energy output and uses the C&CG algorithm for iterative solution to achieve autonomous consumption of internal electricity and carbon allowances. This provides a theoretical reference for virtual power plants with different risk appetites to formulate multi-level electricity-carbon market trading strategies, maximizing the economic and environmental benefits of virtual power plants.

[0112] (2) The present invention uses the C&CG algorithm to transform and solve the proposed two-stage three-layer model. The transformed two-stage two-layer model can be directly modeled and solved using GAMS numerical analysis software, thereby improving the solution efficiency. Attached Figure Description

[0113] Figure 1 This is a basic flowchart of the method of the present invention;

[0114] Figure 2 This is a flowchart of the virtual power plant joint trading mechanism under the multi-level electricity-carbon market in this invention;

[0115] Figure 3 This is a flowchart of the C&CG algorithm in this invention;

[0116] Figure 4 This is a schematic diagram of the wind power predicted output curve in an embodiment of the present invention;

[0117] Figure 5 This is a price diagram illustrating different levels of the electricity-carbon market in an embodiment of the present invention. Detailed Implementation

[0118] The technical solution of the present invention will be further described below with reference to the accompanying drawings.

[0119] This invention designs a virtual power plant joint trading method for a multi-level electricity carbon market, such as... Figure 1 As shown, the specific steps of this method are as follows:

[0120] 1. Step 1: Analyze the coupling relationship between the electricity market and the carbon emission rights market across multiple time scales, and establish a virtual power plant joint trading mechanism under a multi-level electricity-carbon market, as detailed below:

[0121] This invention integrates the characteristics of different levels of the electricity carbon market across multiple time scales, establishing a coupling relationship between the electricity market and the carbon emission rights market. From a long-term perspective, the medium- and long-term electricity market is closely linked to the primary carbon market. When signing medium- and long-term electricity contracts, virtual power plants need to consider their initial carbon allowance holdings. Excessive contracted electricity volume may mean carbon emissions exceeding the initial allowance limit, resulting in additional carbon emission costs. Furthermore, as the proportion of paid allocation in the primary carbon market gradually increases, virtual power plants also need to bid for sufficient carbon allowances in the primary carbon market to leave an appropriate emission margin and ensure future power generation revenue. From a short-term perspective, both the electricity spot market and the secondary carbon market, as adjustment and balancing markets under long-term market conditions, are characterized by large price fluctuations and frequent changes in supply and demand. The bidding volume of virtual power plants in the electricity spot market is affected by carbon allowance usage and its price, while the clearing results of the electricity spot market also affect the carbon allowance trading volume of virtual power plants in the secondary carbon market.

[0122] In this invention, the virtual power plant consists of carbon capture units, wind turbines, energy storage batteries, and flexible loads. The VPP electricity-carbon trading mechanism under the multi-level electricity-carbon market is as follows:

[0123] 1) At the beginning of the year, VPP participated in medium- and long-term electricity market transactions and signed electricity contracts based on the rated capacity of its internal carbon capture units and forecasts of renewable energy output. At the same time, it signed dispatch agreements with internal flexible load users to determine the standby capacity of interruptible loads.

[0124] 2) The primary carbon market grants VPPs a portion of their carbon allowances free of charge based on their historical power generation and carbon emission data. Simultaneously, VPPs estimate their future additional carbon allowance needs based on their contracted electricity generation and then auction them off in the primary carbon market to determine their total initial carbon allowances.

[0125] 3) Mid-year, VPP considers its own power balance and breaks down and settles power contracts. Simultaneously, based on spot market electricity prices and short-term renewable energy output forecasts, VPP formulates trading strategies for the electricity spot market.

[0126] 4) Based on the quarterly carbon allowance usage and changes in market carbon prices, VPP replenishes or sells carbon allowances in the secondary carbon market and updates carbon allowance inventory information.

[0127] 5) At the end of the year, VPPs must calculate their carbon emissions for the entire compliance period. If the actual carbon emissions exceed their carbon allowances, they will be subject to penalties for the excess.

[0128] 2. Step 2: Considering the varying controllability of aggregation units within the virtual power plant, and based on the capacity information of wind power, carbon capture units, and interruptible loads, establish a first-stage trading model for the virtual power plant, formulate trading strategies for the medium- and long-term electricity market and the primary carbon market, sign medium- and long-term electricity contracts, and obtain initial carbon emission allowances, as detailed below:

[0129] The first phase of the VPP trading model only involves aggregation units with high controllability. Trading strategies are formulated based on the rated capacity of carbon capture units, interruptible load reserve capacity, and high-quality segmented output forecasted by wind power. The optimization objective is to minimize the sum of trading costs in the medium- and long-term electricity market and the primary carbon market, as well as the dispatch costs of the aggregation units. The objective function is as follows:

[0130]

[0131] In the formula: For contracted electricity prices in different quarters of the year, λ C1 The clearing carbon price for the primary carbon market; This refers to the electricity volume under medium- to long-term contracts signed by VPP for the s quarter; E C1 This refers to the amount of carbon allowances that VPPs purchase through paid auctions in the primary carbon market; m IL Reserve cost per unit of interruptible load capacity; For the interruptible load reserve capacity agreed upon by VPP and users during period t of quarter s; k 0 ,k,k s k r These are the four operating cost coefficients for carbon capture units, representing fixed costs, operating costs, start-up costs, and standby capacity costs, respectively. For the carbon capture unit's operation and start-up state variables during period t in the s-th quarter, To contribute to the medium- and long-term plans of carbon capture units during this period. This represents the reserve capacity reserved for the spot market during the same period.

[0132] Other constraints are as follows:

[0133] 1) Constraints on medium- and long-term electricity market transactions:

[0134]

[0135]

[0136] In the formula: For the high-quality segmented output of wind power in the t period of the s-th quarter, β is the ratio of the contracted electricity volume of the VPP to its total market electricity volume; L s,t It is a flexible load with a certain demand response capability, which is the internal load demand of the VPP. These represent the electricity sales and purchases by VPP in the spot market during period t of quarter s, respectively.

[0137] 2) Constraints on Primary Carbon Market Trading:

[0138] E C1 ≤α×(δB G P G.max T use (4)

[0139] Q C0 =E C1 +(1-α)×(δB G P GT.max T use (5)

[0140] In the formula: E C1 α represents the carbon allowances acquired by the VPP through paid auctions in the primary carbon market; α represents the proportion of paid carbon allowances in the primary carbon market; B G This is the power supply reference value for the carbon capture unit; P G.max This is the maximum output power of the carbon capture unit; T use δ is the maximum annual operating time of the carbon capture unit in the previous year; δ is the annual carbon emission reduction factor set by the government agency; Q C0 This represents the initial total carbon allowances obtained by the VPP at the beginning of the year.

[0141] 3) Long-term planned output constraints for carbon capture units:

[0142]

[0143]

[0144]

[0145]

[0146] In the formula: P G.min denoted as the minimum output power of the carbon capture unit, and r is the corresponding maximum ramping power.

[0147] 4) Interruptible load standby capacity constraints:

[0148]

[0149] In the formula: ω is the maximum proportion coefficient of interruptible load to the total load inside the VPP.

[0150] 3. Step 3: Based on wind power output and supply and demand information in the electricity carbon market, establish a second-stage virtual power plant trading model, formulate trading strategies for the electricity spot market and secondary carbon market, and complete the breakdown and settlement of electricity contracts and the calculation and fulfillment of carbon allowances, as detailed below:

[0151] The second phase of the VPP trading model aims to minimize the sum of transaction costs in the electricity spot market and the secondary carbon market, as well as the dispatch costs of the aggregation units. These costs include the transaction costs in the electricity spot market and the secondary carbon market, the costs of calling up reserve capacity from carbon capture units, the costs of charging and discharging energy storage, the costs of calling up flexible loads, and the operating costs of carbon capture units. The objective function is constructed as follows:

[0152]

[0153] In the formula: The electricity purchase price and sales price in the spot market for period t in the s-th quarter; The carbon allowance price in the secondary carbon market for the s-th quarter; For VPP carbon allowance sales in the secondary carbon market; k′, m ESS m IL m SL These represent the costs of standby capacity activation for carbon capture units, energy storage charging and discharging, interruptible load activation, and transferable load activation per unit power, respectively. The actual power of the unit's standby capacity. The charging and discharging power of the energy storage battery; This represents the actual interruption power of the interruptible load. This represents the actual transfer power of the transferable load.

[0154] Other constraints are as follows:

[0155] 1) Operating constraints of carbon capture units:

[0156]

[0157]

[0158] In the formula: The actual power generation of the carbon capture unit in the t period of the s quarter is numerically composed of two parts: the planned output in the medium and long term and the actual output of the reserve capacity.

[0159] Furthermore, the carbon capture system of this invention adopts a liquid storage structure to separate the CO2 absorption process and the regeneration process, thereby improving the overall flexible operation capability of the carbon capture unit. The relevant constraints are as follows:

[0160]

[0161]

[0162]

[0163]

[0164] In the formula: The amount of CO2 stored in the storage tank during period t of quarter s; This represents the amount of CO2 absorbed by CCS during the same period. This is the CO2 absorption efficiency coefficient; Represents the amount of CO2 being regenerated or compressed by the CCS; e is the carbon emission intensity factor of the VPP carbon capture unit; E CCS.2max This indicates the maximum carbon regeneration capacity of the CCS within a unit of time period.

[0165] 2) Constraints of energy storage batteries:

[0166]

[0167]

[0168]

[0169]

[0170]

[0171] In the formula: η represents the energy storage capacity of the energy storage battery during period t in quarter s; ESS.C η ESS.D These are the charge / discharge efficiency coefficients of the energy storage battery; P ESS.Cmax P ESS.Dmax These are the maximum charging power and discharge power of the energy storage battery, respectively; S ESS.Cmax S ESS.Dmax These represent the upper and lower limits of the electrical energy storage capacity in the energy storage battery.

[0172] 3) Flexible load constraints:

[0173]

[0174]

[0175]

[0176]

[0177] In the formula: P IL.max The maximum power interruption of an interruptible load within a continuous period; It is the load power of the transferable load during the t-period of quarter s after dispatch. Let be the load power before load transfer scheduling. Equation (25) represents the load transfer power constraint to avoid centralized use of electricity.

[0178] 4) Medium- and long-term contract electricity volume constraints:

[0179]

[0180]

[0181] In the formula: This invention represents the actual medium- to long-term contract power output of VPP in the s-th quarter, period t. The contract power output is segmented into curves using the commonly used peak-to-valley decomposition method, ρ. t The decomposition coefficients for contracted electricity volume at different time periods.

[0182] 5) Bidding constraints in the secondary carbon market:

[0183] To prevent VPPs from engaging in arbitrage in the secondary carbon market, limits have been set on the number of VPPs holding quotas and the volume of quota transactions per transaction.

[0184]

[0185]

[0186]

[0187]

[0188] In the formula: χ represents the carbon allowance holdings of the VPP at the end of quarter s; S , χ B ξ represents the maximum carbon allowance sale / purchase factor for the VPP; ξ represents the maximum carbon allowance holding factor for the VPP; τ represents the average emission factor of the power grid in the region to which the VPP is located, representing the carbon emissions converted from a unit of electricity purchased per megawatt; C Pen This represents the penalty paid by the VPP at the end of the compliance period for exceeding carbon emission limits, k C This is the penalty coefficient.

[0189] 6) Energy balance constraint:

[0190]

[0191] In the formula: θ represents the actual output power of wind power during period t in the s-th quarter; θ represents the energy loss per unit of CO2 captured by CCS.

[0192] 4. In step 4, a robust coefficient is introduced to characterize the uncertainty of the actual output of wind power. A two-stage, three-layer robust optimization model is constructed, and the column sum and constraint generation algorithm (C&CG) is used to realize the transformation of the model. Finally, the above model is solved in the CPLEX solver of GAMS software.

[0193] This invention uses a box-type uncertainty set to describe the uncertainty of wind power output:

[0194]

[0195]

[0196] In the formula: Γ represents the maximum fluctuation range of wind power output during period t in season s; s The uncertainty margin of wind power output is used to control the conservatism of the robust optimization model. s The larger the value, the more conservative the result.

[0197] The two-stage robust joint trading model for virtual power plants under the multi-level electricity carbon market established in this invention is shown below:

[0198]

[0199] in, This is the set of decision variables for the first stage;

[0200] Let be the set of decision variables for the second stage of the model. Equation (36) can be written in a compact form as follows:

[0201]

[0202] Ψ={x|Ax≤a} (38)

[0203]

[0204]

[0205] In the formula: x and y are the decision variables for the first and second stages, respectively; u w , These represent the actual and predicted power output of wind power, respectively. Used to represent the uncertainty of wind power, it is an integer variable of 0-1; Equation (37) is the objective function of the two-stage problem; Equation (38) represents the constraints of the first stage, including equations (2)-(10); Equation (39) represents the uncertainty set of wind power output; Equation (40) represents the constraints of the second stage, including equations (12)-(33); b, c, A, a, B w , Γ w D, E, F, G, and d are constant matrices corresponding to the objective function and constraints.

[0206] This invention employs the C&CG algorithm to alternately iterate the main problem and subproblems to solve the two-stage robust trading model. The main problem is a minimization problem used to solve the trading and scheduling decisions of the VPP in the corresponding scenario, including the first-stage model and the relevant constraints for finding the worst-case subproblems. The expression of the main problem in the i-th iteration is as follows:

[0207] min b T x+η (41)

[0208] stAx≤a (42)

[0209] η≥c T y (k) ,0≤k≤i (43)

[0210]

[0211] In the formula: and The worst-case scenario derived for solving the lower-level problem; x (i) and y (i) Add optimization variables to the main problem, but only x (i) Substitute it into the subproblem as a parameter; η is the objective function value of the second stage to be optimized.

[0212] After making the first-stage decision in the main problem, the subproblem will solve for the VPP operating cost under the worst-case wind power fluctuation scenario, and simultaneously bring the scenario parameters back to the main problem for further iteration. The subproblem is a two-level max-min optimization problem, which can be transformed into a maximization problem using duality theory. The expression for the i-th iteration subproblem after transformation is as follows:

[0213]

[0214] stDγ≤c (46)

[0215] γ≥0 (47)

[0216] z∈U (48)

[0217] In the formula: γ is the dual variable matrix of the second-stage constraint conditions.

[0218] Based on the master problem, the C&CG algorithm solves the problem in the following steps:

[0219] Step 1: Initialization, set the iteration count i = 1, and the upper bound of the objective function U. B =∞, lower bound L B =-∞, set the convergence criterion ε;

[0220] Step 2: Solve the main problem (41)-(44) to obtain the objective function value V of the main problem. i Decision variable x (i) Update the lower bound L of the objective function. B =V i ;

[0221] Step 3: Substitute the solution to the main problem into equations (45)-(48) to solve the subproblems and obtain the objective function J. i and the worst scenario and Return equations (43) and (44) to the main problem and update the upper bound U of the objective function. B =min{U B ,b T x (i) +J i};

[0222] Step 4: Convergence test, if |(U B -L B ) / L B If |≤ε, then the problem converges and iteration stops, and the objective function value is U. B Otherwise, continue iterating, i = i + 1, and return to step 2. The C&CG method enables the transformation of the two-stage, three-layer model, significantly reducing the solution time. Furthermore, this invention programs the model in GAMS numerical analysis software and calls the CPLEX solver for computation, enabling efficient solutions to the mathematical model of virtual power plant joint trading for a multi-level electricity carbon market. To verify that the method of this invention can significantly improve the economic and environmental benefits of virtual power plants, fully leverage their flexible and low-carbon characteristics, and promote the timely consumption of renewable energy, the following example analysis of the electricity carbon market trading operation of a virtual power plant in one cycle year, based on historical data, illustrates the effectiveness of this invention. The relevant parameters of the virtual power plant are as follows:

[0223] Table 1 Parameters of each aggregation unit within the virtual power plant

[0224]

[0225] As shown in Table 2, the embodiments are divided into the following three schemes for comparative analysis. GAMS software was used for modeling and CPLEX solver was called to solve the problems. The profit situation of each level of the virtual power plant's carbon market is shown in Table 3:

[0226] Table 2 Virtual Power Plant Electricity-Carbon Market Participation Scheme

[0227]

[0228]

[0229] Note: A checkmark indicates that VPP is participating in trading in this market.

[0230] Table 3. VPP Profitability under Different Market Participation Schemes

[0231]

[0232] As shown in Table 3, the virtual power plant (VPP) using the method of this invention simultaneously participates in joint transactions including the medium- and long-term electricity market, the spot market, the primary carbon emission rights market, and the secondary carbon emission rights market, thereby maximizing the total profit of the multi-level electricity-carbon market. Firstly, comparing Scheme 1 and Scheme 2, the VPP's profit increased by ¥10.640k, due to the VPP's strategic participation in the secondary carbon market transactions mid-year, profiting from selling surplus carbon allowances through seasonal carbon trading. Secondly, comparing Scheme 2 and Scheme 3, -¥15.36k corresponds to the cost of the VPP's initial carbon allowances purchased in the primary carbon market. Furthermore, by actively participating in primary carbon market transactions at the beginning of the year, the VPP obtains additional carbon allowances in advance for mid-year use—gaining more power generation capacity or participating in secondary carbon market transactions, thus improving its economic efficiency. Finally, comparing the electricity market returns under different schemes, participation in the medium- and long-term market reduces the VPP's returns in the spot market, but the signing of medium- and long-term electricity contracts helps the VPP lock in power generation benefits in advance, reducing the risk costs caused by the uncertainty of renewable energy output, resulting in an increase of ¥114.09k in electricity market returns.

[0233] In summary, this invention designs a method for virtual power plants to participate in joint trading in multi-level electricity-carbon markets at different time scales. It also provides relevant joint trading mechanisms and flowcharts, broadening the market trading channels for virtual power plants and achieving effective interaction and joint scheduling between the electricity and carbon markets. Furthermore, this invention quantifies the market risk arising from the uncertainty of wind power output. Virtual power plants can select appropriate robustness coefficients based on their own risk appetite, thereby optimizing their electricity-carbon market trading strategies to maximize their economic and environmental benefits.

[0234] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.

Claims

1. A virtual power plant joint trading method for a multi-tiered electricity carbon market, characterized in that, Includes the following steps: Step 1: Analyze the coupling relationship between the electricity market and the carbon emission rights market at multiple time scales, and establish a joint trading mechanism for virtual power plant (VPP) under a multi-level electricity and carbon market. The electricity market includes the medium- and long-term market and the spot market, the carbon emission rights market includes the primary carbon market and the secondary carbon market, and the virtual power plant (VPP) includes carbon capture units, wind turbines, energy storage batteries, and flexible loads. Step 2: Based on the different controllability of the aggregation units within the Virtual Power Plant (VPP), and according to the capacity information of wind power, carbon capture units, and interruptible loads, establish the first-stage trading model for the VPP, formulate trading strategies for the medium- and long-term electricity market and the primary carbon market, sign medium- and long-term electricity contracts, and obtain initial carbon emission allowances. The first-stage trading model of the virtual power plant (VPP) aims to minimize the sum of trading costs in the medium- and long-term electricity market and the primary carbon market, as well as the scheduling costs of the aggregation unit. The objective function is as follows: (1) In the formula: The contracted electricity prices are for different quarters within the year. The clearing carbon price for the primary carbon market; This refers to the electricity volume under medium- to long-term contracts signed by VPP for the s quarter. It represents the amount of carbon allowances that VPPs purchase through paid auctions in the primary carbon market. Reserve cost per unit of interruptible load capacity; For the interruptible load reserve capacity agreed upon by VPP and users during period t of quarter s; , , , These are the four operating cost coefficients for carbon capture units, representing fixed costs, operating costs, start-up costs, and standby capacity costs, respectively. , For the carbon capture unit's operation and start-up state variables during period t in the s-th quarter, To contribute to the medium- and long-term plans of carbon capture units during this period. This represents the reserve capacity reserved for the spot market during the same period; It also includes medium- and long-term electricity market trading constraints, primary carbon market trading constraints, medium- and long-term planned output constraints of carbon capture units, and interruptible load reserve capacity constraints. Step 3: Based on wind power output and supply and demand information in the electricity carbon market, establish a second-stage trading model for virtual power plants (VPPs), formulate trading strategies for the electricity spot market and secondary carbon market, and complete the decomposition and delivery of electricity contracts and the calculation and fulfillment of carbon allowances. The second-phase trading model of the virtual power plant (VPP) participates in the electricity carbon balance market based on short-term timescale electricity carbon market supply and demand information, realizes the decomposition and delivery of electricity contracts and the accounting and fulfillment of carbon allowances, and minimizes the sum of its own transaction costs and operating costs. The objective function is constructed as follows: (11) In the formula: , The electricity purchase price and sales price in the spot market for period t in the s-th quarter; For the first Quarterly carbon allowance prices in the secondary carbon market; This refers to the amount of carbon allowances sold by VPPs in the secondary carbon market. , , , These represent the costs of standby capacity activation for carbon capture units, energy storage charging and discharging, interruptible load activation, and transferable load activation per unit power, respectively. This refers to the actual power deployed to the unit's reserve capacity. , The charging and discharging power of the energy storage battery; This represents the actual interruption power of the interruptible load. This represents the actual transfer power of the transferable load. It also includes constraints on carbon capture unit operation, energy storage battery constraints, flexible load constraints, medium- and long-term contract electricity constraints, secondary carbon market bidding constraints, and capacity balance constraints. Step 4: Considering the fluctuation of the actual wind power output curve compared with the predicted curve, a robust coefficient is introduced to measure the uncertainty of the actual wind power output in the second-stage trading model. A two-stage, three-layer robust optimization model is constructed, and the column and constraint generation algorithm C&CG is used to realize the model transformation. Finally, the model is solved to realize the joint trading of virtual power plants (VPPs) for the multi-level carbon electricity market. The two-stage, three-layer robust optimization model uses a box-type uncertainty set to describe the uncertainty of wind power output. The C&CG algorithm is used to alternately iterate the main problem and subproblems to solve the two-stage robust trading model, in order to solve the trading and scheduling decisions of VPP in the corresponding scenario.

2. The virtual power plant joint trading method for a multi-level electricity carbon market according to claim 1, characterized in that, Step 1, establishing a joint trading mechanism for virtual power plants (VPPs) under a multi-tiered electricity carbon market, specifically includes the following steps: Step 1.1 At the beginning of the year, VPP participates in medium- and long-term electricity market transactions and signs electricity contracts based on the rated capacity of its internal carbon capture units and the forecast of renewable energy output. At the same time, it signs dispatch agreements with internal flexible load users to determine the standby capacity of interruptible loads. Step 1.2: The primary carbon market issues a portion of carbon allowances to VPPs free of charge based on their historical power generation and carbon emission data. At the same time, VPPs estimate their future additional carbon allowance needs based on the contracted electricity volume and auction them off in the primary carbon market to determine their total initial carbon allowances. Step 1.3: At mid-year, VPP breaks down and delivers electricity contracts based on its own power balance, and formulates trading strategies for the electricity spot market based on spot market electricity prices and short-term renewable energy output forecasts. Step 1.4: Based on the quarterly carbon allowance usage and changes in market carbon prices, VPP replenishes or sells carbon allowances in the secondary carbon market and updates carbon allowance inventory information. Step 1.5: At the end of the year, VPPs need to calculate their carbon emissions for the entire compliance period. If the actual carbon emissions exceed their carbon allowances, they will be subject to penalties for the excess.

3. The virtual power plant joint trading method for a multi-level electricity carbon market according to claim 2, characterized in that, In step 2, the constraints on medium- and long-term electricity market transactions are as follows: (2) (3) In the formula: To contribute to the high-quality segmentation of wind power in the t period of the s-th quarter, The percentage of contracted electricity volume for a VPP relative to its total market electricity volume; It is a flexible load with demand response capability, which is the internal load demand of the VPP; , These represent the electricity sales and purchases by VPP in the spot market during period t of quarter s, respectively. Primary carbon market trading constraints: (4) (5) In the formula: Carbon allowances acquired by VPPs through paid auctions in the primary carbon market; This refers to the proportion of paid carbon allowances in the primary carbon market. This is the power supply reference value for the carbon capture unit; This is the maximum output power of the carbon capture unit; This is the maximum annual operating time of the carbon capture unit in the previous year; It is the annual carbon emission reduction factor set by government agencies; This represents the initial total carbon allowances obtained by the VPP at the beginning of the year. Medium- and long-term planned output constraints for carbon capture units: (6) (7) (8) (9) In the formula: This is the minimum output power of the carbon capture unit. This corresponds to the maximum climbing power; Interruptible load standby capacity constraints: (10) In the formula: It is the maximum proportion of interruptible load to the total load within the VPP.

4. The virtual power plant joint trading method for a multi-level electricity carbon market according to claim 3, characterized in that, In step 3, the carbon capture unit operating constraints are as follows: (12) (13) In the formula: The actual power generation of the carbon capture unit in the t period of the s quarter is numerically composed of two parts: the planned output in the medium and long term and the actual output of the reserve capacity. The carbon capture system adopts a liquid storage structure to separate the CO2 absorption and regeneration processes, improving the overall flexible operation capability of the carbon capture unit. The relevant constraints are as follows: (14) (15) (16) (17) In the formula: For the s quarter CO2 storage level in the storage tank during a given period; This represents the amount of CO2 absorbed by CCS during the same period. This is the CO2 absorption efficiency coefficient; This represents the amount of CO2 that CCS is regenerating or compressing; The carbon emission intensity coefficient of the VPP carbon capture unit; This indicates the maximum carbon regeneration capacity of the CCS within a unit of time period; Energy storage battery constraints: (18) (19) (20) (21) (22) In the formula: The energy storage capacity of the energy storage battery during period t in the s-th quarter; , These are the charging efficiency coefficient and the discharging efficiency coefficient of the energy storage battery, respectively. , These are the maximum charging power and discharge power of the energy storage battery, respectively. , These represent the upper and lower limits of the electrical energy storage capacity in the energy storage battery, respectively. Flexible load constraints: (23) (24) (25) (26) In the formula: The maximum power interruption of an interruptible load within a continuous period; It is the S quarter The load power of the time-transferable load after dispatch. The load power before load transfer scheduling is given by equation (25), which represents the load transfer power constraint to avoid the centralized use of electricity. Medium- and long-term contract electricity volume constraints: (27) (28) In the formula: For VPP in the season The actual medium- and long-term contract power output for the specified period; the contract power volume is segmented into curves using the commonly used peak-to-valley decomposition method. The contracted electricity volume decomposition coefficients for different time periods; Secondary carbon market bidding constraints: To prevent arbitrage by VPPs in the secondary carbon market, there are limits on the number of VPPs holding quotas and the amount of quotas traded in a single transaction: (29) (30) (31) (32) In the formula: For VPP in the Carbon allowance holdings at the end of the quarter; , These are the maximum sale factor and purchase factor for VPP's carbon allowances, respectively; The maximum carbon quota holding factor for VPP; The average emission factor of the power grid in the region to which the VPP belongs represents the carbon emissions converted from the electricity purchased per megawatt. This represents the penalties paid by the VPP at the end of the compliance period for exceeding carbon emission limits. This is the penalty coefficient; Capacity balance constraints: (33) In the formula: The actual output power of wind power during period t in the s-th quarter; The electrical energy loss per unit of CO2 captured by CCS.

5. The virtual power plant joint trading method for a multi-level electricity carbon market according to claim 4, characterized in that, In step 4, a robustness coefficient is introduced to characterize the uncertainty of actual wind power output. A two-stage, three-layer robust optimization model is constructed, and the column and constraint generation algorithm CCG is used to transform the model. Specifically, the uncertainty of wind power output is described using a box-type uncertainty set: (34) (35) In the formula: For the first season The maximum fluctuation range of wind power output during a given period; This represents the uncertainty margin of wind power output, used to control the conservatism of the robust optimization model. The larger the value, the more conservative the result. The established two-stage robust joint trading model for virtual power plants under a multi-level electricity carbon market is shown below: (36) in, = , , , , , , This is the set of decision variables for the first stage; = , , , , , , , For the set of decision variables in the second stage of the model, equation (36) can be written in a compact form as follows: (37) (38) (39) (40) In the formula: , These are the decision variables for the first and second stages, respectively; , These represent the actual and predicted power output of wind power, respectively. The uncertainty of wind power is represented by integer variables of 0-1; Equation (37) is the objective function of the two-stage problem; Equation (38) represents the constraints of the first stage, including Equations (2)-(10); Equation (39) represents the uncertainty set of wind power output; Equation (40) represents the constraints of the second stage, including Equations (12)-(33). , , , , , , , , , , , , This is the constant matrix corresponding to the objective function and constraints; The two-stage robust trading model is solved by alternating iterative main and subproblems using the C&CG algorithm. The main problem is a minimization problem used to solve the trading and scheduling decisions of the VPP in the corresponding scenario, including the first-stage model and the constraints related to finding the worst-case subproblems. The expression of the main problem in the i-th iteration is as follows: (41) (42) (43) (44) In the formula: and The worst-case scenario found for the underlying problem; and Add optimization variables to the main problem, but only... Substitute it into the subproblem as a parameter; The objective function value for the second stage to be optimized; After the main problem provides the first-stage decision, the subproblem will solve for the VPP operating cost under the worst-case wind power fluctuation scenario. At the same time, the scenario parameters will be brought back to the main problem for further iteration. The subproblem is a two-level max-min optimization problem. By using duality theory, the inner minimization problem is transformed into a maximization problem. The expression of the i-th iteration subproblem after transformation is as follows: (45) (46) (47) (48) In the formula: It is the dual variable matrix of the second-stage constraints.

6. The virtual power plant joint trading method for a multi-level electricity carbon market according to claim 5, characterized in that, In step 4, the specific steps for solving the model are as follows: Based on the principal subproblem, the C&CG algorithm solves the model as follows: Step 4.1: Initialization, setting the number of iterations. upper bound of the objective function The lower realm Set convergence criteria ; Step 4.2: Solve the main problem (41)-(44) to obtain the objective function value of the main problem. Decision variables Update the lower bound of the objective function ; Step 4.3: Substitute the solution to the main problem into equations (45)-(48) to solve the subproblems and obtain the objective function. and the worst scenario and Return equations (43) and (44) to the main problem and update the upper bound of the objective function. ; Step 4.4, convergence test, if If the problem converges and iteration stops, the objective function value is... ; Otherwise, continue iterating. Return to step 2.