Cross-regional inter-provincial spot goods segmented quantity price declaration optimization method and system

By constructing a path combination network structure and a two-layer model of power purchasing entities and electricity selling entities, combined with a multi-agent game algorithm, the electricity purchasing strategy is optimized, and the power purchasing method in the existing technology fails to effectively consider the medium and long-term contract power and channels. This improves the accuracy and economy of power purchase results.

CN118821995APending Publication Date: 2024-10-22STATE GRID JIANGSU ELECTRIC POWER CO LTD MARKETING SERVICE CENT +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410800828.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing power purchase methods fail to effectively consider the medium- and long-term contract power and the channel conditions between multiple power purchase entities, resulting in insufficient timing of declaration strategies, affecting the accuracy of volume and price declaration results, and reducing the economic benefits of power purchase entities.

Method used

Using the cross-regional and inter-provincial spot segmented volume and price declaration optimization method, by constructing a path combination network structure between power purchasing entities and electricity selling entities, a two-layer model is established to optimize electricity purchase costs and social welfare, combining multi-agent and environment Reinforcement learning algorithm of interactive game to optimize power purchase strategy.

Benefits of technology

It improves the calculation accuracy of power purchase results, reduces power transmission costs, realizes the optimal allocation of power resources, enhances the economy of power purchasers, and is suitable for power market environments with multiple time scales and multiple spatial scales.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118821995A_ABST
    Figure CN118821995A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-regional inter-province spot goods segmented price declaration optimization method and system. The method comprises the following steps: acquiring inter-province and in-province basic data of an electricity purchasing subject; optimizing an inter-province spot electricity purchasing path to obtain a one-to-one path combination network structure between each electricity purchasing main body and each electricity selling main body; the method comprises the following steps: constructing an upper-layer model with the minimum total electricity purchasing cost of an electricity purchasing subject in an inter-province and intra-province two-level market as a target and an inter-province spot market clearing lower-layer model with the maximum social welfare as a target, and obtaining a multi-subject inter-province spot application double-layer model; constructing constraint conditions of the double-layer model based on the basic data and the path combination network structure; and solving the double-layer model in combination with the constraint condition to obtain an inter-provincial spot declaration strategy of the electricity purchasing subject. According to the optimized strategy, the electricity purchasing cost can be effectively reduced, the economical efficiency of each electricity purchasing main body is improved, and the optimal configuration effect of inter-provincial electricity resources is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power market transactions, and in particular to a method and system for optimizing cross-regional and inter-provincial spot segmented quantity and price declaration. Background Art

[0002] At present, my country presents the characteristics of reverse distribution of resource endowment and electricity load. The electricity load is concentrated in the eastern and central regions of my country, while resources such as coal, wind, solar and water are distributed in the western and northern regions of my country. With the continuous deepening of the construction of the national unified power market, it is necessary to make full use of the surplus transmission capacity of inter-provincial channels to carry out cross-provincial and cross-regional power surplus and shortage mutual assistance to alleviate the imbalance of power supply and demand within each province. With the continuous improvement of my country's inter-provincial spot market, it has formed inter-provincial power spot transactions with multiple power source trading varieties and cross-regional and cross-provincial power. In the context of provincial power grids as the main power purchaser, it is necessary to combine the inter-provincial spot market clearing mechanism to formulate the power purchase method and system for power purchasers to participate in the inter-provincial spot market.

[0003] At present, the existing research on power purchase methods focuses on the spot time scale, without considering the medium- and long-term contract power factors, resulting in insufficient timing connection of the declaration strategy, and the power purchase plan only considers the best at the spot scale, failing to form the optimal configuration of multiple time scales; in addition, for the channel situation between multiple power purchase entities, the current research only regards the cross-regional channel as the path between the purchase and sale entities, ignoring the impact of the combination of intra-regional channels and cross-regional channels on costs, lacking the screening and game analysis of major provinces and path combinations, affecting the calculation of the power purchase costs of each entity, resulting in inaccurate calculation of the quantity and price declaration results, reducing the economic benefits of each power purchase entity, and affecting the overall economic efficiency. Therefore, the quantity and price declaration method for inter-provincial power spot transactions across regions and provinces needs to be optimized. Summary of the invention

[0004] In order to solve the deficiencies in the prior art, the present invention provides a method and system for optimizing cross-regional and inter-provincial spot quantity and price declaration, which fully considers key factors such as transmission channel conversion and loss, medium- and long-term contract quantity decomposition, and multi-agent game, further optimizes the inter-provincial spot quantity and price declaration strategy, and realizes the optimal allocation of power resources.

[0005] The present invention adopts the following technical solution.

[0006] In a first aspect, the present invention provides a method for optimizing cross-regional and inter-provincial spot price and quantity declaration, the method comprising:

[0007] Obtain basic data of electricity purchase entities within and across provinces;

[0008] According to the basic data, the inter-provincial spot power purchase path is optimized to obtain a one-to-one path combination network structure between each power purchase entity and each power sales entity;

[0009] Based on the path combination network structure, an upper model is constructed with the goal of minimizing the total power purchase cost of power purchase entities in the inter-provincial and intra-provincial markets, and a lower model of inter-provincial spot market clearing with the goal of maximizing social welfare is constructed, and a multi-agent inter-provincial spot declaration two-layer model is obtained;

[0010] Based on the basic data and the path combination network structure, construct the constraint conditions of the two-layer model;

[0011] The two-layer model is solved in combination with the constraint conditions to obtain the inter-provincial spot declaration strategy of the electricity purchasing entity.

[0012] Optionally, the inter-provincial basic data obtained include the historical declared quantity and price of the inter-provincial spot market of the electricity purchasing entity in each period, the historical clearing quantity and price in each period, the predicted remaining capacity of the channel in each period, the transmission cost of the channel and the network loss rate;

[0013] The basic provincial data obtained include the electricity demand of electricity buyers in different periods, the predicted electricity purchase price in the provincial market, the annual medium- and long-term contract electricity volume, the proportion of electricity consumption in each month to the annual electricity consumption, the proportion of electricity consumption in each period of the typical time-sharing curve of each month, and the output operating parameters of various power sources in the province.

[0014] Optionally, the step of optimizing the inter-provincial spot electricity purchase path according to the basic data includes:

[0015] Obtain the initial channel between each electricity purchasing entity and each electricity selling entity;

[0016] Based on the transmission costs of each channel in the initial channel, the total transmission costs of the path combinations between each electricity purchasing entity and its corresponding electricity selling entity are calculated respectively;

[0017] The path combination with the minimum total transmission cost is used as the single path between every two one-to-one power purchasers and power sellers. The expression is as follows:

[0018]

[0019] In the formula, represents the total transmission cost of a single path between the electricity purchaser k and the electricity seller j; represents the transmission cost of the lth channel between electricity purchaser k and electricity seller j; l represents the shared channel number on the transaction path between electricity purchaser k and electricity seller j; j=1,2,…,J; k=1,2,…,K; J and K represent the total number of electricity purchasers and electricity sellers respectively; r represents the total number of channels between electricity purchaser k and electricity seller j.

[0020] Optionally, the objective function of the upper model is expressed as follows:

[0021]

[0022] In the formula, C k represents the total electricity purchase cost of electricity purchaser k in the inter-provincial and intra-provincial markets; represents the output of the nth type of power source of the power purchaser k in the t period, N represents the number of types of power sources; T represents the total number of time periods; is the predicted electricity purchase price of electricity purchaser k in the provincial market during period t; represents the amount of electricity purchased by electricity purchaser k in the inter-provincial spot market during period t; It represents the clearing price of electricity purchaser k in the inter-provincial spot market during period t.

[0023] Optionally, the objective function of the lower model is expressed as follows:

[0024]

[0025] In the formula, is the price quoted by electricity seller j in period t; is the amount of electricity transmitted on a single path between the electricity purchaser k and the electricity seller j during period t; represents the total transmission cost of a single path between the electricity purchaser k and the electricity seller j; represents the amount of electricity purchased by electricity purchaser k in the inter-provincial spot market during period t; Represents the bid of electricity buyer k in period t.

[0026] Optionally, the price quoted by the electricity seller j in period t The calculation formula is as follows:

[0027]

[0028] In the formula, is the maximum value of the electricity sales entity j in the quotation segment d during period t; is the clearing price of electricity seller j to electricity buyer k during period t; is the minimum value of the bid of electricity purchasing entity k during period t; It represents the total transmission cost of a single path between electricity purchaser k and electricity seller j.

[0029] Optionally, the price quoted by the electricity purchasing entity k in period t It is determined based on the decomposition of medium- and long-term contract electricity, which includes the following steps:

[0030] Taking into account the electricity consumption characteristics of the electricity purchaser on an annual, monthly and daily time scale, the annual medium- and long-term contract electricity of the electricity purchaser k is decomposed into the electricity in period t. The formula is as follows:

[0031]

[0032] In the formula, represents the annual medium- and long-term contracted electricity volume of electricity purchaser k; m represents the month in which time period t is located; D is the total number of days in the mth month; α m Indicates the proportion of electricity consumption in the mth month to annual electricity consumption; β m,t It represents the proportion of electricity consumption in period t in the typical time-sharing curve of month m;

[0033] Based on the decomposed electricity in period t Calculate the power gap of electricity purchaser k at time t:

[0034]

[0035] Where N k,t represents the electricity demand of electricity purchasing entity k in period t;

[0036] According to the power shortage Declare the corresponding price segment and get the quotation of electricity purchase entity k in period t The expression is as follows:

[0037]

[0038] Where o1, o2 and o3 represent the first, second and third level quotation values, respectively, o1<o2<o3; χ1, χ2 and χ3 represent the first, second and third level shortage thresholds, respectively, χ1<χ2<χ3; when the power gap is When it is less than 0, the electricity purchasing entity k does not purchase electricity, that is, the bid is 0.

[0039] Optionally, the constraints of the two-layer model include supply and demand balance constraints, upper and lower limit constraints on provincial power generation, climbing constraints on provincial power generation, provincial reserve capacity constraints, climbing constraints on inter-provincial interconnection lines, constraints on inter-provincial spot clearing prices and declared prices, balance constraints on inter-provincial interconnection lines, power sales constraints on power sellers, and power purchase constraints on power buyers.

[0040] Optionally, the expression of the inter-provincial tie line balance constraint is:

[0041]

[0042] In the formula, represents the power delivered from electricity seller j to electricity buyer k province in period t; k,j It represents the network loss rate of a single path between the electricity purchasing entity k and the electricity selling entity j, and its calculation formula is as follows:

[0043]

[0044] In the formula, ρ l represents the network loss rate of the lth channel; L represents the total number of channels on a single path between the electricity purchasing entity k and the electricity selling entity j.

[0045] Optionally, the expressions of the electricity selling constraint of the electricity selling entity and the electricity purchasing constraint of the electricity purchasing entity are respectively:

[0046]

[0047] In the formula, It represents the upper limit of the channel remaining capacity on a single path between the electricity purchaser k and the electricity seller j. The calculation formula is as follows:

[0048]

[0049] In the formula, represents the predicted remaining capacity of the Lth channel; l = 1, 2, …, L; L represents the total number of channels on a single path between the electricity purchasing entity k and the electricity selling entity j.

[0050] Optionally, the algorithm used to solve the two-layer model is a reinforcement learning algorithm based on interactive game between multiple agents and the environment;

[0051] The algorithm includes: using an intelligent agent k with autonomous learning ability to represent the electricity purchasing entity k to simulate the declaration strategies of each electricity purchasing entity in the upper model, setting the learning environment of the intelligent agent k as the inter-provincial spot market clearing process of the lower model, gradually learning its optimal strategy through the actions and strategy iterations of the intelligent agent k in the environment, and finally outputting the inter-provincial spot declaration strategy of the electricity purchasing entity.

[0052] Optionally, the steps of solving the two-layer model using a reinforcement learning algorithm based on interactive game between multiple agents and the environment specifically include:

[0053] Step 1: Generate initial agent learning elements based on the input historical clearing price

[0054] in, represents the state of agent k in period t, and They represent the historical inter-provincial spot purchase volume and average clearing price of electricity purchase entity k in period t-1 respectively;

[0055] represents the bidding action of agent k in period t, The initial action space is Indicates the upper limit of inter-provincial spot quotation;

[0056] represents the strategy of agent k in period t, that is, the probability value of selecting each bid action in the action space;

[0057] Step 2: Sample the quotation actions in the current action space through the Monte Carlo method, and gradually reduce the upper limit of the quotation action space according to the set rules to screen out the quotation actions that currently meet the conditions.

[0058] Step 3: Accept the current state of the upper model agent k through the lower model learning environment and quote actions Perform learning optimization and set the negative value of the electricity purchase cost required for agent k to interact with the learning environment as a reward;

[0059] Step 4: In the current state Next, the discounted sum of all current rewards is expressed by iteratively multiplying the discount factor to obtain the current cumulative reward R k,t , and its calculation formula is as follows:

[0060]

[0061] In the formula, γ i Indicates the current i-th reward discount factor; Indicates the current i-th filtered quote action The corresponding reward; i represents the number of interactions between agent k and the learning environment in the current round;

[0062] Step 5: Obtain the clearing results of multiple agents in the learning environment after the current i-th round of game, and combine them with the current cumulative return R k,t,i Update the state of agent k and update the expected value of the strategy of agent k in the current i-th quotation action and state as follows:

[0063]

[0064] In the formula, Indicates the bidding action selected by agent k at the i-1th time and the i-1th next state The strategy expectation; v represents the learning rate;

[0065] Step 6: Determine whether the expected value of the strategy of agent k in the current state meets the set termination condition. If not, set i=i+1, and update the probability value of each bidding action corresponding to the current strategy of the agent, and then return to step 1. If it is satisfied, generate the agent strategy in the equilibrium state, that is, obtain the inter-provincial spot declaration strategy of the electricity purchasing entity.

[0066] Optionally, the step 2 specifically includes:

[0067] Step 2.1: Sample the bid action in the current action space using the Monte Carlo method;

[0068] Step 2.2: If the current action space is When , the action space is updated to [0,o3], and the sampling action is determined Is it less than o3? If not, return to step 2.1; if yes, output the current sampling action

[0069] If the current action space is [0, o3], then update the action space to [0, o2] and determine the sampling action Is it less than o2? If not, return to step 2.1; if yes, output the current sampling action

[0070] If the current action space is [0, o2], then update the action space to [0, o1] and determine the sampling action Is it less than o1? If not, return to step 2.1; if yes, output the current sampling action

[0071] If the current action space is [0,o1], the current sampled action is directly output

[0072] Optionally, the expression for judging whether the expected value of the strategy of agent k in the current state satisfies the set termination condition in step 6 is as follows:

[0073]

[0074] Where ε is the convergence accuracy.

[0075] Optionally, the expression for updating the probability value of each bidding action corresponding to the current strategy of the intelligent agent in step 6 is as follows:

[0076]

[0077] in, represents the average probability of the corresponding action of agent k in time period t after the previous i actions, Indicates status The number of occurrences, It represents the average probability of the corresponding action of agent k in time period t after the first i-1 actions.

[0078] In a second aspect, the present invention provides a cross-regional and inter-provincial spot price and quantity declaration optimization system, which runs the steps of any one of the methods described in the first aspect of the present invention, and the system includes:

[0079] The data acquisition module is used to obtain basic data of electricity purchase entities within and between provinces;

[0080] An optimization path combination module is used to optimize the inter-provincial spot power purchase path according to the basic data to obtain a one-to-one path combination network structure between each power purchase entity and each power sales entity;

[0081] Constructing a two-layer model module, which is used to construct an upper-layer model with the goal of minimizing the total power purchase cost of power purchase entities in the inter-provincial and intra-provincial markets based on the path combination network structure, and a lower-layer model for clearing the inter-provincial spot market with the goal of maximizing social welfare, thereby obtaining a multi-agent inter-provincial spot declaration two-layer model;

[0082] A constraint condition construction module is used to construct the constraint conditions of the two-layer model based on the basic data and the path combination network structure;

[0083] The double-layer model solving module is used to solve the double-layer model in combination with the constraint conditions to obtain the inter-provincial spot declaration strategy of the electricity purchasing entity.

[0084] In a third aspect, the present invention provides a terminal, including a processor and a storage medium;

[0085] The storage medium is used to store instructions;

[0086] The processor is used to operate according to the instructions to execute the steps of any one of the methods described in the first aspect of the present invention.

[0087] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect of the present invention.

[0088] The beneficial effect of the present invention is that, compared with the prior art,

[0089] (1) In view of the fact that the existing methods ignore the impact of the combination of intra-regional channels and inter-regional channels on costs, the present invention optimizes the inter-provincial spot power purchase path and builds a path combination network structure for power purchase entities to participate in inter-provincial spot market power purchases. This can more effectively describe the main power purchase sources that affect power purchase entities and the corresponding path combinations, reduce power transmission costs, and infer the provincial quotations of power sellers, so that inter-provincial power resources can achieve the optimal configuration effect;

[0090] (2) The present invention aims to minimize the total electricity purchase cost of electricity purchasers. Based on the actual clearing rules of the inter-provincial spot market, the mid- and long-term decomposition of electricity volume is used as the boundary, and the pre-clearing results within the province are taken into consideration. A two-layer model is constructed with the upper layer being the electricity purchase in the intra-provincial market and the lower layer being the clearing of the inter-provincial market. The gap is introduced to determine the size of the quotation. The method takes into account more comprehensive factors and can fully consider the multi-time scale and multi-spatial scale influencing factors and game relationships of multiple electricity purchasers in the electricity market. The calculation accuracy of the quantity and price declaration results is improved, which is more in line with the actual market rules, effectively reducing the electricity purchase cost during the off-peak period, and improving the economic efficiency of each electricity purchaser. The optimization method of the present invention is more practical and suitable for promotion and application.

[0091] (3) When existing multi-agent reinforcement learning methods simulate the game of multiple market players, they mostly focus on the study of intra-provincial market transactions, lacking the adaptive processing of inter-provincial market environment and inter-provincial quotation constraints, resulting in the difficulty of the solution method to accurately handle the inter-provincial spot power purchase constraints and being unsuitable for the new market environment. The present invention uses multi-agent reinforcement learning technology to characterize the historical status and quotation actions of multiple inter-provincial spot power purchase entities. Compared with the existing multi-agent reinforcement learning algorithm that handles constraints by setting penalty functions and segmenting marginal costs, the present invention uses quotation constraint boundaries to gradually narrow the quotation action space, which can more accurately simulate the inter-provincial market power purchase situation, achieve high-speed and accurate calculation and optimization, meet the actual quantity and price declaration constraints of inter-provincial spot power purchases, and improve the applicability of the algorithm to inter-provincial spot power purchases in terms of agent actions. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] Figure 1 It is a flow chart of the optimization method for cross-regional and inter-provincial spot price and quantity declaration in the present invention;

[0093] Figure 2 It is a schematic diagram of the combination of power purchase paths in the present invention;

[0094] Figure 3 It is a flowchart of solving multi-agent game in the present invention;

[0095] Figure 4 It is a structural principle block diagram of the cross-regional and inter-provincial spot segmented quantity and price declaration optimization system in the present invention; DETAILED DESCRIPTION

[0096] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in the present invention are only part of the embodiments of the present invention, not all of the embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present invention.

[0097] Embodiment 1:

[0098] Reference Figure 1 The embodiment of the present invention provides a method for optimizing the cross-regional and inter-provincial spot price and quantity declaration, which specifically includes the following steps:

[0099] Step S1: Obtain basic data of electricity purchase entities within and between provinces;

[0100] In this embodiment, 96 points of inter-provincial and intra-provincial basic data of electricity purchasers are collected. The inter-provincial basic data include the historical declared quantity and price of the inter-provincial spot market of the electricity purchasers in each period, the historical clearing quantity and price of each period, the predicted remaining capacity of the channel in each period, the transmission cost of the channel and the network loss rate; the intra-provincial basic data include the provincial electricity demand of the electricity purchasers in each period, the predicted electricity purchase price in the provincial market, the annual medium- and long-term contract electricity volume, the proportion of electricity consumption in each month to the annual electricity consumption, the proportion of electricity consumption in each period of the typical time-sharing curve of each month, and the output operation parameters of each power source in the province.

[0101] Step S2: optimizing the inter-provincial spot electricity purchase path according to the basic data to obtain a one-to-one path combination network structure between each electricity purchase entity and each electricity sales entity;

[0102] Furthermore, the path optimization process specifically includes:

[0103] S2.1: Obtain the initial channel between each electricity purchasing entity and each electricity selling entity;

[0104] S2.2: Based on the transmission costs of each channel in the initial channel, the total transmission costs of the path combinations between each power purchaser and its corresponding power seller are calculated respectively;

[0105] S2.3: The path combination with the minimum total transmission cost is used as the single path between every two one-to-one power purchasers and power sellers. The expression is as follows:

[0106]

[0107] In the formula, represents the total transmission cost of a single path between the electricity purchaser k and the electricity seller j; represents the transmission cost of the lth channel between electricity purchaser k and electricity seller j; l represents the shared channel number on the transaction path between electricity purchaser k and electricity seller j; j=1,2,…,J; k=1,2,…,K; J and K represent the total number of electricity purchasers and electricity sellers respectively; r represents the total number of channels between electricity purchaser k and electricity seller j.

[0108] Specifically, according to the initial channel between the buyer and seller, such as Figure 2The cross-regional channels L1-L4 and the intra-regional channels L5-L8 shown in the figure are used to calculate the transmission costs of the path combinations between the buyers and sellers. Under the initial channel, the seller 1 and the buyer 3 can transmit electricity through the L1+L7 path combination and the L1+L6+L8 path combination. According to the principle of minimum total transmission cost, a single path is selected, and the path between the seller 1 and the buyer 3 is determined as the L1+L7 path combination. Similarly, for the seller 1 and the buyer 2, it is L1+L6; between the seller 2 and the buyer 2 is L3+L4, and between the seller 2 and the buyer 3 is L2+L7; between the seller 3 and the buyer 1 is L5+L7, and between the seller 3 and the buyer 2 is L5+L8; thus, a one-to-one network structure is formed between the buyers and sellers.

[0109] Step S3: Based on the path combination network structure, an upper model is constructed with the goal of minimizing the total power purchase cost of power purchase entities in the inter-provincial and intra-provincial markets, and a lower model of inter-provincial spot market clearing is constructed with the goal of maximizing social welfare, to obtain a multi-agent inter-provincial spot declaration double-layer model;

[0110] As an embodiment of the present invention, the objective function of the upper model is expressed as follows:

[0111]

[0112] In the formula, C k represents the total electricity purchase cost of electricity purchaser k in the inter-provincial and intra-provincial markets; represents the output of the nth type of power source of the power purchaser k in the t period, N represents the number of types of power sources; T represents the total number of time periods; is the predicted electricity purchase price of electricity purchaser k in the provincial market during period t; represents the amount of electricity purchased by electricity purchaser k in the inter-provincial spot market during period t; It represents the clearing price of electricity purchaser k in the inter-provincial spot market during period t.

[0113] As an embodiment of the present invention, the expression of the objective function of the lower model is as follows:

[0114]

[0115] In the formula, is the price quoted by electricity seller j in period t; is the amount of electricity transmitted on a single path between the electricity purchaser k and the electricity seller j during period t; represents the total transmission cost of a single path between the electricity purchaser k and the electricity seller j; represents the amount of electricity purchased by electricity purchaser k in the inter-provincial spot market during period t; Represents the bid of electricity buyer k in period t.

[0116] For the lower model This embodiment is based on the path combination network structure and the inter-provincial spot power purchase rules. The price quoted by the power seller is inferred based on the clearing power price obtained in step S1, the price declared by the power buyer, and the conversion result of the channel transmission fee obtained in step S2 to obtain the price quoted by the power seller j in time period t. The calculation formula is as follows:

[0117]

[0118] In the formula, is the maximum value of the electricity sales entity j in the quotation segment d during period t; is the clearing price of electricity seller j to electricity buyer k during period t; is the minimum value of the bid of electricity purchasing entity k during period t; It represents the total transmission cost of a single path between electricity purchaser k and electricity seller j.

[0119] Furthermore, the price quoted by the electricity purchaser k in the lower model during period t is It is determined based on the decomposition of medium- and long-term contract electricity, which includes the following steps:

[0120] A) Taking into account the electricity consumption characteristics of the electricity purchaser on an annual, monthly, and daily time scale, the annual medium- and long-term contract electricity consumption of the electricity purchaser k is decomposed into the electricity consumption in period t The formula is as follows:

[0121]

[0122] In the formula, represents the annual medium- and long-term contracted electricity volume of electricity purchaser k; m represents the month in which time period t is located; D is the total number of days in the mth month; α m Indicates the proportion of electricity consumption in the mth month to annual electricity consumption; β m,t It represents the proportion of electricity consumption in period t in the typical time-sharing curve of month m;

[0123] B) Based on the decomposed electricity in period t Calculate the power gap of electricity purchaser k at time t:

[0124]

[0125] Where N k,t represents the electricity demand of electricity purchasing entity k in period t;

[0126] C) According to the power gap Declare the corresponding price segment and get the quotation of electricity purchase entity k in period t The expression is as follows:

[0127]

[0128] Where o1, o2 and o3 represent the first, second and third level quotation values, respectively, o1<o2<o3; χ1, χ2 and χ3 represent the first, second and third level shortage thresholds, respectively, χ1<χ2<χ3; when the power gap is When it is less than 0, the electricity purchasing entity k does not purchase electricity, that is, the bid is 0.

[0129] Step S4: constructing the constraint conditions of the two-layer model based on the basic data and the path combination network structure;

[0130] Specifically, the constraints of the upper model include:

[0131] Supply and demand balance constraints:

[0132]

[0133]

[0134] In the formula, They are the inter-provincial power purchase, intra-provincial spot power purchase and intra-provincial reserve capacity of power purchase entity k in period t. is the output of the nth type of power source of the power purchaser k in time period t, including thermal power, hydropower, wind power, and photovoltaic power generation; N represents the number of types of power sources; k,t The power demand in the province obtained in step S1.

[0135] The upper and lower limits of power generation in the province:

[0136]

[0137] In the formula, They respectively represent the upper and lower limits of the output of type n power sources in electricity purchasing entity k.

[0138] Power generation ramp constraints within the province:

[0139]

[0140] In the formula, They represent the upper and lower limits of the ramp rate of the n-type power generation units in the electricity purchasing entity k; ω n,k It represents the ramp rate of the units of type n power sources in the electricity purchasing entity k.

[0141] Reserve capacity constraints within the province:

[0142]

[0143] In the formula, γ k It represents the reserve factor of the electricity purchasing entity k, which is 5%.

[0144] Inter-provincial connection line climbing constraints:

[0145]

[0146] In the formula, They represent the inter-provincial spot purchase amount of electricity of electricity purchase entity k in period t and period t-1 respectively; ΔC represents the change range of purchase amount.

[0147] During the actual clearing process, taking into account the actual acceptance capacity of the power grids in each province, the ramp-up of units within the province, and the rapid changes in power transmission within the province, the transmission power variation range of each inter-provincial interconnection line in adjacent time periods shall not exceed ΔC. In this embodiment, ΔC is 150MW.

[0148] Inter-provincial spot clearing price and declared price constraints:

[0149]

[0150] In the formula, the inter-provincial spot clearing price is less than or equal to the declared price.

[0151] Furthermore, the constraints of the lower model include:

[0152] Inter-provincial tie line balance constraints:

[0153]

[0154] In the formula, represents the power delivered from electricity seller j to electricity buyer k province in period t; k,j It represents the network loss rate of a single path between the electricity purchasing entity k and the electricity selling entity j, and its calculation formula is as follows:

[0155]

[0156] In the formula, ρ l represents the network loss rate of the lth channel; L represents the total number of channels on a single path between the electricity purchasing entity k and the electricity selling entity j.

[0157] The power sales constraints of power sellers and the power purchase constraints of power buyers are as follows:

[0158]

[0159]

[0160] In the formula, It represents the upper limit of the channel remaining capacity on a single path between the electricity purchaser k and the electricity seller j. The calculation formula is as follows:

[0161]

[0162] In the formula, represents the predicted remaining capacity of the Lth channel; l = 1, 2, …, L; L represents the total number of channels on a single path between the electricity purchasing entity k and the electricity selling entity j.

[0163] Step S5: Solve the two-layer model in combination with the constraint conditions to obtain the inter-provincial spot declaration strategy of the electricity purchase entity.

[0164] As an embodiment of the present invention, a reinforcement learning algorithm based on interactive game between multiple agents and the environment is used to solve the two-layer model. An agent k with autonomous learning ability is used to represent the electricity purchase subject k to simulate the declaration strategy of each electricity purchase subject in the upper layer model. The learning environment of the agent k is set as the inter-provincial spot market clearing process of the lower layer model. Through the action and strategy iteration of the agent k in the environment, the optimal strategy is gradually learned, and finally the inter-provincial spot declaration strategy of the electricity purchase subject is output.

[0165] like Figure 3 As shown, the steps of solving the two-layer model using a reinforcement learning algorithm based on the interactive game between multiple agents and the environment specifically include:

[0166] Step 1: Generate initial agent learning elements based on the input historical clearing price

[0167] in, represents the state of agent k in period t, and They represent the historical inter-provincial spot purchase volume and average clearing price of electricity purchase entity k in period t-1 respectively;

[0168] represents the bidding action of agent k in period t, The initial action space is Indicates the upper limit of inter-provincial spot quotation;

[0169] represents the strategy of agent k in period t, that is, the probability value of selecting each bidding action in the action space; in this embodiment, the initial strategy Set the probability of each quote action to be equal.

[0170] Step 2: Sample the quotation actions in the current action space through the Monte Carlo method, and gradually reduce the upper limit of the quotation action space according to the set rules to screen out the quotation actions that currently meet the conditions.

[0171] Specifically, when the action space is When When the action space is [0,o3], the action sampling is performed in [0,o3]; when the action space is [0,o2], the action sampling is performed in [0,o2]; when the action space is [0,o1], the action sampling is performed in [0,o1].

[0172] In step 2 of this embodiment, the upper limit of the quotation action space is gradually reduced according to the set rules to filter out the quotation actions that currently meet the conditions. The following steps are involved:

[0173] Step 2.1: Sample the bid action in the current action space using the Monte Carlo method;

[0174] Step 2.2: If the current action space is When , the action space is updated to [0,o3], and the sampling action is determined Is it less than o3? If not, return to step 2.1; if yes, output the current sampling action

[0175] If the current action space is [0, o3], then update the action space to [0, o2] and determine the sampling action Is it less than o2? If not, return to step 2.1; if yes, output the current sampling action

[0176] If the current action space is [0, o2], then update the action space to [0, o1] and determine the sampling action Is it less than o1? If not, return to step 2.1; if yes, output the current sampling action

[0177] If the current action space is [0,o1], the current sampled action is directly output

[0178] Step 3: Accept the current state of the upper model agent k through the lower model learning environment and quote actions Perform learning optimization and set the negative value of the electricity purchase cost required for agent k to interact with the learning environment as a reward;

[0179] Step 4: In the current state Next, the discounted sum of all current rewards is expressed by iteratively multiplying the discount factor to obtain the current cumulative reward R k,t , and its calculation formula is as follows:

[0180]

[0181] In the formula, γ i Indicates the current i-th reward discount factor; Indicates the current i-th filtered quote action The corresponding reward; i represents the number of interactions between agent k and the learning environment in the current round;

[0182] Step 5: Obtain the clearing results of multiple agents in the learning environment after the current i-th round of game, and combine them with the current cumulative return R k,t,i Update the state of agent k and update the expected value of the strategy of agent k in the current i-th quotation action and state as follows:

[0183]

[0184] In the formula, Indicates the bidding action selected by agent k at the i-1th time and the i-1th next state The strategy expectation; v represents the learning rate;

[0185] Step 6: Determine whether the expected value of the strategy of agent k in the current state meets the set termination condition. If not, set i=i+1, and update the probability value of each bidding action corresponding to the current strategy of the agent, and then return to step 1. If it is satisfied, generate the agent strategy in the equilibrium state, that is, obtain the inter-provincial spot declaration strategy of the electricity purchasing entity.

[0186] In this embodiment, the expected value of the strategy is compared with the historical expected value of the strategy in the strategy expected value storage to determine whether the strategy execution of the agent converges. Taking ε as the judgment basis, the expression for determining whether the expected value of the strategy of the agent k in the current state meets the set termination condition is as follows:

[0187]

[0188] In the formula, ε is the convergence accuracy, which is 10 -6 .

[0189] Furthermore, the expression for updating the probability value of each bidding action corresponding to the current strategy of the intelligent agent in step 6 is as follows:

[0190]

[0191] in, represents the average probability of the corresponding action of agent k in time period t after the previous i actions, Indicates status The number of occurrences, It represents the average probability of the corresponding action of agent k in time period t after the first i-1 actions.

[0192] The following analysis is conducted by taking multiple electricity purchasing entities in a certain region of my country as an example to further illustrate the cross-regional and inter-provincial spot segmented quantity and price declaration optimization method based on multi-agent game provided by an embodiment of the present invention.

[0193] There are three electricity purchasing entities in the regional power grid, which purchase electricity through the inter-provincial spot market. The medium- and long-term electricity is decomposed into each entity. The predicted prices of thermal power, hydropower, wind power, and photovoltaic power purchases in each entity's province are 410 yuan / MWh, 280 yuan / MWh, 395 yuan / MWh, and 350 yuan / MWh. The operating parameters of the power supply output of each entity's provincial power purchase are shown in Table 1:

[0194] Table 1 Operating parameters of different power sources within the provinces where electricity is purchased

[0195]

[0196]

[0197] The remaining capacity of inter-provincial channels is shown in Table 2:

[0198] Table 2 Remaining capacity of inter-provincial channels

[0199]

[0200] For the regional power grid, there are four main electricity sellers, accounting for more than 80% of the inter-provincial spot electricity of the three electricity buyers. The total network loss and transmission cost of the channel path combination are calculated as shown in Table 3.

[0201] Table 3 Total transmission costs and network losses of inter-provincial route combinations

[0202]

[0203] The calculation results of the model constructed by the present invention for inter-provincial electricity purchase entities are compared with the calculation results of the conventional electricity purchase method in which each electricity purchase entity equally shares the required electricity in the inter-provincial and intra-provincial spot markets. The results are shown in Table 4.

[0204] Table 4 Comparison of electricity purchasing effects before and after the method

[0205] Electricity purchasing entity Peak Hour Power Changes Cost changes during low periods Electricity purchasing entity 1 +3.66% -14.96% Electricity purchasing entity 2 +1.89% -6.90% Electricity purchasing entity 3 +5.61% 17.01%

[0206] It can be seen from Table 4 that, taking electricity purchase entity 1 as an example, the average electricity purchased during peak hours increased by 3.66%, and the average electricity purchase cost during off-peak hours (10:30-15:00) decreased by 14.96%. It can be seen that the method of the present invention is conducive to increasing the purchase of electricity during peak hours and reducing the electricity purchase cost during off-peak hours.

[0207] In addition, according to the method proposed in the present invention, when the remaining capacity of the electricity purchasing channel of the electricity purchasing entity 1 is reduced by 5%, the results of calculating the clearing power at each time point under the market equilibrium state are shown in Table 5.

[0208] Table 5 Inter-provincial clearing power MW when power purchaser 1 reduces purchased capacity by 5%

[0209]

[0210] It can be seen from Table 5 that when the outsourced capacity of electricity purchaser 1 is reduced by 5%, the method of the present invention can increase the purchased electricity amount during peak hours by adjusting the quotation of electricity purchaser 1. Therefore, the method of the present invention can effectively enhance the inter-provincial electricity purchasing competitiveness of electricity purchasers.

[0211] The beneficial effect of the present invention is that, compared with the prior art,

[0212] (1) In view of the fact that the existing methods ignore the impact of the combination of intra-regional channels and inter-regional channels on costs, the present invention optimizes the inter-provincial spot power purchase path and builds a path combination network structure for power purchase entities to participate in inter-provincial spot market power purchases. This can more effectively describe the main power purchase sources that affect power purchase entities and the corresponding path combinations, reduce power transmission costs, and infer the provincial quotations of power sellers, so that inter-provincial power resources can achieve the optimal configuration effect;

[0213] (2) The present invention aims to minimize the total electricity purchase cost of electricity purchasers. Based on the actual clearing rules of the inter-provincial spot market, the mid- and long-term decomposition of electricity volume is used as the boundary, and the pre-clearing results within the province are taken into consideration. A two-layer model is constructed with the upper layer being the provincial market purchase and the lower layer being the inter-provincial market clearing. The gap is introduced to determine the size of the quotation. The method takes into account more comprehensive factors and can fully consider the multi-time scale and multi-spatial scale influencing factors and game relationships of multiple electricity purchasers in the electricity market. The method improves the accuracy of the calculation of the electricity purchase results, is more in line with the actual market rules, effectively reduces the electricity purchase cost during the off-peak period, and improves the economy of each electricity purchaser. The optimization method of the present invention is more practical and suitable for promotion and application.

[0214] (3) When existing multi-agent reinforcement learning methods simulate the game of multiple market players, they mostly focus on the study of intra-provincial market transactions, lacking the adaptive processing of inter-provincial market environment and inter-provincial quotation constraints, resulting in the difficulty of the solution method to accurately handle the inter-provincial spot power purchase constraints and being unsuitable for the new market environment. The present invention uses multi-agent reinforcement learning technology to characterize the historical status and quotation actions of multiple inter-provincial spot power purchase entities. Compared with the existing multi-agent reinforcement learning algorithm that handles constraints by setting penalty functions and segmenting marginal costs, the present invention uses quotation constraint boundaries to gradually narrow the quotation action space, which can more accurately simulate the inter-provincial market power purchase situation, achieve high-speed and accurate calculation and optimization, meet the actual quantity and price declaration constraints of inter-provincial spot power purchases, and improve the applicability of the algorithm to inter-provincial spot power purchases in terms of agent actions.

[0215] Embodiment 2:

[0216] like Figure 4 As shown, the present invention provides a cross-regional and inter-provincial spot price and quantity declaration optimization system, which is used to implement the steps of the method in the above embodiment 1, and the system specifically includes:

[0217] The data acquisition module is used to obtain basic data of electricity purchase entities within and between provinces;

[0218] An optimization path combination module is used to optimize the inter-provincial spot power purchase path according to the basic data to obtain a one-to-one path combination network structure between each power purchase entity and each power sales entity;

[0219] Constructing a two-layer model module, which is used to construct an upper-layer model with the goal of minimizing the total power purchase cost of power purchase entities in the inter-provincial and intra-provincial markets based on the path combination network structure, and a lower-layer model for clearing the inter-provincial spot market with the goal of maximizing social welfare, thereby obtaining a multi-agent inter-provincial spot declaration two-layer model;

[0220] A constraint condition construction module is used to construct the constraint conditions of the two-layer model based on the basic data and the path combination network structure;

[0221] The double-layer model solving module is used to solve the double-layer model in combination with the constraint conditions to obtain the inter-provincial spot declaration strategy of the electricity purchasing entity.

[0222] The cross-regional and inter-provincial spot segmented quantity and price declaration optimization system provided in the embodiment of the present invention and the cross-regional and inter-provincial spot segmented quantity and price declaration optimization method provided in Example 1 are based on the same technical concept, and can produce the beneficial effects as described in Example 1. For the contents not described in detail in this embodiment, please refer to Example 1.

[0223] Embodiment three:

[0224] A terminal provided by an embodiment of the present invention includes a processor and a storage medium;

[0225] The storage medium is used to store instructions;

[0226] The processor is used to operate according to the instruction to execute the steps of the method according to any one of the first embodiments.

[0227] Embodiment 4:

[0228] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of any method described in Embodiment 1 are implemented.

[0229] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0230] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0231] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0232] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.

[0233] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A cross-regional and inter-provincial spot price and quantity declaration optimization method. It is characterized in that Methods include: Obtain basic data of electricity purchase entities within and across provinces; According to the basic data, the inter-provincial spot power purchase path is optimized to obtain a one-to-one path combination network structure between each power purchase entity and each power sales entity; Based on the path combination network structure, an upper model is constructed with the goal of minimizing the total power purchase cost of power purchase entities in the inter-provincial and intra-provincial markets, and a lower model of inter-provincial spot market clearing with the goal of maximizing social welfare is constructed, and a multi-agent inter-provincial spot declaration two-layer model is obtained; Based on the basic data and the path combination network structure, construct the constraint conditions of the two-layer model; The two-layer model is solved in combination with the constraint conditions to obtain the inter-provincial spot declaration strategy of the electricity purchasing entity.

2. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 1, It is characterized in that The inter-provincial basic data obtained include the historical declared quantity and price of inter-provincial spot electricity purchase entities in each period, the historical clearing quantity and price in each period, the predicted remaining capacity of the channel in each period, the transmission cost of the channel and the network loss rate; The basic provincial data obtained include the electricity demand of electricity buyers in different periods, the predicted electricity purchase price in the provincial market, the annual medium- and long-term contract electricity volume, the proportion of electricity consumption in each month to the annual electricity consumption, the proportion of electricity consumption in each period of the typical time-sharing curve of each month, and the output operating parameters of various power sources in the province.

3. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 1 or 2, It is characterized in that The steps of optimizing the inter-provincial spot power purchase path according to the basic data include: Obtain the initial channel between each electricity purchasing entity and each electricity selling entity; Based on the transmission costs of each channel in the initial channel, the total transmission costs of the path combinations between each electricity purchasing entity and its corresponding electricity selling entity are calculated respectively; The path combination with the minimum total transmission cost is used as the single path between every two one-to-one power purchasers and power sellers. The expression is as follows: In the formula, represents the total transmission cost of a single path between the electricity purchaser k and the electricity seller j; represents the transmission cost of the lth channel between electricity purchaser k and electricity seller j; l represents the shared channel number on the transaction path between electricity purchaser k and electricity seller j; j=1,2,…,J; k=1,2,…,K; J and K represent the total number of electricity purchasers and electricity sellers respectively; r represents the total number of channels between electricity purchaser k and electricity seller j.

4. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 3, It is characterized in that The objective function of the upper model is expressed as follows: In the formula, C k represents the total electricity purchase cost of electricity purchaser k in the inter-provincial and intra-provincial markets; represents the output of the nth type of power source of the power purchaser k in the t period, N represents the number of types of power sources; T represents the total number of time periods; is the predicted electricity purchase price of electricity purchaser k in the provincial market during period t; represents the amount of electricity purchased by electricity purchaser k in the inter-provincial spot market during period t; It represents the clearing price of electricity purchaser k in the inter-provincial spot market during period t.

5. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 4, It is characterized in that The expression of the objective function of the lower model is as follows: In the formula, is the price quoted by electricity seller j in period t; is the amount of electricity transmitted on a single path between the electricity purchaser k and the electricity seller j during period t; represents the total transmission cost of a single path between the electricity purchaser k and the electricity seller j; represents the amount of electricity purchased by electricity purchaser k in the inter-provincial spot market during period t; Represents the bid of electricity buyer k in period t.

6. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 5, It is characterized in that The price quoted by the electricity seller j in period t The calculation formula is as follows: In the formula, is the maximum value of the electricity sales entity j in the quotation segment d during period t; is the clearing price of electricity seller j to electricity buyer k during period t; is the minimum value of the bid of electricity purchasing entity k during period t; It represents the total transmission cost of a single path between electricity purchaser k and electricity seller j.

7. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 5, It is characterized in that The price quoted by the electricity purchasing entity k in period t It is determined based on the decomposition of medium- and long-term contract electricity, which includes the following steps: Taking into account the electricity consumption characteristics of the electricity purchaser on an annual, monthly and daily time scale, the annual medium- and long-term contract electricity consumption of the electricity purchaser k is decomposed into the electricity consumption in period t. The formula is as follows: In the formula, represents the annual medium- and long-term contracted electricity volume of electricity purchaser k; m represents the month in which time period t is located; D is the total number of days in the mth month; α m Indicates the proportion of electricity consumption in the mth month to annual electricity consumption; β m,t It represents the proportion of electricity consumption in period t in the typical time-sharing curve of month m; Based on the decomposed electricity in period t Calculate the power gap of electricity purchaser k at time t: Where N k,t represents the electricity demand of electricity purchasing entity k in period t; According to the power shortage Declare the corresponding price segment and get the quotation of electricity purchase entity k in period t The expression is as follows: In the formula, o 1 , o 2 and 3 Respectively represent the first layer report value, the second layer report value and the third layer report value, o 1 <o 2 <o 3 ; 1 , χ 2 and χ 3 denote the first, second and third scarcity thresholds respectively, and χ 1 < 2 < 3 When the power gap is When it is less than 0, the electricity purchasing entity k does not purchase electricity, that is, the bid is 0.

8. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 5, It is characterized in that The constraints of the two-layer model include supply and demand balance constraints, upper and lower limit constraints on power generation within the province, climbing constraints on power generation within the province, provincial reserve capacity constraints, climbing constraints on inter-provincial interconnection lines, constraints on inter-provincial spot clearing prices and declared prices, balance constraints on inter-provincial interconnection lines, power sales constraints by power sellers, and power purchase constraints by power buyers.

9. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 8, It is characterized in that The expression of the inter-provincial tie line balance constraint is: In the formula, represents the power delivered from electricity seller j to electricity buyer k province in period t; k,j It represents the network loss rate of a single path between the electricity purchasing entity k and the electricity selling entity j. The calculation formula is as follows: In the formula, ρ l represents the network loss rate of the lth channel; L represents the total number of channels on a single path between the electricity purchasing entity k and the electricity selling entity j.

10. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 8, It is characterized in that The expressions of the electricity selling constraints of the electricity selling entity and the electricity purchasing constraints of the electricity purchasing entity are respectively: In the formula, It represents the upper limit of the channel remaining capacity on a single path between the electricity purchaser k and the electricity seller j. The calculation formula is as follows: In the formula, represents the predicted remaining capacity of the Lth channel; l = 1, 2, …, L; L represents the total number of channels on a single path between the electricity purchasing entity k and the electricity selling entity j.

11. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 5, It is characterized in that The algorithm used to solve the two-layer model is a reinforcement learning algorithm based on the interactive game between multiple agents and the environment; The algorithm includes: using an intelligent agent k with autonomous learning ability to represent the electricity purchasing entity k to simulate the declaration strategies of each electricity purchasing entity in the upper model, setting the learning environment of the intelligent agent k as the inter-provincial spot market clearing process of the lower model, gradually learning its optimal strategy through the actions and strategy iterations of the intelligent agent k in the environment, and finally outputting the inter-provincial spot declaration strategy of the electricity purchasing entity.

12. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 11, It is characterized in that The steps of solving the two-layer model using a reinforcement learning algorithm based on interactive game between multiple agents and the environment specifically include: Step 1: Generate initial agent learning elements based on the input historical clearing price in, represents the state of agent k in period t, and They represent the historical inter-provincial spot purchase volume and average clearing price of electricity purchase entity k in period t-1 respectively; represents the bidding action of agent k in period t, The initial action space is Indicates the upper limit of inter-provincial spot quotation; represents the strategy of agent k in period t, that is, the probability value of selecting each bid action in the action space; Step 2: Sample the quotation actions in the current action space through the Monte Carlo method, and gradually reduce the upper limit of the quotation action space according to the set rules to screen out the quotation actions that currently meet the conditions. Step 3: Accept the current state of the upper model agent k through the lower model learning environment and quote actions Perform learning optimization and set the negative value of the electricity purchase cost required for agent k to interact with the learning environment as a reward; Step 4: In the current state Next, the discounted sum of all current rewards is expressed by iteratively multiplying the discount factor to obtain the current cumulative reward R k,t , and its calculation formula is as follows: In the formula, γ i Indicates the current i-th reward discount factor; Indicates the current i-th filtered quote action The corresponding reward; i represents the number of interactions between agent k and the learning environment in the current round; Step 5: Obtain the clearing results of multiple agents in the learning environment after the current i-th round of game, and combine them with the current cumulative return R k,t,i Update the state of agent k and update the expected value of the strategy of agent k in the current i-th quotation action and state as follows: In the formula, Indicates the bidding action selected by agent k at the i-1th time and the i-1th next state The strategy expectation; v represents the learning rate; Step 6: Determine whether the expected value of the strategy of agent k in the current state meets the set termination condition. If not, set i=i+1, and update the probability value of each bidding action corresponding to the current strategy of the agent, and then return to step 1. If it is satisfied, generate the agent strategy in the equilibrium state, that is, obtain the inter-provincial spot declaration strategy of the electricity purchasing entity.

13. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 12, It is characterized in that The step 2 specifically includes: Step 2.1: Sample the quote action in the current action space using the Monte Carlo method; Step 2.2: If the current action space is , then update the action space to [0,o 3 ], determine the sampling action Is it less than o 3 ; If not, return to step 2.1; If yes, output the current sampling action If the current action space is [0, 3 ], the action space is updated to [0,o 2 ], determine the sampling action Is it less than o 2 ; If not, return to step 2.1; If yes, output the current sampling action If the current action space is [0, 2 ], the action space is updated to [0,o 1 ], determine the sampling action Is it less than o 1 ; If not, return to step 2.1; If yes, output the current sampling action If the current action space is [0, 1 ], the current sampling action is directly output 14. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 12, It is characterized in that The expression for judging whether the expected value of the strategy of agent k in the current state meets the set termination condition in step 6 is as follows: Where ε is the convergence accuracy.

15. The cross-regional and inter-provincial spot price and quantity declaration optimization method according to claim 12, It is characterized in that The expression for updating the probability value of each bidding action corresponding to the current strategy of the intelligent agent in step 6 is as follows: in, represents the average probability of the corresponding action of agent k in time period t after the previous i actions, Indicates status The number of occurrences, It represents the average probability of the corresponding action of agent k in time period t after the first i-1 actions.

16. A cross-regional and inter-provincial spot price and quantity declaration optimization system, which runs the cross-regional and inter-provincial spot price and quantity declaration optimization method as claimed in any one of claims 1 to 15, It is characterized in that The system includes: The data acquisition module is used to obtain basic data of electricity purchase entities within and between provinces; An optimization path combination module is used to optimize the inter-provincial spot power purchase path according to the basic data to obtain a one-to-one path combination network structure between each power purchase entity and each power sales entity; Constructing a two-layer model module, which is used to construct an upper-layer model with the goal of minimizing the total power purchase cost of power purchase entities in the inter-provincial and intra-provincial markets based on the path combination network structure, and a lower-layer model for clearing the inter-provincial spot market with the goal of maximizing social welfare, thereby obtaining a multi-agent inter-provincial spot declaration two-layer model; A constraint condition construction module is used to construct the constraint conditions of the two-layer model based on the basic data and the path combination network structure; The double-layer model solving module is used to solve the double-layer model in combination with the constraint conditions to obtain the inter-provincial spot declaration strategy of the electricity purchasing entity.

17. A terminal comprising a processor and a storage medium; Features: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-15.

18. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.

Citation Information

Cited By

  • Power market transaction strategy optimization method and system based on data driving

    CN119784498A