CN116407971A - Optimization method and device for determining blending proportion of target crude oil - Google Patents

Optimization method and device for determining blending proportion of target crude oil Download PDF

Info

Publication number
CN116407971A
CN116407971A CN202111660570.XA CN202111660570A CN116407971A CN 116407971 A CN116407971 A CN 116407971A CN 202111660570 A CN202111660570 A CN 202111660570A CN 116407971 A CN116407971 A CN 116407971A
Authority
CN
China
Prior art keywords
crude oil
target
property data
physical property
blended
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111660570.XA
Other languages
Chinese (zh)
Inventor
王杭州
纪晔
杨诗棋
王弘历
刘一心
韩崇文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Petrochina Co Ltd
Original Assignee
Petrochina Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Petrochina Co Ltd filed Critical Petrochina Co Ltd
Priority to CN202111660570.XA priority Critical patent/CN116407971A/en
Publication of CN116407971A publication Critical patent/CN116407971A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/26Oils; Viscous liquids; Paints; Inks
    • G01N33/28Oils, i.e. hydrocarbon liquids
    • G01N33/2823Raw oil, drilling fluid or polyphasic mixtures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Chemical & Material Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Tourism & Hospitality (AREA)
  • Theoretical Computer Science (AREA)
  • Medicinal Chemistry (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Immunology (AREA)
  • Game Theory and Decision Science (AREA)
  • Biochemistry (AREA)
  • Analytical Chemistry (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Food Science & Technology (AREA)
  • Pathology (AREA)
  • Quality & Reliability (AREA)
  • Oil, Petroleum & Natural Gas (AREA)
  • General Chemical & Material Sciences (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Primary Health Care (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

The invention discloses an optimization method and a device for determining a mixing proportion of target crude oil, wherein the method comprises the following steps: acquiring macroscopic physical property data of target crude oil; searching a plurality of crude oil samples similar to target crude oil in a crude oil database; determining the mixing proportion of a plurality of crude oil samples by using a mixed integer nonlinear programming method; mixing a plurality of crude oil samples into blended crude oil according to a mixing proportion and determining molecular composition data of the blended crude oil; determining macroscopic physical property data of the blended crude oil according to the blending proportion and the molecular composition data of the blended crude oil; adjusting the blending proportion according to the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil until the difference is minimum; and obtaining the mixing proportion of a plurality of crude oil samples in the adjusted blended crude oil as the mixing proportion of the target crude oil. The method can rapidly and accurately determine the mixing proportion of each molecule of the target crude oil, and provides technical support for the subsequent production process.

Description

Optimization method and device for determining blending proportion of target crude oil
Technical Field
The invention belongs to the technical field of crude oil processing, and particularly relates to an optimization method and device for determining a target crude oil mixing proportion.
Background
With the rapid development of national economy, the demand of China for petroleum is increased year by year, and the demand for petroleum quality is becoming stricter. It is also important to keep track of petroleum processing.
In the petroleum processing process, certain simulation is often required according to the molecular composition and other data of crude oil so as to determine various produced petroleum products, and in the process, the mixing proportion of the crude oil is important data, and the accuracy of the simulation process flow result can be ensured only by knowing the accurate mixing proportion. Therefore, it is important to the petroleum processing industry to provide a method for quickly and accurately determining the blending ratio of target crude oil.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an optimization method and device for determining the mixing proportion of target crude oil.
In order to achieve the above object, the present invention provides the following four aspects of technical solutions:
in a first aspect, the present invention provides an optimization method for determining a blending ratio of a target crude oil, comprising the steps of:
acquiring macroscopic physical property data of target crude oil;
searching a plurality of crude oil samples similar to the target crude oil in a crude oil database according to macroscopic physical property data of the target crude oil;
determining the mixing proportion of the crude oil samples by using a mixed integer nonlinear programming method;
mixing the crude oil samples according to the mixing proportion to form blended crude oil, and determining molecular composition data of the blended crude oil according to the mixing proportion and the molecular composition data of the crude oil samples;
determining macroscopic physical property data of the blended crude oil according to the blending proportion and the molecular composition data of the blended crude oil;
adjusting the mixing proportion according to the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil, and remixing the crude oil samples into the blended crude oil according to the adjusted mixing proportion until the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil is minimum;
and obtaining the mixing proportion of a plurality of crude oil samples in the adjusted blended crude oil as the mixing proportion of the target crude oil.
Preferably, before the step of searching the crude oil database for crude oil samples similar to the target crude oil according to the macroscopic physical property data of the target crude oil, the method further comprises:
searching a crude oil sample consistent with the target crude oil in a crude oil database according to macroscopic physical property data of the target crude oil;
if a crude oil sample consistent with the target crude oil is found in the crude oil database, the target crude oil is 100% of the crude oil sample;
and if the crude oil samples consistent with the target crude oil are not found in the crude oil database, executing the step of searching a plurality of crude oil samples similar to the target crude oil in the crude oil database according to the macroscopic physical property data of the target crude oil.
Preferably, the step of searching the crude oil database for crude oil samples similar to the target crude oil according to macroscopic physical property data of the target crude oil comprises the following steps:
calculating the physical similarity between each crude oil sample in the crude oil database and a target oil product;
sequencing the crude oil samples in the crude oil database according to the physical similarity between each crude oil sample in the crude oil database and the target oil product;
and selecting a plurality of crude oil samples closest to the physical properties of the target crude oil according to the sequencing result.
Preferably, the physical similarity is equal to the sum of products of squares of differences between respective macroscopic physical data of the crude oil sample and respective macroscopic physical data of the target oil product and respective weights; the weights characterize the importance of their corresponding macroscopic physical properties.
Preferably, the step of determining the blending ratio of the crude oil samples by using a mixed integer nonlinear programming method comprises the following steps:
determining a blending ratio of the number of crude oil samples based on a mixed integer nonlinear programming and a penalty function, wherein the penalty function comprises:
a penalty function for the number of crude oil types to define the number of crude oil types selected from the ordered crude oil samples for modeling;
a penalty function for the minimum blend ratio value is used to define the minimum blend ratio value of the finally obtained blend ratios.
Preferably, the penalty function for the number of crude oil types is an increasing function of the number of crude oil types, the larger the value of the penalty function;
the penalty function for the minimum blend ratio value is a decreasing function of the minimum blend ratio, the smaller the minimum blend ratio value, the larger the penalty function value.
Preferably, when it is determined that the sum of the products of the squares of the differences between the macroscopic property data of the blended crude oil and the corresponding macroscopic property data of the target crude oil and the weights corresponding to the respective macroscopic property data is at a minimum, it is determined that the difference between the macroscopic property data of the blended crude oil and the macroscopic property data of the target crude oil is at a minimum.
In a second aspect, the present invention provides an optimizing apparatus for determining a target crude oil blending ratio, comprising:
the first acquisition module is used for acquiring macroscopic physical property data of the target crude oil;
the first searching module is used for searching a plurality of crude oil samples similar to the target crude oil in the crude oil database according to macroscopic physical property data of the target crude oil;
the analysis module is used for determining the mixing proportion of the crude oil samples by utilizing a mixed integer nonlinear programming method;
the mixing module is used for mixing the crude oil samples according to the mixing proportion to form blended crude oil, and determining molecular composition data of the blended crude oil according to the mixing proportion and the molecular composition data of the crude oil samples;
the determining module is used for determining macroscopic physical property data of the blended crude oil according to the blending proportion and the molecular composition data of the blended crude oil;
the adjusting module is used for adjusting the mixing proportion according to the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil, and remixing the crude oil samples into the blended crude oil according to the adjusted mixing proportion until the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil is minimum;
the second acquisition module is used for acquiring the adjusted mixing proportion.
Preferably, the apparatus further comprises a second look-up module,
the second searching module is used for searching a crude oil sample consistent with the target crude oil in the crude oil database according to macroscopic physical property data of the target crude oil; if a crude oil sample consistent with the target crude oil is found in the crude oil database, the target crude oil is 100% of the crude oil sample; if the crude oil sample consistent with the target crude oil is not found in the crude oil database, a first searching module is called to search a plurality of crude oil samples similar to the target crude oil in the crude oil database according to macroscopic physical property data of the target crude oil.
Preferably, the first search module includes:
the calculating unit is used for calculating the physical similarity between each crude oil sample in the crude oil database and a target oil product;
the sequencing unit is used for sequencing the crude oil samples in the crude oil database according to the physical similarity between each crude oil sample in the crude oil database and the target oil product;
and a selection unit for selecting a plurality of crude oil samples closest to the physical properties of the target crude oil according to the sorting result.
Preferably, in the adjustment module, when it is determined that the sum of products of squares of differences between macroscopic property data of the blended crude oil and macroscopic property data of the target crude oil and weights corresponding to the macroscopic property data reaches a minimum value, it is determined that the difference between the macroscopic property data of the blended crude oil and the macroscopic property data of the target crude oil is minimum.
In a third aspect, the invention provides an optimizing device for determining a blending ratio of a target crude oil, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the optimization method for determining the mixing proportion of the target crude oil when executing the program stored in the memory.
In a fourth aspect, the present invention provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the above-described optimization method for determining a target crude oil blending ratio.
Preferably, the computer readable storage medium is one of a magnetic medium, an optical medium, and a semiconductor medium.
Compared with the prior art, the technical scheme of the invention has the following advantages:
1. the method can rapidly and accurately determine the mixing proportion of each molecule of the target crude oil, and provides technical support for the subsequent production process.
2. According to the embodiment of the invention, the actual blending proportion and molecular composition of the crude oil are determined by adjusting the blending proportion of the crude oil sample in the blended crude oil through physical property verification, so that economic loss caused by wrong molecular composition in the subsequent process flow is avoided.
3. According to the invention, the penalty function is set in the optimization target, so that the minimum value of the initial selected crude oil quantity and the mixing proportion is in a more reasonable range, and the accurate determination of the mixing proportion is facilitated.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a workflow diagram of an optimization method for determining a target crude oil blending ratio according to a first embodiment of the present invention;
FIG. 2 is a workflow diagram of an optimization method for determining a target crude oil blending ratio according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of an optimizing apparatus for determining a target crude oil blending ratio according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a first search module according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of an optimizing apparatus for determining a target crude oil blending ratio according to a fourth embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
As shown in FIG. 1, the invention provides an optimization method for determining a target crude oil blending ratio, which mainly comprises the following steps:
s10, macroscopic physical property data of target crude oil are obtained;
s20, searching a plurality of crude oil samples similar to the target crude oil in a crude oil database according to macroscopic physical property data of the target crude oil;
s30, determining the mixing proportion of the crude oil samples by using a mixed integer nonlinear programming method;
s40, mixing the crude oil samples according to the mixing proportion to form blended crude oil, and determining molecular composition data of the blended crude oil according to the mixing proportion and the molecular composition data of the crude oil samples;
s50, determining macroscopic physical property data of the blended crude oil according to the blending proportion and the molecular composition data of the blended crude oil;
s60, adjusting the mixing proportion according to the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil, and remixing the crude oil samples into the blended crude oil according to the adjusted mixing proportion until the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil is minimum;
s70, obtaining the mixing proportion of a plurality of crude oil samples in the adjusted blended crude oil as the mixing proportion of the target crude oil.
Example two
Fig. 2 is a flowchart of an optimization method for determining a blending ratio of a target crude oil according to a second embodiment of the present invention. As shown in fig. 2, the optimization method for determining the blending ratio of the target crude oil in this embodiment mainly includes the following steps:
s10, macroscopic physical property data of target crude oil are obtained;
s100, searching a crude oil sample consistent with target crude oil in a crude oil database according to known macroscopic physical property data of the target crude oil;
if a crude oil sample consistent with the target crude oil is found in the crude oil database, taking the molecular composition data of the crude oil sample as the molecular composition data of the target crude oil, and taking the target crude oil as 100% of the crude oil sample;
if no crude oil sample consistent with the target crude oil is found in the crude oil database, step S200 is performed.
S200, searching a plurality of crude oil samples similar to the target crude oil in a crude oil database according to macroscopic physical property data of the target crude oil.
In this embodiment, the step S200 mainly ranks the crude oil samples in the crude oil database according to norms and weights related to physical properties, and then selects a plurality of crude oil samples closest to the physical properties of the target crude oil according to the ranking result.
In this regard, the step S200 may include the following steps, when applied specifically:
s210, calculating physical similarity between each crude oil sample in a crude oil database and a target oil product, wherein the physical similarity is equal to the sum of products of squares of differences between macroscopic physical data of the crude oil samples and macroscopic physical data corresponding to the target oil product and weights corresponding to the macroscopic physical data; wherein, the weight can be determined in advance according to the importance of each macroscopic physical property;
s220, sorting the crude oil samples in the crude oil database according to the physical similarity between each crude oil sample in the crude oil database and the target oil product;
s230, selecting a plurality of crude oil samples closest to physical properties of the target crude oil according to the sorting result.
For example, the crude oil samples in the crude oil database are ranked in order of high-to-low similarity of physical properties, and then the top-ranked crude oil samples are selected as the crude oil samples closest to the physical properties of the target crude oil. Here, the number of crude oil samples to be selected is not limited, and is generally set according to a trade-off between accuracy of calculation results and time.
S300, determining the mixing proportion of the crude oil samples by using a mixed integer nonlinear programming method.
In this embodiment, the blending ratio of the plurality of crude oil samples is determined by using a mixed integer nonlinear programming method, and is determined mainly based on a mixed integer nonlinear programming and a penalty function. The penalty function is a penalty function of the number of crude oil types when the alternative mixed integer nonlinear programming model is established, and a penalty function of the minimum mixed proportion value in the finally obtained mixed proportion. Specifically, the objective function of the mixed integer nonlinear programming model is that the weighted distance between the target crude oil and the vector of macroscopic physical properties of the blended crude oil is minimized. The penalty function for the number of crude oil types is used to define the number of crude oil types selected from the ordered crude oil samples for modeling, and is an increasing function of crude oil types, with the larger number being the larger the penalty function value. The penalty function for the minimum blend ratio value is a decreasing penalty function for the minimum blend ratio, i.e., the smaller the minimum value in the blend ratio determined in the final recipe, the larger the value of the penalty function.
By setting the penalty function in the optimization objective, the minimum value of the quantity of the initially selected crude oil and the mixing proportion is in a more reasonable range, which is beneficial to implementation and application of the scheme.
S400, mixing the crude oil samples according to the mixing proportion to form blended crude oil, and determining molecular composition data of the blended crude oil according to the mixing proportion and the molecular composition data of the crude oil samples.
S500, determining macroscopic physical property data of the blended crude oil according to the blending proportion and the molecular composition data of the blended crude oil.
S600, analyzing the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil.
And S700, if the difference does not meet the preset threshold condition, adjusting the blending ratio, returning to the step S400, and re-blending the crude oil samples into blended crude oil according to the adjusted blending ratio so as to re-analyze the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil.
In this embodiment, the difference meeting the preset threshold condition means that the difference between the macroscopic property data of the blended crude oil and the macroscopic property data of the target crude oil can be minimized.
For this purpose, the difference between the macroscopic property data of the blended crude oil and the macroscopic property data of the target crude oil can preferably be measured by means of a quality assessment parameter. Specifically, the quality assessment parameter is equal to a weighted distance between the respective macroscopic property data of the blended crude oil and a vector of the respective macroscopic property data of the target crude oil, such as a sum of products of squares of differences and the respective corresponding weights.
In this embodiment, when the value of the quality evaluation parameter reaches the minimum value, it is judged that the difference between the macroscopic property data of the blended crude oil and the macroscopic property data of the target crude oil is minimized.
S800, if the difference meets the preset threshold condition, taking the molecular composition data and the blending proportion of the blended crude oil as the molecular composition data and the blending proportion of the target crude oil.
The method of the embodiment can rapidly and accurately determine the molecular composition of the crude oil and the mixing proportion of the target crude oil, and avoids economic loss caused by wrong molecular composition and mixing proportion in the subsequent process flow.
Example III
Based on the same inventive concept, as shown in fig. 3: the embodiment of the invention provides an optimizing device for determining a target crude oil mixing proportion, which comprises the following components:
the first acquisition module is used for acquiring macroscopic physical property data of the target crude oil;
the first searching module is used for searching a plurality of crude oil samples similar to the target crude oil in the crude oil database according to macroscopic physical property data of the target crude oil;
the analysis module is used for determining the mixing proportion of the crude oil samples by utilizing a mixed integer nonlinear programming method;
the mixing module is used for mixing the crude oil samples according to the mixing proportion to form blended crude oil, and determining molecular composition data of the blended crude oil according to the mixing proportion and the molecular composition data of the crude oil samples;
the determining module is used for determining macroscopic physical property data of the blended crude oil according to the blending proportion and the molecular composition data of the blended crude oil;
the adjusting module is used for adjusting the mixing proportion according to the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil, and remixing the crude oil samples into the blended crude oil according to the adjusted mixing proportion until the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil is minimum; in the adjustment module, when the sum of products of squares of differences between macroscopic property data of the blended crude oil and macroscopic property data corresponding to the target crude oil and weights corresponding to the macroscopic property data reaches a minimum value, the difference between the macroscopic property data of the blended crude oil and the macroscopic property data of the target crude oil is judged to be minimum.
The second acquisition module is used for acquiring the adjusted mixing proportion.
Preferably, the device further comprises a second searching module, which is used for searching a crude oil sample consistent with the target crude oil in the crude oil database according to macroscopic physical property data of the target crude oil; if a crude oil sample consistent with the target crude oil is found in the crude oil database, the target crude oil is 100% of the crude oil sample; if the crude oil sample consistent with the target crude oil is not found in the crude oil database, a first searching module is called to search a plurality of crude oil samples similar to the target crude oil in the crude oil database according to macroscopic physical property data of the target crude oil.
Preferably, as shown in fig. 4, the first search module 1 specifically includes:
a calculation unit 101 for calculating, for each crude oil sample in the crude oil database, the physical similarity between the crude oil sample and a target oil product;
a sorting unit 102 for sorting the crude oil samples in the crude oil database according to the physical similarity between each crude oil sample in the crude oil database and the target oil;
and a selecting unit 103 for selecting a plurality of crude oil samples closest to the physical properties of the target crude oil based on the sorting result.
Example IV
Based on the same inventive concept, as shown in fig. 5, an embodiment of the present invention provides an optimizing device for determining a target crude oil blending ratio, which includes a processor 1110, a communication interface 1120, a memory 1130, and a communication bus 1140, wherein the processor 1110, the communication interface 1120, and the memory 1130 complete communication with each other through the communication bus 1140;
a memory 1130 for storing a computer program;
the processor 1110 is configured to implement an optimization method for determining a target crude oil blending ratio as follows when executing a program stored in the memory 1130:
acquiring macroscopic physical property data of target crude oil;
searching a plurality of crude oil samples similar to the target crude oil in a crude oil database according to macroscopic physical property data of the target crude oil;
determining the mixing proportion of the crude oil samples by using a mixed integer nonlinear programming method;
mixing the crude oil samples according to the mixing proportion to form blended crude oil, and determining molecular composition data of the blended crude oil according to the mixing proportion and the molecular composition data of the crude oil samples;
determining macroscopic physical property data of the blended crude oil according to the blending proportion and the molecular composition data of the blended crude oil;
adjusting the mixing proportion according to the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil, and remixing the crude oil samples into the blended crude oil according to the adjusted mixing proportion until the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil is minimum;
and obtaining the mixing proportion of a plurality of crude oil samples in the adjusted blended crude oil as the mixing proportion of the target crude oil.
The communication bus 1140 may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices described above.
The memory 1130 may include random access memory (Random Access Memory, simply RAM) or may include non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. Optionally, the memory 1130 may also be at least one storage device located remotely from the processor 1110.
The processor 1110 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable GateArray, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Example five
Based on the same inventive concept, embodiments of the present invention provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the steps of the method for determining the target crude oil blending ratio in any of the above possible implementations.
Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Based on the same inventive concept as the first embodiment, the present embodiment provides a computer-readable storage medium storing one or more programs executable by one or more processors to control the operation of the above-described optimization apparatus for determining a target crude oil blending ratio to implement the above-described optimization method for determining a target crude oil blending ratio.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present invention are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.) means from one website, computer, server, or data center. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices, such as servers, data centers, etc., that contain an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention. It is noted that the terms used herein are used merely to describe particular embodiments and are not intended to limit exemplary embodiments in accordance with the present application and when the terms "comprises" and/or "comprising" are used in this specification they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and in the drawings are used for distinguishing between similar objects and not for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein.
It should be understood that the exemplary embodiments in this specification may be embodied in many different forms and should not be construed as limited to only the embodiments set forth herein. These embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of these exemplary embodiments to those skilled in the art, and should not be construed as limiting the invention.

Claims (14)

1. An optimization method for determining a target crude oil blending ratio is characterized by comprising the following steps:
acquiring macroscopic physical property data of target crude oil;
searching a plurality of crude oil samples similar to the target crude oil in a crude oil database according to macroscopic physical property data of the target crude oil;
determining the mixing proportion of the crude oil samples by using a mixed integer nonlinear programming method;
mixing the crude oil samples according to the mixing proportion to form blended crude oil, and determining molecular composition data of the blended crude oil according to the mixing proportion and the molecular composition data of the crude oil samples;
determining macroscopic physical property data of the blended crude oil according to the blending proportion and the molecular composition data of the blended crude oil;
adjusting the mixing proportion according to the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil, and remixing the crude oil samples into the blended crude oil according to the adjusted mixing proportion until the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil is minimum;
and obtaining the mixing proportion of a plurality of crude oil samples in the adjusted blended crude oil as the mixing proportion of the target crude oil.
2. The method for optimizing the determination of a blending ratio of a target crude oil according to claim 1, wherein before the step of searching a crude oil database for crude oil samples similar to the target crude oil based on macroscopic physical property data of the target crude oil, the method further comprises:
searching a crude oil sample consistent with the target crude oil in a crude oil database according to macroscopic physical property data of the target crude oil;
if a crude oil sample consistent with the target crude oil is found in the crude oil database, the target crude oil is 100% of the crude oil sample;
and if the crude oil samples consistent with the target crude oil are not found in the crude oil database, executing the step of searching a plurality of crude oil samples similar to the target crude oil in the crude oil database according to the macroscopic physical property data of the target crude oil.
3. The method for optimizing the determination of the blending ratio of the target crude oil according to claim 1, wherein the step of searching the crude oil database for a plurality of crude oil samples similar to the target crude oil based on macroscopic physical property data of the target crude oil comprises:
calculating the physical similarity between each crude oil sample in the crude oil database and a target oil product;
sequencing the crude oil samples in the crude oil database according to the physical similarity between each crude oil sample in the crude oil database and the target oil product;
and selecting a plurality of crude oil samples closest to the physical properties of the target crude oil according to the sequencing result.
4. The optimization method for determining a blending ratio of a target crude oil according to claim 3, wherein the physical similarity is equal to a sum of products of squares of differences between respective pieces of macroscopic physical property data of the crude oil sample and respective pieces of macroscopic physical property data of the target oil and respective weights; the weights characterize the importance of their corresponding macroscopic physical properties.
5. The method for optimizing the determination of a target crude oil blending ratio according to claim 1, wherein the step of determining the blending ratio of the plurality of crude oil samples by using a mixed integer nonlinear programming method comprises:
determining the blending ratio of the plurality of crude oil samples based on a mixed integer nonlinear programming method and a penalty function, wherein the penalty function comprises:
a penalty function for the number of crude oil types for defining the number of crude oil types selected for modeling from the ordered crude oil samples;
a penalty function for the minimum blend ratio value is used to define the minimum blend ratio value of the finally obtained blend ratios.
6. The method for optimizing a target crude oil blending ratio according to claim 5, wherein,
the penalty function of the crude oil type number is an increasing function of the crude oil type number, and the larger the crude oil type number is, the larger the value of the penalty function is;
the penalty function for the minimum blend ratio value is a decreasing function of the minimum blend ratio, the smaller the minimum blend ratio value, the larger the penalty function value.
7. The method for optimizing the blending ratio of the target crude oil according to claim 1, wherein when it is determined that the sum of products of the squares of differences between the macroscopic property data of the blended crude oil and the macroscopic property data of the target crude oil and the weights corresponding to the respective macroscopic property data is minimized, it is determined that the difference between the macroscopic property data of the blended crude oil and the macroscopic property data of the target crude oil is minimized.
8. An optimizing apparatus for determining a target crude oil blending ratio, comprising:
the first acquisition module is used for acquiring macroscopic physical property data of the target crude oil;
the first searching module is used for searching a plurality of crude oil samples similar to the target crude oil in the crude oil database according to macroscopic physical property data of the target crude oil;
the analysis module is used for determining the mixing proportion of the crude oil samples by utilizing a mixed integer nonlinear programming method;
the mixing module is used for mixing the crude oil samples according to the mixing proportion to form blended crude oil, and determining molecular composition data of the blended crude oil according to the mixing proportion and the molecular composition data of the crude oil samples;
the determining module is used for determining macroscopic physical property data of the blended crude oil according to the blending proportion and the molecular composition data of the blended crude oil;
the adjusting module is used for adjusting the mixing proportion according to the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil, and remixing the crude oil samples into the blended crude oil according to the adjusted mixing proportion until the difference between the macroscopic physical property data of the blended crude oil and the macroscopic physical property data of the target crude oil is minimum;
the second acquisition module is used for acquiring the adjusted mixing proportion.
9. The apparatus for optimizing a target crude oil blending ratio determination as claimed in claim 8, further comprising: a second search module is provided for searching for the data,
the second searching module is used for searching a crude oil sample consistent with the target crude oil in the crude oil database according to macroscopic physical property data of the target crude oil; if a crude oil sample consistent with the target crude oil is found in the crude oil database, the target crude oil is 100% of the crude oil sample; if the crude oil sample consistent with the target crude oil is not found in the crude oil database, a first searching module is called to search a plurality of crude oil samples similar to the target crude oil in the crude oil database according to macroscopic physical property data of the target crude oil.
10. The optimization device for determining a target crude oil blending ratio of claim 8, wherein the first lookup module comprises:
the calculating unit is used for calculating the physical similarity between each crude oil sample in the crude oil database and a target oil product;
the sequencing unit is used for sequencing the crude oil samples in the crude oil database according to the physical similarity between each crude oil sample in the crude oil database and the target oil product;
and a selection unit for selecting a plurality of crude oil samples closest to the physical properties of the target crude oil according to the sorting result.
11. The apparatus according to claim 10, wherein the adjustment module determines that the difference between the macro-physical property data of the blended crude oil and the macro-physical property data of the target crude oil is minimized when it is determined that the sum of the products of the squares of the differences and the weights corresponding to the macro-physical property data of the blended crude oil and the macro-physical property data of the target crude oil is minimized.
12. The optimizing equipment for determining the blending proportion of the target crude oil is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method for optimizing the determination of the blending ratio of a target crude oil according to any one of claims 1 to 7 when executing a program stored on a memory.
13. A computer-readable storage medium storing one or more programs executable by one or more processors to implement the method of optimizing the determination of a target crude oil blending ratio of any one of claims 1 to 7.
14. The computer readable storage medium of claim 13, wherein the computer readable storage medium is one of a magnetic medium, an optical medium, and a semiconductor medium.
CN202111660570.XA 2021-12-31 2021-12-31 Optimization method and device for determining blending proportion of target crude oil Pending CN116407971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111660570.XA CN116407971A (en) 2021-12-31 2021-12-31 Optimization method and device for determining blending proportion of target crude oil

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111660570.XA CN116407971A (en) 2021-12-31 2021-12-31 Optimization method and device for determining blending proportion of target crude oil

Publications (1)

Publication Number Publication Date
CN116407971A true CN116407971A (en) 2023-07-11

Family

ID=87053438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111660570.XA Pending CN116407971A (en) 2021-12-31 2021-12-31 Optimization method and device for determining blending proportion of target crude oil

Country Status (1)

Country Link
CN (1) CN116407971A (en)

Similar Documents

Publication Publication Date Title
CN107967204B (en) Method and system for measuring line down pressure and terminal equipment
CN112199293A (en) Software quality evaluation method and device, terminal equipment and storage medium
CN111444188A (en) Stock test data preparation method and device, storage medium and electronic equipment
CN117151070A (en) Test paper question-setting method, device, equipment and computer readable storage medium
CN116407971A (en) Optimization method and device for determining blending proportion of target crude oil
US20090235217A1 (en) Method to identify timing violations outside of manufacturing specification limits
CN112416782A (en) Test result verification method and device and electronic equipment
CN112767103A (en) Financial data analysis method and device and electronic equipment
CN114567386B (en) High-precision channel group delay characteristic fitting and simulation implementation method, system, storage medium and communication system
CN110968835A (en) Approximate quantile calculation method and device
CN116430014A (en) Method and system for acquiring detailed evaluation data of target oil product
CN113449422B (en) Method, device, equipment and storage medium for processing test data
CN114550865A (en) Multidimensional data analysis method and device influencing student physical measurement
CN111741526B (en) Positioning method, positioning device, electronic equipment and computer storage medium
CN113836826A (en) Key parameter determination method and device, electronic device and storage medium
CN107992287B (en) Method and device for checking system demand priority ranking result
CN113642209A (en) Structure implantation fault response data acquisition and evaluation method based on digital twinning
CN117574177B (en) Data processing method, device, medium and equipment for user wire expansion
CN116413417A (en) Oil product data analysis method, system and equipment based on spectrum data
TW202029022A (en) Regression method and system based on system program infrastructure
Chunovkina et al. An approach for evaluating the results of key comparisons of standards with inconsistent data
CN114996303A (en) Calibration method, device, equipment and medium for calling cost factor of database
CN114417098A (en) Information processing method and device for improving food detection accuracy
JP2024029918A (en) Plastic recycling support device and plastic recycling support method
CN116680280A (en) Data verification method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination