A method for dispatching execution equipment based on gas load forecasting
Through the implementation of equipment dispatching method based on gas load prediction, genetic algorithm is used to optimize compressor dispatching, which solves the problem of single pressure regulation strategy of gas companies and achieves lower compressor dispatching costs and higher profits of gas companies.
Patent Information
- Application Number
- CN202311484977.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-11-09
AI Technical Summary
The gas company's pressure regulation and dispatching strategy is relatively simple, which makes it difficult to balance user satisfaction and corporate cost needs, affecting user gas stability and operation and maintenance costs.
The execution equipment dispatching method based on gas load prediction uses a compressor dispatching system and a genetic algorithm optimization module to design a mathematical model to optimize the fuel, maintenance, startup, shutdown and oversupply costs of the compressor, and output a more reasonable compressor dispatching plan.
It reduces compressor dispatching costs by about 24%, increases gas company profits, and takes into account customer satisfaction and operating costs.
Smart Images

Figure CN117474263B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of energy management, and in particular relates to an execution equipment scheduling method based on gas load prediction. Background Art
[0002] Natural gas is one of the world's recognized clean fuels. With the continuous improvement of environmental awareness and requirements, the consumption of natural gas is also gradually increasing. In recent years, the consumption of urban gas in my country has generally shown a rapid growth trend, and the requirements for the pressure regulation capabilities of gas companies have become increasingly higher. When the user's natural gas consumption is small and the brake horsepower requirement is low, the pressure regulating station only needs to turn on a small number of compressors to maintain the pipeline pressure, and some compressors need to be shut down to reduce the gas transmission volume; when the user's natural gas consumption is large, the brake horsepower requirement increases, and the pressure regulating station needs to turn on more compressors to maintain the pressure stability of the pipeline network. The opening and closing of the compressor and the combination mode will affect the stability of the user's gas consumption and the operation and maintenance cost of the pipeline network. At present, the pressure regulation dispatching strategy of the gas company is an expert system based on the dispatcher's experience. The dispatching strategy is relatively simple, and the compressor dispatching strategy is difficult to take into account both user satisfaction and enterprise cost requirements. Summary of the invention
[0003] In view of the above problems, the present invention proposes an execution equipment scheduling method based on gas load forecasting, which provides a more reasonable compressor scheduling plan based on relatively accurate natural gas load forecasting, reduces compressor scheduling costs, reduces operating costs, and increases gas company profits.
[0004] The method of the present invention is implemented as follows: a method for executing equipment scheduling based on gas load forecasting, using the following system, including:
[0005] Compressor scheduling system, including: fuel cost module, compressor startup and shutdown cost module, compressor maintenance cost module, compressor oversupply cost module;
[0006] The compressor scheduling optimization system comprises: a gas load prediction module, a scheduling optimization module based on a genetic algorithm and a solution generation module, wherein the method comprises the following steps:
[0007] Step 1: Design a compressor scheduling mathematical model module. This module completes the mathematical model design of the fuel cost, maintenance cost, startup cost, shutdown cost, and oversupply cost of the gas compressor operation, and constitutes the objective function of the compressor scheduling, including:
[0008] Step 1.1 Calculate and determine the decision variable, which is the state of the compressor, indicating whether the compressor is turned on or off;
[0009] Step 1.2 calculates and determines the fuel cost of the compressor, which is the cost of all fuel consumed by running each compressor within a specified time range;
[0010] Step 1.3 Calculate and determine the maintenance cost of the compressor. The maintenance cost refers to the cost of maintaining each compressor;
[0011] Step 1.4 Calculate and determine the startup cost of the compressor, including the cost of the energy spent restarting the compressor;
[0012] Step 1.5 Calculate and determine the shutdown cost of the compressor;
[0013] Step 1.6 Calculate and determine the oversupply cost of the compressor: Oversupply cost refers to unnecessary compressor operation;
[0014] Step 2: Design a compressor scheduling optimization method module. This module uses the predicted value of gas load and genetic algorithm to design a compressor scheduling algorithm, and finally outputs the compressor scheduling plan for staff reference, including:
[0015] Step 2.1 Obtain the forecast data of natural gas load for one week;
[0016] Step 2.2 Design a genetic algorithm to solve the optimization of compressor portfolio scheduling; the objective function of the genetic algorithm is the sum of the costs of fuel, startup, maintenance, and shutdown;
[0017] Step 3: Output the compressor scheduling optimization plan.
[0018] Furthermore, the step 1.2 calculates and determines the fuel cost of the compressor Calculated using the following formula:
[0019]
[0020] in is the fuel cost of the electric compressor or natural gas compressor, is the total number of compressors, is the number of operation cycles, Indicates The compressor Status during the operation cycle;
[0021] Furthermore, the maintenance cost of the compressor in step 1.3 is The calculation is done using the following formula:
[0022]
[0023] in is the maintenance cost of the electric compressor or natural gas compressor;
[0024] Furthermore, step 1.4 calculates the compressor startup cost: the energy spent restarting the compressor will incur a cost, and the startup cost of the natural gas compressor and the electric compressor The mathematical expression is as follows:
[0025]
[0026] in is the startup cost of the electric compressor or natural gas compressor;
[0027] Furthermore, the startup or shutdown cost of the compressor is given as a penalty cost, which will be added to the total operating cost. One operating cycle is 7 hours. The shutdown cost of the compressor in step 1.5 is as follows:
[0028]
[0029] in, is the first 4 hours of a cycle, It indicates the change of compressor status within 3 consecutive hours. is the penalty cost when the compressor runs less than 3 cycles, Indicates The compressor The state of the cycle.
[0030] Furthermore, the step 1.6 determines the oversupply cost of the compressor: the oversupply cost refers to unnecessary compressor operation, the oversupply cost It is expressed as follows:
[0031]
[0032] in represents the penalty cost of compressor oversupply, It is The supply of a compressor, Is the operating cycle customer needs.
[0033] Furthermore, the operations of selecting roulette wheel selection, single-point crossover, single-bit mutation and elite replacement in the genetic algorithm in step 2.2 include the sum of fuel cost, maintenance cost of each compressor, startup cost of the compressor, penalty cost of discontinuous operation and penalty cost of oversupply, and the fitness function formula is as follows:
[0034]
[0035] .
[0036] Furthermore, the method is applicable to natural gas load data of cities, regions, and enterprises.
[0037] The beneficial effects of the present invention are as follows: by designing a mathematical model for compressor scheduling optimization, obtaining a scheduling optimization objective function, designing a scheduling optimization method, and performing actual verification based on actual data, the size of operating costs under the constraint of satisfying customer satisfaction is compared, taking both cost and customer satisfaction into account, making the compressor scheduling plan more reasonable, and solving the problem of compressor combination scheduling optimization. The compressor scheduling cost can be reduced by about 24%, and there will be slight differences between different compression stations in different cities, thereby increasing the profits of gas companies.
[0038] The method of the present invention is applicable to natural gas load data of cities, regions and enterprises.
[0039] In order to more clearly illustrate the technical solution of the present invention, the present invention is further explained in detail below in conjunction with the accompanying drawings and specific implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A schematic diagram of the steps of the method of the present invention;
[0041] Figure 2 The figure is a schematic block diagram of the system structure of the present invention. DETAILED DESCRIPTION
[0042] Embodiment 1:
[0043] A method for scheduling execution equipment based on gas load forecasting, such as Figure 1 , Figure 2 As shown, the following system is adopted, including: system one, compressor scheduling system 1, including: fuel cost module, compressor startup and shutdown cost module, compressor maintenance cost module, compressor oversupply cost module; system two, compressor scheduling optimization system 2, including: gas load prediction module, scheduling optimization module based on genetic algorithm and solution generation module, characterized in that the method includes the following steps:, the method includes the following steps:
[0044] Step 1: Design a mathematical model for compressor scheduling, complete the mathematical model design of fuel cost, maintenance cost, startup cost, shutdown cost, and oversupply cost of gas compressor operation, and constitute the objective function of compressor scheduling, including:
[0045] Step 1.1 Calculate and determine the decision variable, which is the state of the compressor, indicating whether the compressor is turned on or off;
[0046] Step 1.2 calculates and determines the fuel cost of the compressor, which is the cost of all fuel consumed by running each compressor within a specified time range;
[0047] Step 1.3 Calculate and determine the maintenance cost of the compressor. The maintenance cost refers to the cost of maintaining each compressor;
[0048] Step 1.4 Calculate and determine the startup cost of the compressor. The energy spent restarting the compressor will incur a cost.
[0049] Step 1.5: Calculate and determine the shutdown cost of the compressor;
[0050] Step 1.6 Calculate and determine the oversupply cost of the compressor: Oversupply cost refers to unnecessary compressor operation;
[0051] Step 2: Design a compressor scheduling optimization method module. This module uses the predicted value of gas load and genetic algorithm to design a compressor scheduling algorithm, and finally outputs the compressor scheduling plan for staff reference, including:
[0052] Step 2.1 Obtain the forecast data of natural gas load for one week;
[0053] Step 2.2 Design a genetic algorithm to solve the optimization of compressor portfolio scheduling; the objective function of the genetic algorithm is the sum of the costs of fuel, startup, maintenance, and shutdown;
[0054] Step 3: Output the compressor scheduling optimization plan.
[0055] Embodiment 2:
[0056] Based on the first embodiment, this embodiment is a refinement and limitation of the first embodiment. Step 1 of the method in this embodiment includes:
[0057] Step 1.1, first determine the decision variable, that is, determine whether the compressor is turned on or off. The decision variable The definition is as follows:
[0058] Step 1.2, determine the fuel cost of the compressor. The fuel cost is the total fuel cost consumed by running each compressor within a specified time range, including gas, electricity, etc. The compressor is an electric compressor or a natural gas compressor. The electric compressor consumes more energy when it is turned on or off than the natural gas compressor. Therefore, the operating cost of the electric compressor and fuel is usually higher than that of the natural gas compressor. Fuel cost of the compressor Calculated using the following formula:
[0059]
[0060] in is the fuel cost of the electric compressor or natural gas compressor, is the total number of compressors, is the number of operation cycles, Indicates The compressor Status during the operation cycle;
[0061] Step 1.3, Compressor Maintenance Cost, Maintenance cost refers to the cost of maintaining each compressor. Each compressor can only run for a limited number of hours, after which it must be shut down for maintenance. Compressor Maintenance Cost The calculation is done using the following formula:
[0062]
[0063] in is the maintenance cost of the electric compressor or natural gas compressor;
[0064] Step 1.4, determine the compressor startup cost. The energy spent restarting the compressor incurs a cost. Startup costs for natural gas compressors and electric compressors The mathematical expression is as follows:
[0065]
[0066] in is the startup cost of the electric compressor or natural gas compressor;
[0067] Step 1.5, determine the shutdown cost of the compressor. If the compressor is turned on and off too frequently, it will cause excessive wear and tear on the equipment. The number of on and off times should be reduced as much as possible. After being turned on, the compressor should run continuously for as long as possible. In this embodiment, the compressor should run continuously for at least 3 hours. The startup or shutdown cost of the compressor is given as a penalty cost and added to the total operating cost. One operating cycle is 7 hours, and the shutdown cost of the compressor is as follows:
[0068]
[0069] in, is the first 4 hours of a cycle, It indicates the change of compressor status within 3 consecutive hours. is the penalty cost when the compressor runs less than 3 cycles, Indicates The compressor The state of the cycle.
[0070] Step 1.6, determine the oversupply cost of the compressor. Oversupply cost refers to unnecessary compressor operation. During operation, the total amount of natural gas in the pipeline is used as an indicator of customer demand. When the compressor over-compresses and exceeds this demand, this operation will incur unnecessary operating costs. Oversupply cost It is expressed as follows:
[0071]
[0072] in represents the penalty cost of compressor oversupply, It is The supply of a compressor, Is the operating cycle customer needs.
[0073] Step 2: Design a mathematical model for compressor scheduling optimization, use the predicted value of gas load and genetic algorithm to design a compressor scheduling algorithm, and finally output the compressor scheduling plan for staff reference, including:
[0074] The design uses genetic algorithm to solve the optimization of compressor combination scheduling. The objective function of the genetic algorithm is the sum of fuel, startup, maintenance and shutdown costs. The compressor scheduling algorithm is designed using the predicted value of gas load and genetic algorithm, and finally the compressor scheduling plan is output for reference by the staff. The specific implementation is as follows:
[0075] Step 2.1, obtain the forecast data of natural gas load for one week;
[0076] Step 2.2, design and use genetic algorithm to solve the optimization of compressor portfolio scheduling. The objective function of genetic algorithm is the sum of fuel, startup, maintenance and shutdown costs.
[0077] The first step in the design of a genetic algorithm is to encode the problem space of the operating plan. The entire operating plan is encoded in a chromosome. There are five compressors running for eight hours, and the change of the compressor status only occurs at the beginning of each hour, so there are a total of 5 times 8 bits in the chromosome, which is 40 bits. If the compressor is on, it corresponds to position 1; if the compressor is off, it corresponds to position 0. If a chromosome is represented by an array express, Indicates the status of the five compressors in the first hour, represents the state of the same compressor in the second hour, and so on. Binary encoding reduces the number of constraints to one. In the pipeline problem, the state of a compressor has a discrete value of 0 or 1, which can be represented as a binary bit in the chromosome.
[0078] In the genetic algorithm, we selected the operations of roulette wheel selection, single-point crossover, single-bit mutation and elite replacement. The parameters of the genetic algorithm are as follows: the population size is 30 or 50, the crossover rate value is 0.6, and the mutation rate value is 0.01. The algorithm will stop when one of the following conditions is met: the maximum number of generations is 300; there is no improvement in the objective function for 100 consecutive generations of sequences; there is no improvement in the objective function within an interval of 50 seconds.
[0079] The fitness function is a mathematical model in the compressor scheduling system 1, which includes the fuel cost, the maintenance cost of each compressor, the startup cost of the compressor, the penalty cost of discontinuous operation, and the sum of the penalty costs of oversupply. The fitness function formula is as follows:
[0080]
[0081] .
[0082] Step 3. Output the compressor scheduling optimization plan for the dispatcher's reference.
[0083] The present invention discloses an execution equipment scheduling method based on gas load prediction, including a compressor scheduling mathematical model module and a compressor scheduling optimization method module design, which utilizes the predicted value of gas load and a genetic algorithm to output a more reasonable compressor scheduling plan, thereby reducing the compressor scheduling cost and increasing the profit of the gas company.
[0084] The contents not described in detail in the specification of the present invention belong to the prior art known to the professional and technical personnel in this field.
[0085] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for executing equipment scheduling based on gas load forecasting, using the following system, including: Compressor scheduling system, including: fuel cost module, compressor startup and shutdown cost module, compressor maintenance cost module, compressor oversupply cost module; The compressor scheduling optimization system comprises: a gas load prediction module, a scheduling optimization module based on a genetic algorithm and a solution generation module, wherein the method comprises the following steps: Step 1: Design a mathematical model for compressor scheduling, complete the mathematical model design of fuel cost, maintenance cost, startup cost, shutdown cost, and oversupply cost of gas compressor operation, and constitute the objective function of compressor scheduling, including: Step 1.1 Calculate and determine the decision variable. The decision variable is the state of the compressor, indicating whether the compressor is turned on or off. The decision variable X i The definition is as follows: Step 1.2 Calculate and determine the fuel cost of the compressor. The fuel cost is the total fuel cost consumed by running each compressor within a specified time range. Step 1.3 Calculate and determine the maintenance cost of the compressor. The maintenance cost refers to the cost of maintaining each compressor. Step 1.4 Calculate and determine the startup cost of the compressor, including the energy cost of restarting the compressor. The mathematical expression of the startup cost of the natural gas compressor and the electric compressor is as follows: Where S g is the startup cost of the electric compressor or natural gas compressor, n c is the total number of compressors, n p is the number of operating cycles, X i,p represents the state of the i-th compressor at p operation cycle; Step 1.5 Calculate and determine the compressor shutdown cost, The shutdown cost of the compressor is given as a penalty cost, which will be added to the total operating cost. For an operating cycle of 7 hours, the shutdown cost Shutdown_cost is as follows: Where j is the first 4 hours of a cycle, k represents the change of compressor status within 3 consecutive hours, PC i is the penalty cost for running the compressor less than 3 hours, X i,j+k represents the state of the i-th compressor at j+k hours; Step 1.6 Calculate and determine the oversupply cost of the compressor: Oversupply cost refers to unnecessary compressor operation. The oversupply cost Over_Supply-Cost is expressed as follows: PC o represents the penalty cost of compressor oversupply, H i is the supply of the ith compressor, D P is the customer demand for operation period p, X i,p represents the state of the i-th compressor at p operation cycle; Step 2: Design a mathematical model for compressor scheduling optimization, use the predicted value of gas load and genetic algorithm to design a compressor scheduling algorithm, and finally output the compressor scheduling plan for staff reference, including: Step 2.1 obtains the forecast data of natural gas load for one week. Step 2.2 Design a genetic algorithm to solve the compressor portfolio scheduling optimization; the objective function of the genetic algorithm is the sum of the costs of fuel, startup, oversupply, maintenance, and shutdown, The operations of selecting roulette wheel selection, single-point crossover, single-bit mutation and elite replacement in the genetic algorithm include the sum of fuel cost, maintenance cost of each compressor, startup cost of the compressor, penalty cost of discontinuous operation and penalty cost of oversupply. The fitness function formula is as follows: fitness=Fuel-Cost+Startup_Cost+Maintenance-Cost+ Shutdown_Cost+Over_Supply-Cost The parameters of the genetic algorithm are as follows: the population size is 30 or 50, the value of the crossover rate is 0.6, the value of the mutation rate is 0.01, and the algorithm stops when one of the following conditions is reached: the maximum number of generations of 300 is reached; there is no improvement in the objective function for 100 consecutive generations of sequences; there is no improvement in the objective function within an interval of 50 seconds; Step 3: Output the compressor scheduling optimization plan.
2. The method for executing equipment scheduling based on gas load forecasting according to claim 1, characterized in that: The step 1.2 above calculates the fuel cost of the compressor using the following formula: where F i is the fuel cost of the electric compressor or natural gas compressor, n c is the total number of compressors, n p is the number of operating cycles, X i,p Represents the state of the i-th compressor in p operating cycles.
3. The method for executing equipment scheduling based on gas load forecasting according to claim 1, characterized in that: The maintenance cost Maintenance_cost of the compressor in step 1.3 is calculated using the following formula: Among them, M i is the maintenance cost of the electric compressor or the natural gas compressor.
4. The method for executing equipment scheduling based on gas load forecasting according to claim 1, characterized in that: The method is applicable to natural gas load data of cities, regions and enterprises.
Citation Information
Patent Citations
Multi-target and multi-constraint optimal scheduling method of fuel-steam combined cycle generator set
CN102737351A
A multi-objective optimization method considering uncertain cost of fan output
CN109256810A
Rolling optimization scheduling method and device for cold storage air conditioning system
CN113054668A
Power grid and gas grid coordinated operation scheduling strategy determination method and system
CN113344316A
Micro-grid system energy storage optimization configuration method considering charging and discharging of electric vehicle
CN116307087A
