Gas unit price optimization method based on genetic algorithm and superior and inferior solution distance method

Through the gas unit price optimization method based on the genetic algorithm and the superior-inferior solution distance method, the energy waste problem caused by the inability of gas units to reasonably participate in market dispatch is solved, the optimal price combination of gas units in different markets is achieved, and the market participation efficiency is improved. and economic benefits.

CN118798934APending Publication Date: 2024-10-18CHINA SOUTHERN POWER GRID COMPANY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410935998.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The inability of gas-fired units to reasonably participate in market dispatch leads to the problem of energy waste. Especially after a high proportion of renewable energy is connected to the grid, the demand for flexible resources in the power system increases. How to coordinate the operational interaction between the natural gas market and the electricity market becomes key.

Method used

A gas unit price optimization method based on genetic algorithm and superior solution distance method is used to build a gas unit price optimization model. The non-dominated sorting genetic algorithm with elite strategy and superior solution distance method are used, based on gas unit parameter data and load forecast data. and power market data to find the optimal price combination for gas-fired units participating in the market, including prices in the electric energy market, frequency regulation ancillary service market and backup ancillary service market.

Benefits of technology

Through an optimization model that comprehensively considers market transaction tendencies and power generation costs, the optimal price for gas units participating in different types of markets is solved to avoid energy waste and improve the market participation efficiency and economic benefits of gas units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798934A_ABST
    Figure CN118798934A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field related to data safety, in particular to a gas turbine unit price optimization method based on a genetic algorithm and a superior and inferior solution distance method. The method comprises the following steps: establishing a gas unit price optimization model; according to the gas unit price optimization model, an objective function is constructed according to transaction tendencies and power generation costs of various markets; solving an optimal price combination of the gas unit participating in the market based on the parameter data of the gas unit, the load prediction data and the power market data by using a genetic algorithm of non-dominated sorting with an elitist strategy and a superior and inferior solution distance method; the optimal price combination comprises optimal prices of the gas unit participating in various markets; and based on the gas unit price optimization model, optimizing the gas unit price to obtain an optimal price combination. Therefore, the problem of energy waste caused by the fact that the gas unit cannot reasonably participate in market scheduling is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of gas unit price optimization, and specifically to a gas unit price optimization method based on a genetic algorithm and a superior-inferior solution distance method. Background Art

[0002] After a high proportion of renewable energy is connected to the grid, the demand for flexible resources in the power system will further expand. Gas-fired power generation has the advantages of high flexibility and low carbon emission intensity, and is an important support for building a clean, low-carbon, safe and efficient energy system. How to coordinate the operation and interaction of the natural gas market and the electricity market is the key to the development of a new power system.

[0003] Therefore, there is an urgent need for an optimization model that comprehensively considers the market's trading tendencies and power generation costs, and can solve the optimal price for gas-fired units to participate in different types of markets, thereby solving the problem of energy waste caused by the inability of gas-fired units to reasonably participate in market scheduling. Summary of the invention

[0004] In view of this, the embodiments of the present application are committed to providing a gas unit price optimization method based on genetic algorithm and superior solution distance method to solve the problem of energy waste caused by the inability of gas units to reasonably participate in market scheduling.

[0005] The present application provides a gas unit price optimization method based on a genetic algorithm and a superior-inferior solution distance method, comprising:

[0006] Build a gas unit price optimization model;

[0007] The gas unit price optimization model constructs an objective function based on the transaction tendency and power generation cost of various markets; uses a non-dominated sorting genetic algorithm with an elite strategy and a superior-inferior solution distance method to solve the optimal price combination of the gas unit participating in the market based on the gas unit parameter data, load forecast data and power market data; the optimal price combination includes the optimal price of the gas unit participating in various markets;

[0008] Based on the gas unit price optimization model, the gas unit price is optimized to obtain the optimal price combination.

[0009] In some embodiments, the gas unit price is optimized based on the gas unit price optimization model to obtain the optimal price combination, including:

[0010] Based on the electricity market data, an initial parent population including N price combinations is generated within the price range where the gas units participate in the market;

[0011] Based on the electricity market data, for each group of initial parent populations, under preset constraints, respectively simulate the transaction tendency in the electricity market, and calculate the objective function in each trading market;

[0012] Based on the calculation results, the initial parent population is quickly non-dominated sorted, and then selection, crossover, and mutation are performed to complete the first generation of evolution and obtain the initial child population;

[0013] Then, based on the genetic algorithm of non-dominated sorting with elite strategy and the superior-inferior solution distance method, iterations are performed to obtain the optimal price combination.

[0014] In some embodiments, the electricity market data includes: weather, system load forecast value on operation day, frequency regulation capacity demand value of each zone on operation day, standby capacity demand on operation day, historical electric energy market operation data, historical frequency regulation market operation data, and historical standby market operation data; wherein, the historical electric energy market operation data includes: declared price, clearing price and clearing quantity; the historical frequency regulation market operation data includes: declared price, declared period, clearing price and clearing quantity; the historical standby market operation data includes: declared price, clearing price and clearing capacity;

[0015] The various types of markets include electric energy market, frequency regulation auxiliary service market, peak load regulation auxiliary service market, and standby auxiliary service market;

[0016] The parameter data of the gas unit include the marginal cost of power generation P and the installed capacity T.

[0017] In some embodiments, the preset constraints include: power relationship constraints:

[0018] The power relationship constraint formula is as follows:

[0019] When the middle bidder is in standby mode:

[0020] Q1+Q2≤T

[0021] Q1+Q3≤T

[0022] When the middle bid is negative standby:

[0023] Q1+Q2≤T

[0024] Q1-Q3≥T 最小

[0025] Among them, the declared price of gas units participating in the electricity market is P1, the winning bid output is Q1, and the clearing electricity price is U1; T 最小 Minimum output for the electric energy market;

[0026] The bid price of the frequency regulation auxiliary service market is P2, the frequency regulation bid period is t, the winning bid output is Q2, the clearing period is t1, and the clearing price is U2;

[0027] The bid price for the standby ancillary service market is P3, the winning capacity is Q3, the clearing price is U3, and the clearing period is t2;

[0028] The objective functions corresponding to the transaction tendency and power generation cost of various types of markets include:

[0029] Electric energy market revenue function; frequency regulation ancillary service market revenue function, peak load regulation ancillary service market revenue function and standby ancillary service market revenue function.

[0030] In some embodiments, iterating to obtain the optimal price combination includes:

[0031] After obtaining the initial parent population and the initial child population, the parent and child populations are merged, and the corresponding objective functions are calculated for the merged populations. According to the elite strategy, individuals are selected from the merged populations to generate a new parent population, and then the new parent population is selected, crossed, and mutated to generate a new child population.

[0032] In some embodiments, iterating to obtain the optimal price combination further includes:

[0033] The gas unit price optimization model based on the non-dominated sorting genetic algorithm with an elite strategy calculates the objective function in each trading market after merging the parent and child populations, performs fast non-dominated sorting on the merged population, then calculates the congestion degree of individuals in each non-dominated layer, and then selects individuals according to the elite strategy to generate a new parent population.

[0034] In some embodiments, iterating to obtain the optimal price combination further includes:

[0035] After obtaining the new parent population and the new child population, it is necessary to determine whether the evolutionary algebra has reached the specified upper limit. If so, the Pareto frontier corresponding to the non-inferior solution set of the price of the gas unit participating in the market is output respectively; otherwise, the evolutionary algebra is increased by 1, and a new parent population and a new child population are generated again.

[0036] In some embodiments, iterating to obtain the optimal price combination further includes:

[0037] According to the TOPSIS method, the non-inferior solution sets are evaluated respectively, and the optimization parameters with the largest relative proximity are selected as the prices for the gas units to participate in the market. Different price combinations for the gas units to participate in various markets such as frequency regulation, peak regulation, and standby are obtained.

[0038] In some embodiments, the non-inferior solution sets are evaluated separately according to the TOPSIS method, including:

[0039] The objective function values ​​of each price combination are counted and normalized, and the maximum value of the objective function is used to form an ideal solution, and the minimum value is used to form a negative ideal solution;

[0040] Calculate the relative closeness of each price combination to rank the parameters of each group. The greater the relative closeness, the better the corresponding price combination optimization parameters. The expression of relative closeness C is as follows:

[0041]

[0042] Where: D1 is the distance to the ideal solution; D2 is the distance to the negative ideal solution.

[0043] The present application provides a method for optimizing the price of a gas unit based on a genetic algorithm and a superior-inferior solution distance method, including building a gas unit price optimization model; wherein the gas unit price optimization model constructs an objective function according to the transaction tendency and power generation cost of various types of markets; utilizes a non-dominated sorting genetic algorithm with an elite strategy and a superior-inferior solution distance method, based on gas unit parameter data, load forecast data and power market data, to solve the optimal price combination for the gas unit to participate in the market; the optimal price combination includes the optimal price for the gas unit to participate in various types of markets; based on the gas unit price optimization model, the gas unit price is optimized to obtain the optimal price combination. Setting up an optimization model that comprehensively considers the market's transaction tendency and power generation cost in this way can solve the optimal price for the gas unit to participate in different types of markets, thereby solving the problem of energy waste caused by the inability of the gas unit to reasonably participate in market scheduling. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0045] Figure 1 It is a flow chart of a gas unit price optimization method based on a genetic algorithm and a superior-inferior solution distance method provided in one embodiment of the present application.

[0046] Figure 2 It is a flow chart of a gas unit price optimization method based on a genetic algorithm and a superior-inferior solution distance method provided in another embodiment of the present application.

[0047] Figure 3 This is a basic framework diagram of a gas unit price optimization model provided by another embodiment of the present application.

[0048] Figure 4 It is a structural diagram of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] Application Overview

[0051] After a high proportion of renewable energy is connected to the grid, the demand for flexible resources in the power system will further expand. Gas-fired power generation has the advantages of high flexibility and low carbon emission intensity, and is an important support for building a clean, low-carbon, safe and efficient energy system. How to coordinate the operation and interaction of the natural gas market and the electricity market is the key to the development of a new power system.

[0052] Therefore, there is an urgent need for an optimization model that comprehensively considers the market's trading tendencies and power generation costs, and can solve the optimal price for gas-fired units to participate in different types of markets, thereby solving the problem that gas-fired units cannot directly enter the southern regional electricity spot market due to excessively high natural gas prices.

[0053] In order to solve the above problems, the present application provides a solution to build a gas unit price optimization model; wherein the gas unit price optimization model constructs an objective function according to the transaction tendency and power generation cost of various types of markets; utilizes a non-dominated sorting genetic algorithm with an elite strategy and a superior-inferior solution distance method, based on gas unit parameter data, load forecast data and power market data, to solve the optimal price combination for gas units to participate in the market; the optimal price combination includes the optimal price for gas units to participate in various types of markets; based on the gas unit price optimization model, the gas unit price is optimized to obtain the optimal price combination. Setting up an optimization model that comprehensively considers the market's transaction tendency and power generation cost in this way can solve the optimal price for gas units to participate in different types of markets, thereby solving the problem of energy waste caused by the inability of gas units to reasonably participate in market scheduling.

[0054] After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be described in detail with reference to the accompanying drawings.

[0055] Exemplary Methods

[0056] Figure 1FIG. 1 is a flow chart of a gas unit price optimization method based on a genetic algorithm and a superior-inferior solution distance method provided by an embodiment of the present application. Figure 1 As shown, the method includes the following contents.

[0057] Step S110, building a gas unit price optimization model;

[0058] The gas unit price optimization model constructs an objective function based on the transaction tendency and power generation cost of various markets; uses a non-dominated sorting genetic algorithm with an elite strategy and a superior-inferior solution distance method to solve the optimal price combination of the gas unit participating in the market based on the gas unit parameter data, load forecast data and power market data; the optimal price combination includes the optimal price of the gas unit participating in various markets;

[0059] Step S120: optimizing the price of the gas generator set based on the gas generator set price optimization model to obtain an optimal price combination.

[0060] Setting up such an optimization model that comprehensively considers the market's transaction tendency and power generation costs can solve the optimal price for gas-fired units to participate in different types of markets, thereby solving the problem of energy waste caused by the inability of gas-fired units to reasonably participate in market scheduling.

[0061] Specifically, the electricity market data includes: weather, system load forecast value on the operation day, regional frequency regulation capacity demand value on the operation day, standby capacity demand on the operation day, historical electricity market operation data, historical frequency regulation market operation data, and historical standby market operation data; among which, the historical electricity market operation data includes: declared price, clearing price and clearing quantity; the historical frequency regulation market operation data includes: declared price, declared period, clearing price and clearing quantity; the historical standby market operation data includes: declared price, clearing price and clearing capacity;

[0062] The various types of markets include electric energy market, frequency regulation auxiliary service market, peak load regulation auxiliary service market, and standby auxiliary service market;

[0063] Gas-fired unit parameter data include marginal cost of power generation and installed capacity.

[0064] In some embodiments, the gas unit price is optimized based on the gas unit price optimization model to obtain the optimal price combination, including:

[0065] Based on the electricity market data, an initial parent population including N price combinations is generated within the price range in which the gas units participate in the market;

[0066] Based on the electricity market data, for each group of initial parent populations, under preset constraints, respectively simulate the transaction tendency in the electricity market, and calculate the objective function in each trading market;

[0067] Based on the calculation results, the initial parent population is quickly non-dominated sorted, and then selection, crossover, and mutation are performed to complete the first generation of evolution and obtain the initial child population;

[0068] Then, based on the genetic algorithm of non-dominated sorting with elite strategy and the superior-inferior solution distance method, iterations are performed to obtain the optimal price combination.

[0069] This application provides a gas unit price optimization process based on power market data, which uses a genetic algorithm (particularly a non-dominated sorting genetic algorithm with an elite strategy, i.e., NSGA-II) and a superior-inferior solution distance method (TOPSIS). The following are the detailed steps of this process:

[0070] First: within the market price range of gas turbines, N groups of different price combinations are randomly generated to form the initial parent population;

[0071] The details are as follows: 1. Define the price range: Determine the possible price range for gas units to participate in the market. This range can be based on historical data, market rules, or the cost structure of the unit. 2. Determine the number of combinations (N): N represents the number of price combinations in the initial parent population. The population size affects the diversity of the algorithm and the quality of the final solution. 3. Randomly generate price combinations: Randomly generate N groups of prices within a given price range. Each group of prices may include the declared prices (P1, P2, P3, etc.) of the electric energy market, frequency regulation market, peak regulation market, and reserve market. 4. Ensure diversity: When generating price combinations, ensure diversity in the population to cover different possibilities within the price range and avoid local optimality. 5. Record and evaluate: Record each group of price combinations and prepare to evaluate them. The evaluation will be based on simulated transaction data from the electricity market. 6. Preset constraints: When generating price combinations, consider any preset constraints, such as price upper and lower limits, unit operation restrictions, etc. 7. Initialize population attributes: Initialize the attributes required by the genetic algorithm for each group of price combinations, such as fitness value, congestion, etc.

[0072] After that, the historical and forecast data of the electricity market (such as the demand and price of electric energy, frequency regulation, peak regulation, and reserve market) are used to simulate the trading behavior of each group of parent populations in the market under preset constraints. The objective functions of each price combination in each market are calculated, which may include revenue, cost, transaction volume, etc. According to the simulation results, the initial parent population is non-dominated and sorted to identify the Pareto optimal solution. The Pareto optimal solution refers to a solution in which no other solution among multiple objectives is better than all objectives at the same time. The non-dominated sorted parent population is subjected to selection, crossover, and mutation operations to generate a new child population. These genetic algorithm operations help explore the solution space and increase the diversity of the population. After completing the above operations, the initial child population is obtained, which is the evolutionary result of the first generation.

[0073] After that, iterative optimization is performed: a non-dominated sorting genetic algorithm with an elite strategy is used, combined with the good-bad solution distance method, to perform multi-generation iterative optimization on the subpopulation. In each generation, the non-dominated sorting, selection, crossover, and mutation steps are repeated, and the elite strategy is applied to ensure that the excellent solution can be passed on to the next generation.

[0074] After a certain number of iterations, the non-inferior solution set is evaluated according to the TOPSIS method, the relative proximity of each solution is calculated, and the solution with the largest relative proximity is selected as the optimal price combination. Finally, the optimal price combination of gas units in the electric energy market, frequency regulation market, peak regulation market and reserve market is output, and these combinations achieve the best trade-off between multiple objectives.

[0075] This process combines the global search capability of genetic algorithms and the solution evaluation capability of TOPSIS, aiming to find the optimal bidding strategy for gas-fired units in complex electricity markets to maximize their economic benefits and meet market demand.

[0076] Specifically, the preset constraints include: power relationship constraints:

[0077] The power relationship constraint formula is as follows:

[0078] When the middle bidder is in standby mode:

[0079] Q1+Q2≤T

[0080] Q1+Q3≤T

[0081] When the middle bid is negative standby:

[0082] Q1+Q2≤T

[0083] Q1-Q3≥T 最小

[0084] Among them, the declared price of gas units participating in the electricity energy market is P1, the winning bid output is Q1, and the clearing electricity price is U1;

[0085] The bid price of the frequency regulation auxiliary service market is P2, the frequency regulation bid period is t, the winning bid output is Q2, the clearing period is t1, and the clearing price is U2;

[0086] The bid price for the standby ancillary service market is P3, the winning capacity is Q3, the clearing price is U3, and the clearing period is t2;

[0087] The objective functions corresponding to the transaction tendency and power generation cost of various types of markets include:

[0088] The revenue function of the electric energy market, the revenue function of the frequency regulation ancillary service market, the revenue function of the peak load regulation ancillary service market and the revenue function of the reserve ancillary service market;

[0089] The revenue function is constructed based on cost, price, and output.

[0090] In the electricity market, the operation strategy of gas units needs to comprehensively consider the transaction trends and power generation costs of various types of markets. The following are the basic building blocks and considerations of these market revenue functions:

[0091] Specific

[0092] 1. Electricity market revenue function: The revenue function is usually based on the selling price of electricity (market clearing price or declared price) and the amount of electricity sold.

[0093] Profit = electricity price × electricity sold - power generation cost.

[0094] 2. Frequency regulation ancillary service market revenue function:

[0095] The revenue from frequency regulation services is generally based on the price of providing frequency regulation services and the frequency regulation output or capacity.

[0096] Revenue = frequency regulation service price × frequency regulation output or capacity - frequency regulation service cost.

[0097] 3. Peak load ancillary service market revenue function:

[0098] The revenue from peak-shaving services is based on the price of the peak-shaving services and the peak-shaving output or capacity.

[0099] Revenue = peak-shaving service price × peak-shaving output or capacity - peak-shaving service cost.

[0100] 4. Reserve ancillary service market revenue function:

[0101] The revenue from the backup service is based on the price of the backup service and the backup capacity provided.

[0102] Revenue = backup service price × backup capacity - backup service cost.

[0103] Furthermore, the cost of power generation includes fuel cost, operation and maintenance cost, environmental cost, etc. Service cost may include equipment depreciation, operating cost, opportunity cost, etc. It should be noted that environmental cost includes low-carbon value. That is, environmental cost includes the benefits brought by the low carbon of gas-fired units. Specifically, low-carbon value may be reflected in the additional income or subsidies obtained by gas-fired units due to the use of clean energy or low-carbon emission technology. Price factors refer to the declared price that gas-fired units can set or the clearing price determined by the market in various markets. Output refers to the amount of electricity actually sold by gas-fired units in the electric energy market. Capacity refers to the service capabilities provided by gas-fired units in the auxiliary service market, such as frequency regulation capacity, peak regulation capacity and standby capacity. Specifically, low-carbon value may be reflected in the additional income or subsidies obtained by gas-fired units due to the use of clean energy or low-carbon emission technology.

[0104] Furthermore, the optimal price combination is obtained through iteration, including:

[0105] After obtaining the initial parent population and the initial child population, the parent and child populations are merged, and the corresponding objective functions are calculated for the merged populations. According to the elite strategy, individuals are selected from the merged population to generate a new parent population, and then the new parent population is selected, crossed, and mutated to generate a new child population. This process describes a typical genetic algorithm iteration process, especially when using the non-dominated sorting genetic algorithm with elite strategy (NSGA-II). The following are the detailed steps of this process: Generation of initial parent population and child population: The initial parent population is a set of solutions generated by random or experience-based methods, while the initial child population is obtained by selecting, crossing, and mutating the parent population. Parent and child population merging: The initial parent population and the initial child population are merged into a large population to prepare for the next step of non-dominated sorting and elite strategy selection. Calculation of objective function: For each individual in the merged population, its objective function value is calculated according to the revenue function of the electric energy market, frequency regulation market, peak regulation market, and reserve market. Fast non-dominated sorting: Perform non-dominated sorting on the merged population according to the objective function value, divide individuals into different non-dominated layers, and determine the Pareto advantage of each individual. Elite strategy selection: In each non-dominated layer, select individuals according to crowding or other diversity indicators to ensure that excellent individuals can be retained and participate in the evolution of the next generation. Generate a new parent population: Select a certain number of individuals from the merged population according to the elite strategy to form a new parent population. Selection, crossover, and mutation processing: Perform genetic algorithm operations on the new parent population: Selection: Select individuals from the parent population according to fitness for crossover and mutation. Crossover: Exchange genetic information between selected individuals through crossover operations to produce new offspring. Mutation: Perform mutation operations on offspring individuals to introduce new genetic diversity. Generate a new subpopulation: The individuals obtained through selection, crossover, and mutation operations form a new subpopulation. Iterative evolution: Repeat the above process with the new subpopulation for multiple generations until the stopping condition is met (such as reaching the maximum number of iterations or the quality of the solution reaches the preset standard). Convergence and diversity: Throughout the process, it is necessary to balance the convergence and diversity of solutions to avoid premature convergence and ensure that the global optimal solution is found. Through this process, the genetic algorithm can continuously optimize the solution in multiple generations of iterations, and finally obtain a set of Pareto optimal solutions that balance multiple objectives. These solutions can provide the best price and strategy options for the operation of gas units in the power market.

[0106] In some embodiments, iterating to obtain the optimal price combination further includes:

[0107] The gas unit price optimization model based on the non-dominated sorting genetic algorithm with an elite strategy calculates the objective function in each trading market after merging the parent and child populations, performs fast non-dominated sorting on the merged population, then calculates the congestion degree of individuals in each non-dominated layer, and then selects individuals according to the elite strategy to generate a new parent population.

[0108] The optimization model described is an iterative multi-objective optimization process that uses a non-dominated sorting genetic algorithm with an elitist strategy (NSGA-II). The following are the detailed steps of the process:

[0109] Merge parent and child populations: After each generation of the genetic algorithm, merge the parent and child populations into a single population. Calculate the objective function: For each individual in the merged population, calculate its objective function in each trading market. These objective functions may include the revenue of the electric energy market, the revenue of the frequency regulation auxiliary service market, the revenue of the peak load auxiliary service market, and the revenue of the reserve auxiliary service market. Fast non-dominated sorting: Based on the objective function value, perform fast non-dominated sorting on the individuals in the merged population. This will determine the quality of each individual in the Pareto sense, that is, whether the individual is dominated by other individuals. Crowding calculation: For each individual in each non-dominated layer (or Pareto layer), calculate its crowding. Crowding is an indicator of the degree of crowding in the neighborhood around an individual, which is used to maintain population diversity. Elite strategy selection of individuals: Based on the non-dominated sorting and crowding, apply the elite strategy to select individuals. The elite strategy ensures that excellent individuals can be selected into the next generation of parent populations. Generate a new parent population: The individuals selected according to the elite strategy constitute a new parent population. These individuals will be used for selection, crossover and mutation operations in the next generation. Generate a new subpopulation: Iterative optimization: Repeat the above steps until the stopping condition is met, such as reaching the maximum number of iterations or the quality of the solution reaches the preset standard. During the entire optimization process, it is necessary to balance the convergence and diversity of the solution to ensure that the algorithm can explore a wide range of solution spaces and find the global optimal solution.

[0110] Through this process, the optimization model is able to find the best price combination for the gas units’ participation in the electricity market.

[0111] In some embodiments, after obtaining the new parent population and the new child population, it is necessary to determine whether the evolutionary algebra has reached the specified upper limit value. If so, the Pareto frontier corresponding to the non-inferior solution set of the price of the gas unit participating in the market is output respectively; otherwise, the evolutionary algebra is increased by 1, and a new parent population and a new child population are generated again.

[0112] The above outlines the process of iterative evolution and termination condition checking in genetic algorithms, especially the steps when using the non-dominated sorting genetic algorithm with elite strategy (NSGA-II) for gas unit price optimization. The following is a detailed description of this process:

[0113] Generate a new population: Generate a new subpopulation from the current parent population through selection, crossover and mutation operations. Merge the parent population and the subpopulation: Merge the newly generated subpopulation with the current parent population to form a merged population. Evolutionary generation check: After merging the new subpopulation, check whether the current evolutionary generation (i.e., the number of iterations) has reached the preset upper limit. Reach the upper limit: If the evolutionary generation has reached or exceeded the preset upper limit, it means that the algorithm has completed the predetermined number of iterations, and the iteration should be terminated at this time. Output Pareto frontier: Perform non-dominated sorting on the merged population at the termination of the iteration to identify the non-inferior solution set, i.e., the Pareto optimal solution set. These solutions achieve the best trade-off between multiple objectives, and no other solution can be better at all objectives at the same time. Output of Pareto frontier: Output the market price of the gas units corresponding to the Pareto optimal solution set. These price combinations are the optimal strategies found by the algorithm. Not reaching the upper limit: If the evolutionary generation does not reach the preset upper limit, the evolutionary generation is increased by 1, indicating that the algorithm will enter the next iteration cycle. Generate a new parent population and a new child population again: In a new iteration cycle, use the current Pareto optimal solution set as the parent population, repeat the selection, crossover and mutation operations, and generate a new child population. Iterative optimization: Continue the iterative process until the termination condition is met, in the hope of finding a better Pareto optimal solution set. The Pareto frontier output when the algorithm terminates represents the optimal price strategy for gas units to participate in the market under current conditions.

[0114] This process ensures that the genetic algorithm can output the optimal solution set after reaching the predetermined number of iterations, while also maintaining the flexibility of the algorithm, allowing it to continue exploring the solution space when the iteration limit is not reached to find possible better solutions. In this way, the algorithm can effectively balance the convergence speed and the quality of the solution.

[0115] In some embodiments, iterating to obtain the optimal price combination further includes:

[0116] According to the TOPSIS method, the non-inferior solution sets are evaluated respectively, and the optimization parameters with the largest relative proximity are selected as the prices for the gas units to participate in the market. Different price combinations for the gas units to participate in various markets such as frequency regulation, peak regulation, and standby are obtained.

[0117] The details are as follows: the objective function values ​​of each price combination are counted and normalized, and the maximum value of the objective function value is used to form an ideal solution, and the minimum value is used to form a negative ideal solution;

[0118] Calculate the relative closeness of each price combination to rank the parameters of each group. The greater the relative closeness, the better the corresponding price combination optimization parameters. The expression of relative closeness C is as follows:

[0119]

[0120] Where: D1 is the distance to the ideal solution; D2 is the distance to the negative ideal solution.

[0121] The TOPSIS method is a commonly used decision support method for evaluating and ranking alternative solutions under multiple criteria or multiple objectives. The following are the specific steps for evaluating the non-inferior solution set of the gas unit price optimization problem using the TOPSIS method:

[0122] 1. Data Collection:

[0123] The values ​​of each price combination on each objective function are counted. These objective functions may include electricity energy market revenue, frequency regulation ancillary service market revenue, peak load ancillary service market revenue and standby ancillary service market revenue, etc.

[0124] 2. Normalization processing:

[0125] In order to eliminate the influence of different objective function dimensions and numerical ranges, the objective function values ​​are normalized. The normalization formula is usually: Among them, x ij is the value of the jth objective function on the price combination, r ij is the normalized value.

[0126] 3. Determine the ideal solution and negative ideal solution:

[0127] The ideal solution is the one where all objective function values ​​are maximized (for benefit objectives) or minimized (for cost objectives).

[0128] A negative ideal solution is a solution where all objective function values ​​are minimized (for benefit objectives) or maximized (for cost objectives).

[0129] 4. Calculate relative proximity:

[0130] For each price combination, calculate its distance from the ideal solution and the negative ideal solution. Usually, the Euclidean distance is used for calculation, and the formula is:

[0131]

[0132] in, is the distance between the i-th price combination and the ideal solution, is the distance to the negative ideal solution, r *j and r -j are the values ​​of the jth objective function in the ideal solution and the negative ideal solution, respectively.

[0133] 5. Calculate relative proximity:

[0134] The relative proximity C_i can be calculated by the following formula: This ratio indicates how close the i-th price combination is to the ideal solution, while taking into account the distance from the negative ideal solution.

[0135] 6. Sorting and selection:

[0136] All price combinations are sorted according to the calculated relative proximity. The price combination with greater relative proximity has better optimization parameters.

[0137] 7. Determine the best price combination:

[0138] The price combination with the largest relative proximity is selected as the optimal solution. These solutions provide the optimal bidding strategy for gas units in the electric energy market, frequency regulation market, peak regulation market and reserve market.

[0139] Through the TOPSIS method, decision makers can quantify the comprehensive performance of different price combinations and select the strategy that achieves the best balance between multiple objectives. This method is particularly suitable for optimizing the bidding strategy of gas units in the power market because it can simultaneously consider multiple objectives such as maximizing revenue and minimizing costs.

[0140] In summary, the gas unit price optimization method based on genetic algorithm and superior and inferior solution distance method provided in this application is as follows: Figure 2 As shown, the method includes:

[0141] Step S201: Generate an initial parent population of size N within the price range in which the gas generator sets participate in the market.

[0142] Step S202: Perform fast non-dominated sorting on the initial parent population, complete the first generation of evolution, and obtain the initial child population. Using weather, historical electricity prices, system load forecast and other parameters as input parameters, calculate the transaction tendency of various markets such as electric energy, frequency regulation, peak regulation, and standby, and the objective function corresponding to the power generation cost, perform fast non-dominated sorting on the initial parent population, and then perform selection, crossover, and mutation processing to complete the first generation of evolution and obtain the initial child population.

[0143] Step S203, merge the parent and child populations, perform fast non-dominated sorting on the merged population, and select individuals according to the elite strategy to generate a new parent population. After merging the parent and child populations, calculate the transaction tendency and the objective function corresponding to the power generation cost of various types of markets such as electric energy, frequency regulation, peak regulation, and standby, perform fast non-dominated sorting on the merged population, and then calculate the congestion degree of individuals in each non-dominated layer, and then select individuals according to the elite strategy to generate a new parent population.

[0144] Step S204: performing selection, crossover and mutation processing on the new parent population to generate a new child population.

[0145] Step S205, determine whether the evolutionary generation has reached the specified upper limit value, if so, execute step S206, otherwise, increase the evolutionary generation value by 1 and return to step S203.

[0146] Step S206: Output the non-inferior solution set of the price of the gas generator set participating in the market. According to the characteristics of various markets such as electric energy, frequency regulation, peak regulation, and standby, the Pareto frontier corresponding to the non-inferior solution set of the price of the gas generator set participating in the market is output respectively.

[0147] Step S207: Evaluate the non-inferior solution set according to TOPSIS, and select the optimization parameter with the largest relative proximity as the optimal parameter. Count the objective function values ​​of each group of parameters and normalize them, calculate the relative proximity of each group of parameters to rank the relative advantages and disadvantages of each group of parameters, and the greater the relative proximity, the better the group of optimization parameters.

[0148] Step S208, respectively select the optimization parameters with the largest relative proximity as the price for the gas unit to participate in the market, and obtain different price combinations for the gas unit to participate in various markets such as electric energy, frequency regulation, peak regulation, and standby.

[0149] In summary, the basic framework of the gas unit price optimization model is as follows: Figure 3 As shown:

[0150] In the price range of gas units participating in the market, the initial parent population is generated, and the initial parent population is quickly non-dominated sorted according to the transaction tendency of various markets such as electric energy, frequency regulation, peak regulation, and standby, and the objective function corresponding to the power generation cost, to obtain the initial child population, and then the parent and child populations are merged. According to the transaction tendency of various markets and the objective function corresponding to the power generation cost, individuals are selected according to the elite strategy to generate a new parent population, and the new parent population is selected, crossover, and mutation are processed to generate a new child population. It is judged whether the evolutionary generation reaches the specified upper limit value. If it reaches it, the Pareto frontier corresponding to the non-inferior solution set of the price of gas units participating in the market is output respectively. Otherwise, the evolutionary generation is increased by 1, and a new parent population and a new child population are generated again. According to the superior and inferior solution distance method, the non-inferior solution sets are evaluated respectively to obtain the optimal price combination for gas units to participate in various markets such as frequency regulation, peak regulation, and standby.

[0151] Through the description of the above implementation methods, technicians in this field can clearly understand the function of the gas unit price optimization model based on the non-dominated sorting genetic algorithm with elite strategy. The combination of NSGA-II and TOPSIS can obtain the optimal price combination for gas units to participate in various markets, and solve the problem that gas units cannot directly enter the southern regional electricity spot market due to the high natural gas price.

[0152] Exemplary Electronic Devices

[0153] Below, reference Figure 4 To describe an electronic device according to an embodiment of the present application. Figure 4 A block diagram of an electronic device according to an embodiment of the present application is illustrated.

[0154] like Figure 4 As shown, electronic device 400 includes one or more processors 410 and memory 420 .

[0155] The processor 410 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 400 to perform desired functions.

[0156] The memory 420 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 410 may run the program instructions to implement the gas unit price optimization method based on genetic algorithm and superior and inferior solution distance method of each embodiment of the present application described above and / or other desired functions. Various contents such as category correspondence may also be stored in the computer-readable storage medium.

[0157] In one example, the electronic device 400 may further include: an input device 430 and an output device 440 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0158] In addition, the input device 430 may also include, for example, a keyboard, a mouse, an interface, etc. The output device 440 may output various information to the outside, including analysis results, etc. The output device 440 may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0159] Of course, to simplify, Figure 4 Only some of the components in the electronic device related to the present application are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, the electronic device may further include any other appropriate components according to specific application conditions.

[0160] Exemplary computer program products and computer-readable storage media

[0161] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the gas unit price optimization method based on genetic algorithm and superior and inferior solution distance method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0162] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0163] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the gas unit price optimization method based on genetic algorithm and superior and inferior solution distance method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0164] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0165] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A gas unit price optimization method based on genetic algorithm and superior and inferior solution distance method, characterized in that: include: Build a gas unit price optimization model; The gas unit price optimization model constructs an objective function based on the transaction tendency and power generation cost of various markets; uses a non-dominated sorting genetic algorithm with an elite strategy and a superior-inferior solution distance method to solve the optimal price combination of the gas unit participating in the market based on the gas unit parameter data, load forecast data and power market data; the optimal price combination includes the optimal price of the gas unit participating in various markets; Based on the gas unit price optimization model, the gas unit price is optimized to obtain the optimal price combination.

2. The method according to claim 1, characterized in that: The step of optimizing the price of the gas generator set based on the gas generator set price optimization model to obtain the optimal price combination includes: Based on the electricity market data, an initial parent population including N price combinations is generated within the price range in which the gas units participate in the market; Based on the electricity market data, for each group of initial parent populations, under preset constraints, respectively simulate the transaction tendency in the electricity market, and calculate the objective function in each trading market; Based on the calculation results, the initial parent population is quickly non-dominated sorted, and then selection, crossover, and mutation are performed to complete the first generation of evolution and obtain the initial child population; Then, based on the genetic algorithm of non-dominated sorting with elite strategy and the superior-inferior solution distance method, iterations are performed to obtain the optimal price combination.

3. The method according to claim 2, characterized in that The electricity market data include: weather, system load forecast value on the operation day, regional frequency regulation capacity demand value on the operation day, standby capacity demand on the operation day, historical electricity market operation data, historical frequency regulation market operation data, and historical standby market operation data; among which, historical electricity market operation data include: declared price, clearing price and cleared quantity; historical frequency regulation market operation data include: declared price, declared period, clearing price and cleared quantity; historical standby market operation data include: declared price, clearing price and clearing capacity; The various types of markets include electric energy market, frequency regulation auxiliary service market, peak load regulation auxiliary service market, and standby auxiliary service market; The parameter data of gas-fired units include marginal cost of power generation P and installed capacity T.

4. The method according to claim 3, characterized in that The preset constraints include: power relationship constraints: The power relationship constraint formula is as follows: When the middle bidder is in standby mode: Q1+Q2≤T Q1+Q3≤T When the bid is negative and spare: Q1+Q2≤T Q1-Q3≥T 最小 Among them, the declared price of gas units participating in the electricity market is P1, the winning bid output is Q1, and the clearing electricity price is U1; T 最小 Minimum output for the electric energy market; The bid price of the frequency regulation auxiliary service market is P2, the frequency regulation bid period is t, the winning bid output is Q2, the clearing period is t1, and the clearing price is U2; The bid price for the standby ancillary service market is P3, the winning capacity is Q3, the clearing price is U3, and the clearing period is t2; The objective functions corresponding to the transaction tendency and power generation cost of various types of markets include: The revenue function of the electric energy market, the revenue function of the frequency regulation ancillary service market, the revenue function of the peak load regulation ancillary service market and the revenue function of the reserve ancillary service market; The revenue function is constructed based on cost, price, and output.

5. The method according to claim 3, characterized in that: Iterate to get the optimal price combination, including: After obtaining the initial parent population and the initial child population, the parent and child populations are merged, and the corresponding objective functions are calculated for the merged populations. According to the elite strategy, individuals are selected from the merged populations to generate a new parent population, and then the new parent population is selected, crossed, and mutated to generate a new child population.

6. The method according to claim 5, characterized in that Iterate to get the optimal price combination, including: The gas unit price optimization model based on the non-dominated sorting genetic algorithm with an elite strategy calculates the objective function in each trading market after merging the parent and child populations, performs fast non-dominated sorting on the merged population, then calculates the congestion degree of individuals in each non-dominated layer, and then selects individuals according to the elite strategy to generate a new parent population.

7. The method according to claim 6, characterized in that Iterate to get the optimal price combination, including: After obtaining the new parent population and the new child population, it is necessary to determine whether the evolutionary algebra has reached the specified upper limit. If so, the Pareto frontier corresponding to the non-inferior solution set of the price of the gas unit participating in the market is output respectively; otherwise, the evolutionary algebra is increased by 1, and a new parent population and a new child population are generated again.

8. The method according to claim 7, characterized in that Iterate to get the optimal price combination, including: According to the TOPSIS method, the non-inferior solution sets are evaluated respectively, and the optimization parameters with the largest relative proximity are selected as the prices for the gas units to participate in the market. Different price combinations for the gas units to participate in various markets such as frequency regulation, peak regulation, and standby are obtained.

9. The method according to claim 8, characterized in that According to the TOPSIS method, the non-inferior solution sets are evaluated separately, including: The objective function values ​​of each price combination are counted and normalized, and the maximum value of the objective function is used to form an ideal solution, and the minimum value is used to form a negative ideal solution; Calculate the relative closeness of each price combination to rank the parameters of each group. The greater the relative closeness, the better the corresponding price combination optimization parameters. The expression of relative closeness C is as follows: Where: D1 is the distance to the ideal solution; D2 is the distance to the negative ideal solution.