Storage medium, oil well operation plan generation method, device and equipment
By generating reference power diagrams and operation plan models, the problem of insufficient recovery speed of low-yield and low-efficiency wells is solved, and the oil well operation plan with minimized power consumption costs is realized, and the oil production efficiency and liquid production efficiency are improved.
Patent Information
- Application Number
- CN202311402459.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
The liquid level recovery speed of low-yield and low-efficiency wells is smaller than the oil production speed, resulting in long-term continuous production and reduced oil production efficiency.
By obtaining multiple power diagrams of the target oil well within 24 hours of backtracking, generating reference power diagrams, calculating the backtracking optimal liquid yield and theoretical optimal hourly liquid yield, and generating an operation plan model based on the Gufeng electricity price system. With the goal of minimizing electricity bills, setting the total operating time and minimum liquid yield constraints, and solving the operating time strategy for each electricity price period.
On the premise of minimizing electricity consumption costs, the overall oil production efficiency of the oil well is improved, and the flushing parameters are optimized to improve the liquid production efficiency.
Smart Images

Figure CN119904015A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of oil well exploitation, and in particular to a storage medium, a method, a device and equipment for generating an oil well operation plan. Background Art
[0002] Peak-valley electricity price is also called "time-of-use electricity price". The peak-valley electricity price system is an electricity price system that calculates electricity charges according to peak electricity consumption and valley electricity consumption. During peak electricity consumption, that is, the period of tight power supply, the unit electricity price is higher; during valley electricity consumption, that is, the period of sufficient power supply, the unit electricity price is lower. Therefore, the electricity cost of oil wells will also be lower during valley electricity consumption.
[0003] With the continuous development of oil fields, the liquid production of oil wells will show a downward trend due to many factors such as formation blockage, near-well pollution, insufficient formation fluid supply capacity, and high water-cut production. Oil wells whose liquid production capacity drops to a set threshold are called low-yield and low-efficiency wells.
[0004] In the prior art, the oil wells are generally put into production by maximizing the use of off-peak electricity consumption periods to reduce the unit electricity cost of the oil wells.
[0005] The inventors have found through research that the production planning method for low-yield and low-energy wells in the prior art has at least the following defects:
[0006] The liquid level recovery rate of low-yield and low-efficiency wells is lower than the oil production rate. Long-term continuous production of oil wells will instead cause a decrease in the overall oil production efficiency.
[0007] The information disclosed in this background technology section is only intended to enhance the understanding of the overall background of the invention and should not be regarded as an acknowledgment or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the invention
[0008] The purpose of the present invention is to improve the overall oil production efficiency of the oil well while minimizing the electricity cost.
[0009] The present invention provides a method for generating an oil well operation plan, comprising the steps of:
[0010] S11, obtaining multiple dynamometer diagrams of the target oil well within 24 hours of retrospection, and generating a reference dynamometer diagram for representing the optimal liquid production according to the multiple dynamometer diagrams;
[0011] S12, calculating the optimal liquid production V of the target oil well according to the reference work diagram opt ; and calculate the theoretical optimal hourly liquid production V per ;
[0012] S13. Calculate the average daily liquid production as the target daily liquid production based on the historical daily liquid production of the preset number of days.
[0013] S14. Generate an array C for representing the corresponding relationship between electricity price and electricity price period according to the off-peak electricity price system: C = [c1, c2, ..., c n ], where c1, c2…, c n is the electricity price in each electricity price period, and n is the number of electricity price periods;
[0014] S15. Generate an operation plan model with the goal of minimizing electricity costs:
[0015]
[0016] The constraints of the operation planning model include:
[0017] Total running time constraints: And, minimum liquid production constraint:
[0018] Among them, x i is the i-th electricity price period c i The running time under V per It is the liquid production per hour.
[0019] Preferably, the present invention further comprises:
[0020] S16, solving the operation plan model to obtain x for each electricity price period i Generate an operation time period strategy for the target oil well in the next 24 hours.
[0021] In another aspect of the present invention, there is also provided an oil well operation plan generating device, comprising:
[0022] A reference performance diagram generating unit is used to obtain multiple performance diagrams of the target oil well within 24 hours of retrospection, and generate a reference performance diagram for representing the optimal liquid production according to the multiple performance diagrams;
[0023] Unit production calculation unit, used to calculate the optimal liquid production V of the target oil well according to the reference work diagram opt ; and calculate the theoretical optimal hourly liquid production V per ;
[0024] The target production calculation unit is used to calculate the average daily liquid production as the target daily liquid production based on the historical daily liquid production of the preset number of days.
[0025] The valley-peak electricity price array unit is used to generate an array C for representing the corresponding relationship between electricity price and electricity price period according to the valley-peak electricity price system: C = [c1, c2, ..., c n ], where c1, c2…, c n is the electricity price in each electricity price period, and n is the number of electricity price periods;
[0026] The planning model generation unit is used for the operation planning model with the goal of minimizing electricity costs:
[0027]
[0028] The constraints of the operation planning model include:
[0029] Total running time constraints: And, minimum liquid production constraint:
[0030] Among them, x i is the i-th electricity price period c i The running time under V per It is the liquid production per hour.
[0031] Preferably, the present invention further comprises:
[0032] An operation strategy generating unit is used to solve the x of each electricity price period according to the operation plan model. i Generate an operation time period strategy for the target oil well in the next 24 hours.
[0033] On the other hand, an oil well operation plan generation device is provided, which includes a computer program stored on a medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the methods described in the above aspects and achieves the same technical effects.
[0034] On the other hand, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, each step of the method for generating an oil well operation plan as described in any one of the above items is implemented.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] On the one hand, the present invention uses the most efficient dynamometer diagram of multiple dynamometer diagrams of a day that has passed as a basis to calculate the theoretical optimal unit hourly liquid production as the unit hourly liquid production for planned production (i.e., the theoretical optimal hourly liquid production); on the other hand, it also uses the average value of the full-day production in the past few days as a reference for the full-day liquid production for planned production (i.e., the target daily liquid production); in this way, after establishing an operation plan model with the goal of minimizing electricity costs, constraints based on the theoretical optimal hourly liquid production and the target daily liquid production can be set to obtain a combination strategy for the operating time in each electricity price period that can minimize the full-day electricity cost while ensuring a higher full-day liquid production; thereby achieving the improvement of the overall oil production efficiency of the oil well under the premise of minimizing electricity costs.
[0037] Furthermore, in the present invention, the reference dynamometer diagram can be made closer to a parallelogram by adjusting the stroke parameters used to generate the dynamometer diagram, thereby obtaining an optimized number of strokes; in this way, on the one hand, the theoretical optimal hourly liquid production that is more suitable for the current operating conditions of the target oil well can be calculated; on the other hand, the strokes of the target oil well can be adjusted through the optimization results to further improve the oil production efficiency of the target oil well.
[0038] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, and to make the above and other purposes, technical features and advantages of the present invention easier to understand, one or more preferred embodiments are listed below and described in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a step diagram of the method for generating an oil well operation plan in the present invention;
[0040] Figure 2 It is a structural schematic diagram of the oil well operation plan generating device of the present invention;
[0041] Figure 3 It is a structural schematic diagram of the oil well operation plan generation control device described in the present invention. DETAILED DESCRIPTION
[0042] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation modes.
[0043] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.
[0044] In this document, for the convenience of description, spatial relative terms such as "below", "below", "down", "above", "above", "upper", etc. may be used to describe the relationship between one element or feature and another element or feature in the accompanying drawings. It should be understood that the spatial relative terms are intended to include different orientations of the object in use or operation in addition to the orientation depicted in the figure. For example, if the object in the figure is turned over, the element described as being "below" or "below" other elements or features will be oriented "above" the element or feature. Therefore, the exemplary term "below" can include both below and above. Objects may also have other orientations (rotated 90 degrees or other orientations) and the spatial relative terms used in this document should be interpreted accordingly.
[0045] In this document, the terms "first", "second", etc. are used to distinguish two different elements or parts, and are not used to limit a specific position or relative relationship. In other words, in some embodiments, the terms "first", "second", etc. can also be interchangeable.
[0046] Embodiment 1
[0047] In order to improve the overall oil production efficiency of oil wells while minimizing electricity costs, Figure 1 As shown, in an embodiment of the present invention, a method for generating an oil well operation plan is provided, comprising the steps of:
[0048] S11, obtaining multiple dynamometer diagrams of the target oil well within 24 hours of retrospection, and generating a reference dynamometer diagram for representing the optimal liquid production according to the multiple dynamometer diagrams;
[0049] In practical applications, 48 dynamometer diagrams may be generated every day (24 hours) at a cycle of generating one dynamometer diagram every half hour, that is, the dynamometer transmits the dynamometer diagram data once every half hour.
[0050] With 24 hours as a planning cycle, a time point is set for making a plan; with this time point as the starting point, go back 24 hours (one day) to obtain 48 dynamometer diagrams generated during this period.
[0051] The closer the dynamometer diagram is to a parallelogram, the better its liquid production efficiency is. Therefore, the dynamometer diagram closest to a parallelogram can be selected from multiple dynamometer diagrams as a reference dynamometer diagram.
[0052] S12, calculating the optimal liquid production V of the target oil well according to the reference work diagram opt ; and calculate the theoretical optimal hourly liquid production V per ;
[0053] According to the parameters corresponding to the reference dynamometer diagram, such as effective stroke, stroke frequency and pump displacement coefficient, the theoretical maximum liquid production for 24 hours can be calculated (i.e., the optimal liquid production V opt ), the specific calculation formula can be as follows:
[0054] V opt =S e ×N j ×α p ;
[0055] Among them, V opt To trace back the optimal liquid production, S e is the effective stroke, N j is the number of strokes, α p is the pump displacement coefficient.
[0056] The theoretically optimal hourly liquid production V per , the required formulas include:
[0057] V per =V opt / twenty four.
[0058] S13. Calculate the average daily liquid production as the target daily liquid production based on the historical daily liquid production of the preset number of days.
[0059] Using the historical data of the actual liquid production of the target well in the previous few days, an average value can be calculated
[0060] as the target production of the target oil well in the next planning period (i.e., target daily liquid production). ); In practical applications, the setting of the preset number of days K in the embodiment of the present invention can be set by those skilled in the art based on experience or actual working conditions (such as a downward trend in oil production), and is not specifically limited here.
[0061] Calculate the average daily liquid production as the target daily liquid production The required formulas include:
[0062]
[0063] Where K represents the number of preset days. i Represents the actual liquid production on the i-th day among K days.
[0064] S14. Generate an array C for representing the corresponding relationship between electricity price and electricity price period according to the off-peak electricity price system: C = [c1, c2, ..., c n ], where c1, c2…, c n is the electricity price in each electricity price period, and n is the number of electricity price periods;
[0065] In the embodiment of the present invention, it is assumed that the off-peak electricity price system stipulates n electricity price periods, which correspond to the corresponding electricity prices c1, c2, ..., c n .
[0066] S15. Generate an operation plan model with the goal of minimizing electricity costs:
[0067]
[0068] The constraints of the operation planning model include:
[0069] Total running time constraints: And, minimum liquid production constraint:
[0070] Among them, x i is the i-th electricity price period c i The running time under V per is the liquid production per hour; The target daily liquid production.
[0071] The operation planning model in the embodiment of the present invention is used to determine the operating time of the oil well in each electricity price period; by setting the total operating time constraint, it can be ensured that the full-day operating time of the target oil well will not exceed 24 hours. At the same time, the minimum liquid production constraint is also used to keep the oil production efficiency of the oil well at a high level.
[0072] Furthermore, the present invention may further include the steps of:
[0073] S16, solving the operation plan model to obtain x for each electricity price period i Generate an operation time period strategy for the target oil well in the next 24 hours.
[0074] After determining the operating time of the oil well in each electricity price period, a production plan for controlling the start and stop time of the target oil well can be obtained, that is, the operating period strategy.
[0075] In actual applications, the specific content of the runtime strategy can be shown in the following table:
[0076]
[0077] In practical applications, the dynamometer diagram closest to a parallelogram selected from multiple dynamometer diagrams may not necessarily be in the best working condition. For example, the stroke setting of the target oil well may not be the best choice. In other words, the dynamometer diagram closest to a parallelogram selected at this time cannot fully represent the liquid production efficiency of the target oil well.
[0078] The algorithm for generating the dynamometer diagram includes the parameter of stroke frequency. The shape of the dynamometer diagram can be changed by adjusting the parameter value of the stroke frequency. For this reason, preferably, in the embodiment of the present invention, the parameter value of the stroke frequency parameter can be modified to make the final reference dynamometer diagram closer to a parallelogram, thereby obtaining the optimized parameter value of the stroke frequency. In this way, on the one hand, the theoretical optimal hourly liquid production obtained by subsequent calculation can be closer to the theoretical maximum liquid production, so that the operation plan model in the embodiment of the present invention can further tap the production potential of the oil well;
[0079] On the other hand, the subsequent production of the oil well can be more efficient. That is to say, by setting the optimized flushing frequency for the next planned cycle (i.e. the next 24 hours) of the target oil well, the production efficiency of the oil well can be further improved.
[0080] In summary, the embodiment of the present invention, on the one hand, takes the most efficient dynamometer diagram of multiple dynamometer diagrams of the day that have passed as the basis, calculates the theoretical optimal unit hourly liquid production as the unit hourly liquid production for planned production (i.e., the theoretical optimal hourly liquid production); on the other hand, it also takes the average value of the full-day production in the past few days as the full-day liquid production reference for planned production (i.e., the target daily liquid production); in this way, after establishing an operation plan model with the goal of minimizing electricity costs, constraints based on the theoretical optimal hourly liquid production and the target daily liquid production can be set to obtain a combination strategy for the operating time in each electricity price period that can minimize the electricity cost for the whole day while ensuring a higher full-day liquid production; thereby achieving the improvement of the overall oil production efficiency of the oil well under the premise of minimizing electricity costs.
[0081] Furthermore, in an embodiment of the present invention, it is also possible to make the reference dynamometer diagram closer to a parallelogram by adjusting the stroke parameters used to generate the dynamometer diagram, thereby obtaining an optimized number of strokes; in this way, on the one hand, the theoretical optimal hourly liquid production that is more suitable for the current operating conditions of the target oil well can be calculated; on the other hand, the strokes of the target oil well can be adjusted through the optimization results to further improve the oil production efficiency of the target oil well.
[0082] Embodiment 2
[0083] In another aspect of the embodiment of the present invention, a device for generating an oil well operation plan is also provided. Figure 2 A schematic diagram showing the structure of an oil well operation plan generating device provided by an embodiment of the present invention is shown. The oil well operation plan generating device is Figure 1 The device corresponding to the method for generating an oil well operation plan in the corresponding embodiment, that is, the device is implemented by a virtual device Figure 1In the oil well operation plan generation method in the corresponding embodiment, each virtual module constituting the oil well operation plan generation device can be executed by an electronic device, such as a network device, a terminal device, or a server. Specifically, the oil well operation plan generation device in the embodiment of the present invention includes:
[0084] The reference performance diagram generating unit 01 is used to obtain multiple performance diagrams of the target oil well within 24 hours of retrospection, and generate a reference performance diagram for representing the optimal liquid production according to the multiple performance diagrams;
[0085] Unit production calculation unit 02, used to calculate the optimal liquid production V of the target oil well according to the reference work diagram opt ; and calculate the theoretical optimal hourly liquid production V per ;
[0086] The target production calculation unit 03 is used to calculate the average daily liquid production as the target daily liquid production based on the historical daily liquid production of the preset number of days.
[0087] The valley peak electricity price array unit 04 is used to generate an array C for representing the corresponding relationship between electricity price and electricity price period according to the valley peak electricity price system: C = [c1, c2, ..., c n ], where c1, c2…, c n is the electricity price in each electricity price period, and n is the number of electricity price periods;
[0088] The planning model generating unit 05 is used for the operation planning model with the goal of minimizing the electricity cost:
[0089]
[0090] The constraints of the operation planning model include:
[0091] Total running time constraints: And, minimum liquid production constraint:
[0092] Among them, x i is the i-th electricity price period c i The running time under V per It is the liquid production per hour.
[0093] Preferably, the present invention may also include:
[0094] An operation strategy generating unit is used to solve the x of each electricity price period according to the operation plan model. i Generate an operation time period strategy for the target oil well in the next 24 hours.
[0095] Since the working principle and beneficial effects of the oil well operation plan generating device in the embodiment of the present invention have been Figure 1 The corresponding oil well operation plan generation method is also recorded and explained, so they can be cross-referenced and will not be repeated here.
[0096] Embodiment 3
[0097] Corresponding to the method embodiment, in the embodiment of the present invention, there is also provided an oil well operation plan generation device, such as a terminal, a server, etc. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto.
[0098] An example diagram of a hardware structure block diagram of an oil well operation plan generating device provided in an embodiment of the present invention is shown in FIG. Figure 3 As shown, it may include:
[0099] Processor 1, communication interface 2, memory 3 and communication bus 4;
[0100] The processor 1, the communication interface 2, and the memory 3 communicate with each other via the communication bus 4;
[0101] Optionally, the communication interface 2 may be an interface of a communication module, such as an interface of a GSM module;
[0102] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0103] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0104] The processor 1 is specifically used to execute the computer program stored in the memory 3 to perform the following steps:
[0105] S11, obtaining multiple dynamometer diagrams of the target oil well within 24 hours of retrospection, and generating a reference dynamometer diagram for representing the optimal liquid production according to the multiple dynamometer diagrams;
[0106] S12, calculating the optimal liquid production V of the target oil well according to the reference work diagramopt ; and calculate the theoretical optimal hourly liquid production V per ;
[0107] S13. Calculate the average daily liquid production as the target daily liquid production based on the historical daily liquid production of the preset number of days.
[0108] S14. Generate an array C for representing the corresponding relationship between electricity price and electricity price period according to the off-peak electricity price system: C = [c1, c2, ..., c n ], where c1, c2…, c n is the electricity price in each electricity price period, and n is the number of electricity price periods;
[0109] S15. Generate an operation plan model with the goal of minimizing electricity costs:
[0110]
[0111] The constraints of the operation planning model include:
[0112] Total running time constraints: And, minimum liquid production constraint:
[0113] Among them, x i is the i-th electricity price period c i The running time under V per It is the liquid production per hour.
[0114] Preferably, the present invention further comprises:
[0115] S16, solving the operation plan model to obtain x for each electricity price period i Generate an operation time period strategy for the target oil well in the next 24 hours.
[0116] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method for generating an oil well operation plan provided by the embodiment of the present invention.
[0117] Embodiment 4
[0118] In an embodiment of the present invention, a storage medium is further provided, which may store a program suitable for execution by a processor, wherein the program is used to:
[0119] S11, obtaining multiple dynamometer diagrams of the target oil well within 24 hours of retrospection, and generating a reference dynamometer diagram for representing the optimal liquid production according to the multiple dynamometer diagrams;
[0120] S12, calculating the optimal liquid production V of the target oil well according to the reference work diagram opt ; and calculate the theoretical optimal hourly liquid production V per ;
[0121] S13. Calculate the average daily liquid production as the target daily liquid production based on the historical daily liquid production of the preset number of days.
[0122] S14. Generate an array C for representing the corresponding relationship between electricity price and electricity price period according to the off-peak electricity price system: C = [c1, c2, ..., c n ], where c1, c2…, c n is the electricity price in each electricity price period, and n is the number of electricity price periods;
[0123] S15. Generate an operation plan model with the goal of minimizing electricity costs:
[0124]
[0125] The constraints of the operation planning model include:
[0126] Total running time constraints: And, minimum liquid production constraint:
[0127] Among them, x i is the i-th electricity price period c i The running time under V per It is the liquid production per hour.
[0128] Preferably, the present invention further comprises:
[0129] S16, solving the operation plan model to obtain x for each electricity price period i Generate an operation time period strategy for the target oil well in the next 24 hours.
[0130] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0131] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the methods provided by other embodiments of the present invention.
[0132] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0133] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0136] It should be understood that in the embodiments of the present application, the various embodiments and features can be combined with each other to solve the aforementioned technical problems.
[0137] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0138] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for generating an oil well operation plan, characterized in that: Includes steps: S11, obtaining multiple dynamometer diagrams of the target oil well within 24 hours of retrospection, and generating a reference dynamometer diagram for representing the optimal liquid production according to the multiple dynamometer diagrams; S12, calculating the optimal liquid production V of the target oil well according to the reference work diagram opt ; and calculate the theoretical optimal hourly liquid production V per ; S13. Calculate the average daily liquid production as the target daily liquid production based on the historical daily liquid production of the preset number of days. S14. Generate an array C for representing the corresponding relationship between electricity price and electricity price period according to the off-peak electricity price system: C = [c1, c2, ..., c n ], where c1, c2…, c n is the electricity price in each electricity price period, and n is the number of electricity price periods; S15. Generate an operation plan model with the goal of minimizing electricity costs: The constraints of the operation planning model include: Total running time constraints: And, minimum liquid production constraint: Among them, x i is the i-th electricity price period c i The running time under V per It is the liquid production per hour.
2. The method for generating an oil well operation plan according to claim 1, characterized in that: Also includes: S16, solving the operation plan model to obtain x for each electricity price period i Generate an operation time period strategy for the target oil well in the next 24 hours.
3. The method for generating an oil well operation plan according to claim 2, characterized in that: The step of generating a reference dynamometer diagram for representing an optimal liquid production rate according to the plurality of dynamometer diagrams comprises: The dynamometer diagram that is closest to a parallelogram among the plurality of dynamometer diagrams is used as a reference dynamometer diagram.
4. The method for generating an oil well operation plan according to claim 2, characterized in that: The optimal liquid production V of the target oil well is calculated based on the reference work diagram. opt , the required formulas include: V opt =S e ×N j ×α p ; Among them, V opt To trace back the optimal liquid production, S e is the effective stroke, N j is the number of strokes, α p is the pump displacement coefficient.
5. The method for generating an oil well operation plan according to claim 4, characterized in that: The theoretically optimal hourly liquid production V per , the required formulas include: V per =V opt / 24。 6. The method for generating an oil well operation plan according to claim 5, characterized in that: The average daily liquid production is calculated based on the historical daily liquid production of the preset number of days as the target daily liquid production. The required formulas include: Where K represents the number of preset days. i Represents the actual liquid production on the i-th day among K days.
7. The method for generating an oil well operation plan according to claim 6, characterized in that: The multiple dynamometer diagrams are generated by periodic drawing.
8. The method for generating an oil well operation plan according to claim 6, characterized in that: The generation cycle of the dynamometer diagram is once every half an hour.
9. The method for generating an oil well operation plan according to claim 1, characterized in that: The optimal liquid production V of the target oil well is calculated based on the reference work diagram. opt When including: The stroke frequency is optimized according to the reference power diagram and the optimized stroke frequency is used to calculate the optimal liquid production V of the target oil well. opt ; The optimized flushing frequency is also used to determine the flushing frequency setting of the target oil well in the next 24 hours.
10. An oil well operation plan generating device, characterized in that: include: A reference performance diagram generating unit is used to obtain multiple performance diagrams of the target oil well within 24 hours of retrospection, and generate a reference performance diagram for representing the optimal liquid production according to the multiple performance diagrams; Unit production calculation unit, used to calculate the optimal liquid production V of the target oil well according to the reference work diagram opt ; and calculate the theoretical optimal hourly liquid production V per ; The target production calculation unit is used to calculate the average daily liquid production as the target daily liquid production based on the historical daily liquid production of the preset number of days. The valley-peak electricity price array unit is used to generate an array C for representing the corresponding relationship between electricity price and electricity price period according to the valley-peak electricity price system: C = [c1, c2, ..., c n ], where c1, c2…, c n is the electricity price in each electricity price period, and n is the number of electricity price periods; The planning model generation unit is used for the operation planning model with the goal of minimizing electricity costs: The constraints of the operation planning model include: Total running time constraints: And, minimum liquid production constraint: Among them, x i is the i-th electricity price period c i The running time under V per It is the liquid production per hour.
11. The oil well operation plan generating device according to claim 10, characterized in that: Also includes: An operation strategy generating unit is used to solve the x of each electricity price period according to the operation plan model. i Generate an operation time period strategy for the target oil well in the next 24 hours.
12. An oil well operation plan generation device, characterized in that: include: Memory for storing computer programs; A processor is used to call and execute the computer program to implement the steps of the method for generating an oil well operation plan as described in any one of claims 1 to 9.
13. A storage medium, characterized in that: The method comprises a software program, wherein the software program is suitable for executing the steps of the method for generating an oil well operation plan according to any one of claims 1 to 9 by a processor.