Multi-virtual power plant P2P transaction optimization method and device, terminal and medium
By constructing a multi-virtual power plant P2P transaction optimization model and considering the energy storage resources of electric vehicles, the problem that electric vehicle energy storage resources are not considered in the existing technology is solved, and more efficient virtual power plant market participation and grid operation efficiency are achieved.
Patent Information
- Application Number
- CN202411139841.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing P2P optimization strategies for multiple virtual power plants do not consider the energy storage resources of electric vehicles, resulting in imperfect optimization strategies.
By acquiring a distributed resource model and a multi-market transaction model, a multi-virtual power plant P2P transaction optimization model is constructed, considering the equivalent energy storage model of electric vehicles, using the Minkowski method to integrate the revenue generated from the charging and discharging of electric vehicles, and using consensus-based The alternating vector multiplier method solves the optimization model to maximize the total revenue of the virtual power plant.
The P2P optimization strategy of multiple virtual power plants has been improved, the market participation income of virtual power plants and the participation of electric vehicles in the power market have been improved, and the operating efficiency of the power grid and the application of clean energy have been promoted.
Smart Images

Figure CN118674485A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power energy system optimization, and in particular to a multi-virtual power plant P2P transaction optimization method, device, terminal and medium. Background Art
[0002] As a power system operation mode, virtual power plants achieve optimized management and services for power grids by aggregating dispersed distributed energy resources. Through P2P (peer-to-peer) transactions, each virtual power plant can make independent decisions to buy and sell electricity based on the real-time status of its own resources and market demand to achieve optimal energy allocation. This trading method reduces dependence on centralized power markets. In addition, P2P transactions also help reduce transaction costs, improve system response speed and flexibility, and provide new solutions for the stable operation of power systems.
[0003] However, the existing P2P optimization strategy for multiple virtual power plants does not take into account the energy storage resources of electric vehicles, which leads to the imperfect P2P optimization strategy for multiple virtual power plants.
[0004] Therefore, the prior art has defects and needs to be improved and developed. Summary of the invention
[0005] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a multi-virtual power plant P2P transaction optimization method, device, terminal and medium are provided, aiming to solve the problem that the P2P optimization strategy of multiple virtual power plants in the prior art does not take into account the energy storage resources of electric vehicles, thereby resulting in the imperfect P2P optimization strategy of multiple virtual power plants.
[0006] The technical solution adopted by the present invention to solve the technical problem is as follows: A method for optimizing P2P transactions of multiple virtual power plants, wherein the method comprises: Access pre-built distributed resource models and multi-market trading models for multiple virtual power plants; Determine the distributed resource information of each virtual power plant according to the distributed resource model, and determine the multi-market transaction information according to the multi-market transaction model, wherein the distributed resource information includes the income generated by the virtual power plant due to the charging and discharging of electric vehicles; A multi-virtual power plant P2P transaction optimization model is constructed based on the distributed resource information and multi-market transaction information. The multi-virtual power plant P2P transaction optimization model is solved with the maximization of the total revenue of the multi-virtual power plants as the optimization goal to obtain the collaborative optimization results among the virtual power plants.
[0007] In one embodiment of the present application, the distributed resource model includes: a gas turbine system model, a flexible load model, an energy storage system model, a renewable energy power generation system model, and an electric vehicle equivalent energy storage model; Determining distributed resource information of each virtual power plant according to the distributed resource model includes: determining a total cost of a gas turbine system based on the gas turbine system model; Determine the revenue generated by the virtual power plant due to load power demand according to the flexible load model; Determining the total cost of the energy storage system according to the energy storage system model; Determining the total cost of the renewable energy power generation system according to the renewable energy power generation system model; Determine the revenue generated by the virtual power plant due to the charging and discharging of electric vehicles based on the electric vehicle equivalent energy storage model; The total cost of the gas turbine system, the revenue generated by the virtual power plant due to load power demand, the total cost of the energy storage system, the total cost of the renewable energy power generation system, and the revenue generated by the virtual power plant due to charging and discharging of electric vehicles are saved as distributed resource information.
[0008] In one embodiment of the present application, the electric vehicle equivalent energy storage model is obtained by modeling the equivalent energy storage of a single electric vehicle, integrating the equivalent energy storage of all electric vehicles through the Minkowski method, and introducing the energy equivalent changes caused by the individual electric vehicles being connected to the grid and off-grid.
[0009] In one embodiment of the present application, the multi-market trading model includes: an electric energy market trading model, a frequency regulation auxiliary service market trading model and a carbon market trading model; Determining multi-market transaction information according to the multi-market transaction model includes: Determine the revenue of the electric energy market according to the electric energy market transaction model; Determine the revenue of the frequency regulation market according to the frequency regulation ancillary service market transaction model; Determine the carbon trading cost according to the carbon market trading model; The revenue of the electric energy market, the revenue of the frequency regulation market and the carbon trading cost are saved as multi-market transaction information.
[0010] In one embodiment of the present application, the carbon emission sources in the carbon market trading model include: purchased electricity and micro gas turbines within the virtual power plant; The carbon market trading model is constructed based on the free carbon emission quota of the virtual power plant and the actual carbon emission of the purchased electricity and the micro gas turbines within the virtual power plant; The free carbon emission quota is expressed based on the free carbon quota per unit of electricity, the electricity purchased by the virtual power plant in a unit period, the power output of the micro gas turbine in a unit period, and the power generation efficiency of the micro gas turbine; The actual carbon emission amount is expressed based on the electricity purchased by the virtual power plant in a unit time period, the power output of the micro gas turbine in a unit time period, the power generation efficiency of the micro gas turbine, the first preset carbon emission calculation coefficient of the purchased electricity, and the second carbon emission calculation coefficient of the micro gas turbine inside the virtual power plant.
[0011] In one embodiment of the present application, a multi-virtual power plant P2P transaction optimization model is constructed based on the distributed resource information and multi-market transaction information, and the multi-virtual power plant P2P transaction optimization model is solved with the maximum total revenue of the multi-virtual power plants as the optimization goal to obtain the collaborative optimization results between the virtual power plants, including: Determine the benefits of a single virtual power plant participating in P2P transactions; Building a multi-virtual power plant P2P transaction optimization model based on the income obtained by a single virtual power plant participating in P2P transactions, the distributed resource information and multi-market transaction information; Taking the maximization of the total revenue of multiple virtual power plants as the optimization goal and satisfying the power balance constraint, the multi-virtual power plant P2P transaction optimization model is solved to obtain the collaborative optimization results among the virtual power plants.
[0012] In one embodiment of the present application, solving the multi-virtual power plant P2P transaction optimization model includes: The consensus-based alternating vector multiplier method is used to solve the multi-virtual power plant P2P transaction optimization model.
[0013] The present invention also provides a multi-virtual power plant P2P transaction optimization device, wherein the device comprises: A building block for acquiring pre-built distributed resource models and multi-market transaction models for multiple virtual power plants; A determination module, configured to determine the distributed resource information of each virtual power plant according to the distributed resource model, and determine the multi-market transaction information according to the multi-market transaction model, wherein the distributed resource information includes the revenue generated by the virtual power plant due to the charging and discharging of electric vehicles; A solution module is used to construct a multi-virtual power plant P2P transaction optimization model based on the distributed resource information and multi-market transaction information, solve the multi-virtual power plant P2P transaction optimization model with the maximum total revenue of the multi-virtual power plants as the optimization goal, and obtain the collaborative optimization results among the virtual power plants.
[0014] The present invention also provides a terminal, which includes: a memory, a processor, and a multi-virtual power plant P2P transaction optimization program stored in the memory and executable on the processor, wherein the multi-virtual power plant P2P transaction optimization program, when executed by the processor, implements the steps of the multi-virtual power plant P2P transaction optimization method as described above.
[0015] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can be executed to implement the steps of the multi-virtual power plant P2P transaction optimization method as described above.
[0016] The present invention provides a multi-virtual power plant P2P transaction optimization method, device, terminal and medium, the method comprising: obtaining a pre-constructed distributed resource model and a multi-market transaction model of multiple virtual power plants; determining the distributed resource information of each virtual power plant according to the distributed resource model, and determining the multi-market transaction information according to the multi-market transaction model, wherein the distributed resource information includes the revenue generated by the virtual power plant due to the charging and discharging of electric vehicles; constructing a multi-virtual power plant P2P transaction optimization model according to the distributed resource information and the multi-market transaction information, solving the multi-virtual power plant P2P transaction optimization model with the maximum total revenue of the multi-virtual power plant as the optimization goal, and obtaining the collaborative optimization results among the virtual power plants. The present invention improves the P2P optimization strategy of multiple virtual power plants by considering the energy storage resources of electric vehicles in the P2P optimization strategy of multiple virtual power plants, and improves the revenue of multiple virtual power plants participating in multiple markets and the participation of electric vehicles in the power market. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flow chart of a preferred embodiment of the multi-virtual power plant P2P transaction optimization method of the present invention; Figure 2 It is a functional principle block diagram of a preferred embodiment of a multi-virtual power plant P2P transaction optimization device in the present invention; Figure 3 It is a functional principle block diagram of a preferred embodiment of the terminal in the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0019] See also Figure 1 , Figure 1 Flowchart of the multi-virtual power plant P2P transaction optimization method in the present invention. Figure 1As shown, the multi-virtual power plant P2P transaction optimization method described in the embodiment of the present invention includes: Step S100: Acquire a pre-built distributed resource model and a multi-market transaction model of multiple virtual power plants.
[0020] Each virtual power plant in the embodiment of the present invention is composed of different distributed resources. Each virtual power plant contains a total of five different types of distributed resources, namely gas turbines, renewable energy power generation systems, flexible loads, energy storage systems, and electric vehicle equivalent energy storage.
[0021] like Figure 1 As shown, the multi-virtual power plant P2P transaction optimization method described in this embodiment also includes: Step S200: determine the distributed resource information of each virtual power plant according to the distributed resource model, and determine the multi-market transaction information according to the multi-market transaction model, wherein the distributed resource information includes the income generated by the virtual power plant due to the charging and discharging of electric vehicles.
[0022] In an embodiment of the present application, the distributed resource model includes: a gas turbine system model, a flexible load model, an energy storage system model, a renewable energy power generation system model, and an electric vehicle equivalent energy storage model.
[0023] The step S200 of "determining the distributed resource information of each virtual power plant according to the distributed resource model" includes: determining the total cost of the gas turbine system according to the gas turbine system model; determining the income generated by the virtual power plant due to load power demand according to the flexible load model; determining the total cost of the energy storage system according to the energy storage system model; determining the total cost of the renewable energy power generation system according to the renewable energy power generation system model; determining the income generated by the virtual power plant due to charging and discharging of electric vehicles according to the electric vehicle equivalent energy storage model; and saving the total cost of the gas turbine system, the income generated by the virtual power plant due to load power demand, the total cost of the energy storage system, the total cost of the renewable energy power generation system and the income generated by the virtual power plant due to charging and discharging of electric vehicles as distributed resource information.
[0024] As a highly flexible resource, gas turbines play an important role in energy conversion and power supply due to their high efficiency, flexibility and environmental protection. In one embodiment of the present application, the gas turbine system model is: ; ; ; ; ; ; In the formula, is the number of gas turbines, It is a gas turbine exist Output power during the trading period, To represent the gas turbine A 0-1 variable indicating whether it is currently running. and Gas turbine The minimum and maximum power limits, It is a gas turbine The maximum ramp rate, , and It is a gas turbine The cost constant, and Gas turbine The startup and shutdown costs, It is a gas turbine middle The cost of use during the trading session, It is a gas turbine exist Total cost during the trading session, is the total cost of the gas turbine system; For the time interval.
[0025] Unlike non-adjustable loads, flexible loads can be adjusted based on demand response, which will respond to price signals or incentives to change demand patterns to minimize costs.
[0026] In one embodiment, the flexible load model is: ; ; ; In the formula, for The flexible load demand during the trading period when no demand response is involved. for The flexible load demand after participating in demand response during the trading period, is the maximum load ratio that can be transferred, is the revenue generated by the virtual power plant due to load power demand, is the electricity price sold by the virtual power plant to load users, Subsidies to demand response users for virtual power plants, Indicates the total trading session.
[0027] In one embodiment, the energy storage system can store energy when electricity demand peaks or there is an oversupply of renewable energy, and release energy when demand is low, thereby achieving a balance between supply and demand. By quickly responding to the charging and discharging of the energy storage system, it can participate in grid frequency regulation and enhance the stability and reliability of the grid. It can also smooth the intermittency of renewable energy, increase its grid-connected ratio, and promote the use of clean energy.
[0028] The energy storage system model is: ; ; , ; , ; ; ; In the formula, is the total cost of the energy storage system, A single energy storage device The total manufacturing cost is amortized to the unit time manufacturing cost over the entire life cycle. is the number of energy storage devices, is the cost coefficient of energy storage, and Energy storage devices exist Charging power and discharging power during the trading period, It is an energy storage device exist Energy levels during the trading session, and Energy storage devices exist Charging efficiency and discharging efficiency during the trading period, and Energy storage devices The lower and upper limits of charge and discharge power, It is an energy storage device The initial energy level, is the time interval, It is an energy storage device The capacity, and Respectively represent energy storage devices Constraints on lower and upper bounds on energy levels.
[0029] In one embodiment, renewable energy is composed of photovoltaic and wind power generation, and the cost model is as follows: ; In the formula, is the total cost of renewable energy, The total manufacturing cost of the photovoltaic system is amortized to the unit time manufacturing cost over the entire life cycle. The total manufacturing cost of the wind power system is amortized to the unit time manufacturing cost of the entire life cycle. is the operation and maintenance cost of the photovoltaic system per unit time, is the operation and maintenance cost of the wind power system per unit time, For the time interval.
[0030] In an embodiment of the present application, the electric vehicle equivalent energy storage model is obtained by modeling the equivalent energy storage of a single electric vehicle, integrating the equivalent energy storage of all electric vehicles through the Minkowski method, and introducing the energy equivalent changes caused by the individual electric vehicles being connected to the grid and off-grid.
[0031] Specifically, electric vehicles can not only charge when the grid load is low and discharge during peak hours, effectively shaving peak loads and filling valleys, and enhancing the peak-shaving capacity of the grid, but also use their batteries as equivalent energy storage units to improve the flexibility of grid operation and better integrate renewable energy. The modeling of a single electric vehicle in the example of the present invention is as follows: ; ; ; ; ; ; ; ; ; In the formula, and Electric vehicles exist Charging power and discharging power during the trading period; It is a 0-1 variable, which ensures that the electric vehicle will not be charged and discharged at the same time; is the maximum value of charge and discharge power; and Electric vehicles Arrival and departure times at charging stations; and are the charging efficiency and discharging efficiency of electric vehicles respectively; For electric vehicles Capacity; and It's an electric car exist Lower and upper limits on energy levels during trading sessions; For electric vehicles the desired energy level when leaving the charging station, Electric Vehicles Actual energy level when leaving the charging station, It's an electric car exist Energy levels during the trading session, is the time interval, Indicates the total trading session.
[0032] Since the dispatchable domain of electric vehicles has Minkowski additivity, under the premise of meeting the charging demand of electric vehicles, the Minkowski method can be used to sum up and map the dispatchable domains of all electric vehicles in the same dispatch period to obtain the equivalent energy storage dispatchable domain of the electric vehicle cluster. At the same time, considering that the instant of individual electric vehicles connecting and disconnecting from the grid will cause a sudden change in the equivalent energy storage dispatchable domain, the variable To represent the energy equivalent change caused by individual electric vehicles being connected to and off the grid. In the embodiment of the present invention, the modeling of the equivalent energy storage of electric vehicle clusters is as follows: ; ; ; ; ; ; In the formula, is a 0-1 variable; is the number of electric vehicles; For equivalent storage Charging power during trading hours; For equivalent storage Discharge power during the trading period; and The equivalent storage The maximum value of the charging power and the maximum value of the discharging power during the trading period are 0-1 variables to ensure that equivalent storage energy cannot be charged and discharged at the same time; For equivalent storage Equivalent electricity volume during the trading period; and Charging efficiency and discharging efficiency of electric vehicles; The energy equivalent change generated by individual electric vehicles and off-grid operation; For electric vehicles The initial charge at the charging station, For electric vehicles The desired charge level when leaving the charging station; It is a 0-1 variable. When it is 1, it means that the electric vehicle can interact with the charging station. and are the lower and upper limits of the equivalent energy storage capacity; The revenue generated by the virtual power plant due to the charging and discharging of electric vehicles; charging prices for electric vehicles; Subsidize the price of electric vehicle discharge; For the time interval.
[0033] In an embodiment of the present application, the multi-market trading model includes: an electric energy market trading model, a frequency regulation auxiliary service market trading model and a carbon market trading model. The multi-market trading information is determined based on the pre-built multi-market trading model, including: determining the revenue of the electric energy market according to the electric energy market trading model; determining the revenue of the frequency regulation market according to the frequency regulation auxiliary service market trading model; determining the carbon trading cost according to the carbon market trading model; and saving the revenue of the electric energy market, the revenue of the frequency regulation market and the carbon trading cost as multi-market trading information.
[0034] Specifically, in addition to being able to choose to trade electric energy with the electricity market, virtual power plants can also participate in the frequency regulation ancillary service market and the carbon trading market, and deeply tap the regulation potential of aggregation units to maximize the benefits of virtual power plants.
[0035] In one embodiment, virtual power plants can participate in the medium- and long-term markets and spot markets of the electricity market, and virtual power plants can be considered to participate in the day-ahead electricity energy market. At present, the implementation of the spot electricity energy market is still in the exploratory stage, and the main mechanism adopted is the full electricity quantity declaration and centralized optimization clearing. In this mode, power generation enterprises need to provide electricity quantity and price, while the user side only needs to declare the quantity. During the market clearing process, the system will sort all the quotations on the power generation side in ascending order, with the goal of minimizing the cost of purchasing electricity or maximizing social welfare, and determine the clearing results of each market entity through a centralized optimization algorithm. For virtual power plants that integrate a variety of distributed energy resources, due to their relatively small scale of aggregation, the competitiveness of participating in the market through the form of quotation is not strong, and the influence on the final centralized clearing price is limited. In view of this, small virtual power plants are more suitable to participate in the day-ahead electricity energy market as market price acceptors. The electricity they declare in the day-ahead market will be traded mainly according to the market centralized clearing price, so as to ensure the effectiveness of their market participation and the stability of their income.
[0036] The electric energy market transaction model is: ; In the formula, is the revenue from the electricity energy market, and These are the prices for purchasing and selling electricity in the power market. In order to prevent arbitrage by virtual power plants, the purchase price of electricity by virtual power plants is generally higher than the sales price. and The amounts of electricity purchased and sold by the virtual power plant from the electricity market are respectively.
[0037] In one embodiment, the virtual power plant can provide fast-response frequency regulation services using distributed energy resources it controls, such as energy storage devices, electric vehicles, etc. This service is essential for maintaining the frequency stability of the power grid and therefore usually earns a higher market return.
[0038] The revenue from the frequency regulation market includes frequency regulation mileage compensation and frequency regulation capacity compensation. The transaction model of the frequency regulation ancillary service market is: ; In the formula, For the revenue of the frequency regulation ancillary services market, and They are the frequency regulation capacity and mileage compensation price in the day-ahead frequency regulation market; Frequency regulation capacity declared for the frequency regulation market; is the average mileage call rate; It is the normalized historical comprehensive frequency regulation performance index of the virtual power plant.
[0039] In an embodiment of the present application, the carbon emission sources in the carbon market trading model include: purchased electricity and micro gas turbines inside the virtual power plant. The carbon market trading model is constructed based on the unpaid carbon emission quota of the virtual power plant and the actual carbon emission amount of the purchased electricity and the micro gas turbine inside the virtual power plant; the unpaid carbon emission quota is expressed based on the unpaid carbon quota per unit of electricity, the electricity purchased by the virtual power plant in a unit time period, the power output of the micro gas turbine in a unit time period, and the power generation efficiency of the micro gas turbine. The actual carbon emission amount is expressed based on the electricity purchased by the virtual power plant in a unit time period, the power output of the micro gas turbine in a unit time period, the power generation efficiency of the micro gas turbine, the first preset carbon emission calculation coefficient of the purchased electricity, and the second carbon emission calculation coefficient of the micro gas turbine inside the virtual power plant.
[0040] Specifically, there are three types of carbon emission quota allocation methods: paid allocation mode, free allocation mode and mixed mode. At present, the power industry adopts a free allocation mode based on the baseline method.
[0041] The carbon emission sources in the carbon market trading model mainly come from the electricity purchased by the virtual power plant and the micro gas turbines inside the virtual power plant. for: ; In the formula, Free carbon quota per unit of electricity; for The electricity purchased by the virtual power plant during the trading period; for The power output of the microturbine during the trading period; is the power generation efficiency of the micro gas turbine.
[0042] Assuming that the power purchased by the virtual power plant is provided by thermal power units, the actual carbon emissions of the purchased power and the gas turbines in the virtual power plant are The calculation formula is: ; In the formula, , , The carbon emission calculation coefficient for the purchased power thermal power units; , , is the carbon emission calculation coefficient of the micro gas turbine inside the virtual power plant.
[0043] The present invention is set as a carbon emission rights trading mode. Virtual power plants can trade carbon emission rights. The carbon trading cost is It can be expressed as: ; In the formula, is the unit price of carbon trading on that day, is the actual carbon emissions of the virtual power plant, is the carbon emission quota of the virtual power plant. If it is positive, it means the payment exceeds the free carbon quota. Otherwise, it is the compensation income when the actual carbon emissions are lower than the free quota.
[0044] The virtual power plant of the embodiment of the present application can participate in the electricity-carbon-frequency regulation market, achieve coordinated optimization of energy and carbon emissions through real-time electricity price signals and carbon emission indicators, and participate in the frequency regulation auxiliary service market by utilizing the rapid response characteristics of electric vehicles and energy storage.
[0045] like Figure 1 As shown, the multi-virtual power plant P2P transaction optimization method described in this embodiment also includes: Step S300: construct a multi-virtual power plant P2P transaction optimization model based on the distributed resource information and multi-market transaction information, solve the multi-virtual power plant P2P transaction optimization model with the maximum total revenue of the multi-virtual power plants as the optimization goal, and obtain the collaborative optimization results among the virtual power plants.
[0046] Specifically, in the current electricity market system, in addition to interacting with the main grid, virtual power plants can interact with other virtual power plants through P2P transactions. The multi-virtual power plant P2P transaction optimization model of the embodiment of the present application is a virtual power plant participating in the electricity-carbon-frequency regulation joint market optimization model.
[0047] In an embodiment of the present application, the step S300 specifically includes: determining the benefits obtained by a single virtual power plant participating in P2P transactions; constructing a P2P transaction optimization model for multiple virtual power plants based on the benefits obtained by a single virtual power plant participating in P2P transactions, the distributed resource information and multi-market transaction information; solving the P2P transaction optimization model for multiple virtual power plants with the maximum total benefits of multiple virtual power plants as the optimization goal and satisfying the power balance constraint, and obtaining the collaborative optimization results among the virtual power plants.
[0048] In one embodiment, the aggregated units included in the multiple virtual power plants are not exactly the same, but generally include gas turbines, renewable energy generation systems, flexible loads, energy storage systems, and electric vehicle equivalent energy storage. For , the optimization goal is to maximize the total revenue. The multi-virtual power plant P2P transaction optimization model is as follows: Objective function: ; In the formula, is the trading session; Virtual Power Plant The benefits of participating in the electric energy market; Virtual Power Plant Benefits of participating in the frequency regulation ancillary services market; To generate a virtual power plant due to the electricity consumption of electric vehicles of income; To generate a virtual power plant due to flexible load electricity consumption behavior of income; Virtual Power Plant the cost of internal renewable energy generation systems; Virtual Power Plant The cost of internal energy storage systems; Virtual Power Plant the cost of the internal gas turbine; Virtual Power Plant of carbon trading costs.
[0049] Constraints: In addition to the constraints in the above distributed resource models, the power balance constraints should also be met: ; In the formula, is the amount of electricity sold by the virtual power plant from the electricity market, Frequency regulation capacity declared for the frequency regulation market, for The electricity purchased by the virtual power plant during the trading period, For photovoltaic The amount of electricity generated during the trading period, For wind power The amount of electricity generated during the trading period, Virtual Power Plant The output power of the gas turbine is for The flexible load demand after participating in demand response during the trading period, Virtual Power Plant Energy storage equipment in Charging power during trading hours, Virtual Power Plant Energy storage equipment in Discharge power during the trading period, Virtual Power Plant The charging power of the equivalent energy storage of electric vehicles, Virtual Power Plant The discharge power of the equivalent energy storage of electric vehicles.
[0050] For the P2P trading optimization model of multiple virtual power plants, virtual power plants can choose to trade with other virtual power plants and participate in P2P power sharing. Since the electricity sold by virtual power plants is generated by renewable energy and gas turbines, it is not convenient to measure carbon emissions in P2P transactions. Therefore, only the electricity energy transactions between virtual power plants are considered in the examples of the present invention.
[0051] Virtual Power Plant Profits from participating in P2P transactions as follows: ; ; In the formula, is the number of virtual power plants; Virtual Power Plant Virtual Power Plant The amount of electricity sold; Virtual Power Plant Virtual Power Plant The price at which electricity is sold; Virtual Power Plant From virtual power plant The amount of electricity purchased; Virtual Power Plant Virtual Power Plant The price at which electricity is sold. Virtual power plant during trading hours From virtual power plant The amount of electricity purchased should be Virtual power plant during trading hours Virtual Power Plant The amount of electricity sold is equal.
[0052] The objective function of the multi-virtual power plant P2P transaction optimization model is the total revenue of each virtual power plant Maximum cumulative value: ; At this time, the power balance constraint should also include the power of P2P transactions, as follows: .
[0053] In an embodiment of the present application, solving the multi-virtual power plant P2P transaction optimization model includes: solving the multi-virtual power plant P2P transaction optimization model using a consensus-based alternating vector multiplier method.
[0054] Specifically, the multi-virtual power plant P2P transaction optimization model is a linearly constrained quadratic convex optimization problem, which can be decomposed into To solve this problem, the consensus-based alternating vector multiplier method (ADMM) algorithm is adopted to achieve transaction consistency and collaborative optimization among virtual power plants by promoting information exchange and collaboration, thus improving the adaptability, flexibility and solution efficiency of the algorithm.
[0055] The global consensus problem can be expressed as: ; In the formula, is the objective function of the sub-problem; is the variable of the sub-problem, Common global variables.
[0056] Its augmented Lagrangian form is: ; In the formula, is the dual variable; is the penalty factor. The iteration process of the variables is as follows: ; ; ; In the formula, is the number of iterations; Subproblem variables The iterative average value of .
[0057] In the P2P model of the present invention, each virtual power plant needs to reach a consensus on the amount of electricity, that is, the local variable in ADMM , common global variables , we can get: ; In the formula, represents the total revenue of each virtual power plant, for The dual variable of is the penalty factor. The iteration process of the original variable and the dual variable is as follows: ; ; in, Indicates the number of subproblems.
[0058] The consensus-based ADMM convergence must satisfy the original residual and The iterative stopping condition of the dual residual is as follows: ; ; In the formula, and are the upper tolerance limits of the primal residual and the dual residual, respectively.
[0059] The P2P optimization strategy of multiple virtual power plants in the embodiment of the present application can not only improve the operating efficiency of the power grid and reduce operating costs, but also promote the wider application of clean energy, which is of great significance to achieving the sustainable development of energy and carbon neutrality goals.
[0060] In one embodiment, if Figure 2 As shown, based on the above-mentioned multi-virtual power plant P2P transaction optimization method, the present invention also provides a multi-virtual power plant P2P transaction optimization device, including: A construction module 100 is used to obtain a pre-constructed distributed resource model and a multi-market transaction model of multiple virtual power plants; A determination module 200, configured to determine distributed resource information of each virtual power plant according to the distributed resource model, and to determine multi-market transaction information according to the multi-market transaction model, wherein the distributed resource information includes the revenue generated by the virtual power plant due to charging and discharging of electric vehicles; The solution module 300 is used to construct a multi-virtual power plant P2P transaction optimization model based on the distributed resource information and multi-market transaction information, solve the multi-virtual power plant P2P transaction optimization model with the maximum total revenue of the multi-virtual power plants as the optimization goal, and obtain the collaborative optimization results among the virtual power plants.
[0061] Figure 3 A schematic diagram of the structure of a terminal provided in an embodiment of the present application. The terminal may include: A memory 501 , a processor 502 , and a computer program stored in the memory 501 and executable on the processor 502 .
[0062] When the processor 502 executes the program, the multi-virtual power plant P2P transaction optimization method provided in the above embodiment is implemented.
[0063] Furthermore, the terminal further includes: The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0064] The memory 501 is used to store computer programs that can be executed on the processor 502 .
[0065] The memory 501 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0066] If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0067] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0068] The processor 502 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0069] This embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned multi-virtual power plant P2P transaction optimization method.
[0070] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0071] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0072] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes additional implementations, in which the order shown or discussed may not be followed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0073] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can read instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary and then storing it in a computer memory.
[0074] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0075] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0076] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0077] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
[0078] In summary, the present invention discloses a multi-virtual power plant P2P transaction optimization method, device, terminal and medium, the method comprising: obtaining a pre-constructed distributed resource model and multi-market transaction model of multiple virtual power plants; determining the distributed resource information of each virtual power plant according to the distributed resource model, and determining the multi-market transaction information according to the multi-market transaction model, wherein the distributed resource information includes the revenue generated by the virtual power plant due to the charging and discharging of electric vehicles; constructing a multi-virtual power plant P2P transaction optimization model according to the distributed resource information and the multi-market transaction information, solving the multi-virtual power plant P2P transaction optimization model with the maximum total revenue of the multi-virtual power plant as the optimization goal, and obtaining the collaborative optimization results among the virtual power plants. The present invention improves the P2P optimization strategy of multiple virtual power plants by considering the energy storage resources of electric vehicles in the P2P optimization strategy of multiple virtual power plants, and improves the revenue of multiple virtual power plants participating in multiple markets and the participation of electric vehicles in the electricity market.
[0079] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A multi-virtual power plant P2P transaction optimization method, characterized in that: The method comprises: Access pre-built distributed resource models and multi-market trading models for multiple virtual power plants; Determine the distributed resource information of each virtual power plant according to the distributed resource model, and determine the multi-market transaction information according to the multi-market transaction model, wherein the distributed resource information includes the income generated by the virtual power plant due to the charging and discharging of electric vehicles; A multi-virtual power plant P2P transaction optimization model is constructed based on the distributed resource information and multi-market transaction information. The multi-virtual power plant P2P transaction optimization model is solved with the maximization of the total revenue of the multi-virtual power plants as the optimization goal to obtain the collaborative optimization results among the virtual power plants.
2. The multi-virtual power plant P2P transaction optimization method according to claim 1 is characterized in that: The distributed resource model includes: a gas turbine system model, a flexible load model, an energy storage system model, a renewable energy power generation system model and an electric vehicle equivalent energy storage model; Determining distributed resource information of each virtual power plant according to the distributed resource model includes: determining a total cost of a gas turbine system based on the gas turbine system model; Determine the revenue generated by the virtual power plant due to load power demand according to the flexible load model; Determining the total cost of the energy storage system according to the energy storage system model; Determining the total cost of the renewable energy power generation system according to the renewable energy power generation system model; Determine the revenue generated by the virtual power plant due to the charging and discharging of electric vehicles according to the electric vehicle equivalent energy storage model; The total cost of the gas turbine system, the revenue generated by the virtual power plant due to load power demand, the total cost of the energy storage system, the total cost of the renewable energy power generation system, and the revenue generated by the virtual power plant due to charging and discharging of electric vehicles are saved as distributed resource information.
3. The multi-virtual power plant P2P transaction optimization method according to claim 2 is characterized in that: The electric vehicle equivalent energy storage model is obtained by modeling the equivalent energy storage of a single electric vehicle, integrating the equivalent energy storage of all electric vehicles through the Minkowski method, and introducing the energy equivalent changes caused by the individual electric vehicles being connected to and off the grid.
4. The multi-virtual power plant P2P transaction optimization method according to claim 1 is characterized in that: The multi-market trading model includes: an electric energy market trading model, a frequency regulation auxiliary service market trading model and a carbon market trading model; Determining multi-market transaction information according to the multi-market transaction model includes: Determine the revenue of the electric energy market according to the electric energy market transaction model; Determine the revenue of the frequency regulation market according to the frequency regulation ancillary service market transaction model; Determine the carbon trading cost according to the carbon market trading model; The revenue of the electric energy market, the revenue of the frequency regulation market and the carbon trading cost are saved as multi-market transaction information.
5. The multi-virtual power plant P2P transaction optimization method according to claim 4 is characterized in that: The carbon emission sources in the carbon market trading model include: purchased electricity and micro gas turbines within the virtual power plant; The carbon market trading model is constructed based on the free carbon emission quota of the virtual power plant and the actual carbon emission of the purchased electricity and the micro gas turbines within the virtual power plant; The free carbon emission quota is expressed based on the free carbon quota per unit of electricity, the electricity purchased by the virtual power plant in a unit period, the power output of the micro gas turbine in a unit period, and the power generation efficiency of the micro gas turbine; The actual carbon emission amount is expressed based on the electricity purchased by the virtual power plant in a unit time period, the power output of the micro gas turbine in a unit time period, the power generation efficiency of the micro gas turbine, the first preset carbon emission calculation coefficient of the purchased electricity, and the second carbon emission calculation coefficient of the micro gas turbine inside the virtual power plant.
6. The multi-virtual power plant P2P transaction optimization method according to claim 1 is characterized in that: A multi-virtual power plant P2P transaction optimization model is constructed based on the distributed resource information and multi-market transaction information, and the multi-virtual power plant P2P transaction optimization model is solved with the maximum total revenue of the multi-virtual power plants as the optimization goal to obtain the collaborative optimization results among the virtual power plants, including: Determine the benefits of a single virtual power plant participating in P2P transactions; Building a multi-virtual power plant P2P transaction optimization model based on the income obtained by a single virtual power plant participating in P2P transactions, the distributed resource information and multi-market transaction information; Taking the maximization of the total revenue of multiple virtual power plants as the optimization goal and satisfying the power balance constraint, the multi-virtual power plant P2P transaction optimization model is solved to obtain the collaborative optimization results among the virtual power plants.
7. The multi-virtual power plant P2P transaction optimization method according to claim 6 is characterized in that: Solving the multi-virtual power plant P2P transaction optimization model includes: The consensus-based alternating vector multiplier method is used to solve the multi-virtual power plant P2P transaction optimization model.
8. A multi-virtual power plant P2P transaction optimization device, characterized in that: The device comprises: A building block for acquiring pre-built distributed resource models and multi-market transaction models for multiple virtual power plants; A determination module, configured to determine the distributed resource information of each virtual power plant according to the distributed resource model, and determine the multi-market transaction information according to the multi-market transaction model, wherein the distributed resource information includes the revenue generated by the virtual power plant due to the charging and discharging of electric vehicles; A solution module is used to construct a multi-virtual power plant P2P transaction optimization model based on the distributed resource information and multi-market transaction information, solve the multi-virtual power plant P2P transaction optimization model with the maximum total revenue of multiple virtual power plants as the optimization goal, and obtain the collaborative optimization results among the virtual power plants.
9. A terminal, characterized in that: include: A memory, a processor, and a multi-virtual power plant P2P transaction optimization program stored in the memory and executable on the processor, wherein the multi-virtual power plant P2P transaction optimization program, when executed by the processor, implements the steps of the multi-virtual power plant P2P transaction optimization method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which can be executed to implement the steps of the multi-virtual power plant P2P transaction optimization method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Minkowski sum-based large-scale electric vehicle cluster characteristic analysis method and system
CN114398723A
Point-to-point transaction method for multiple virtual power plants, electronic equipment and storage medium
CN115438906A
Multi-virtual power plant random optimization scheduling method based on P2P transaction
CN116228461A
Virtual power plant scheduling method and system, storage medium and equipment
CN117439080A
Multi-energy virtual power plant distributed point-to-point electric heating carbon joint transaction method based on CVaR
CN117575709A
