CN104678780A - Ontology-construction-model-based control method of chemical production process - Google Patents
Ontology-construction-model-based control method of chemical production process Download PDFInfo
- Publication number
- CN104678780A CN104678780A CN201510083650.1A CN201510083650A CN104678780A CN 104678780 A CN104678780 A CN 104678780A CN 201510083650 A CN201510083650 A CN 201510083650A CN 104678780 A CN104678780 A CN 104678780A
- Authority
- CN
- China
- Prior art keywords
- devs
- model
- ontology
- production process
- output
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012824 chemical production Methods 0.000 title claims abstract description 31
- 230000008569 process Effects 0.000 title claims abstract description 29
- 238000004088 simulation Methods 0.000 claims abstract description 36
- 238000004886 process control Methods 0.000 claims abstract description 14
- 238000004519 manufacturing process Methods 0.000 claims abstract description 13
- 238000012795 verification Methods 0.000 claims abstract description 4
- 230000006870 function Effects 0.000 claims description 58
- 230000007704 transition Effects 0.000 claims description 20
- 238000012546 transfer Methods 0.000 claims description 19
- 238000010276 construction Methods 0.000 claims description 9
- 239000000470 constituent Substances 0.000 abstract 2
- 230000006399 behavior Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 230000008878 coupling Effects 0.000 description 5
- 238000010168 coupling process Methods 0.000 description 5
- 238000005859 coupling reaction Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000001052 transient effect Effects 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 4
- 238000013507 mapping Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000012800 visualization Methods 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明公开了一种基于本体构建DEVS模型的化工生产过程控制方法,包括以下步骤:使用本体描述DEVS模型的基本组成元素以及基本组成元素之间的关系,得到DEVS本体模型;依据化工生产过程构建生产模型,并利用该生产模型进行DEVS本体模型实例化,得到初始DEVS实例;对初始DEVS实例进行推理校验,然后对获得的冲突进行修正,得到DEVS实例;将DEVS实例映射为DEVS模型代码;将DEVS模型代码应用于化工生产过程仿真,并依据仿真结果控制化工生产过程。本发明利用本体强大的表达能力建立DEVS本体模型,并利用本体强大的推理能力对DEVS本体模型进行校验,保证化工生产过程的安全进行。
The invention discloses a chemical production process control method for constructing a DEVS model based on an ontology, comprising the following steps: using the ontology to describe the basic constituent elements of the DEVS model and the relationship between the basic constituent elements to obtain the DEVS ontology model; constructing the DEVS model according to the chemical production process Produce the model, and use the production model to instantiate the DEVS ontology model to obtain the initial DEVS instance; perform reasoning verification on the initial DEVS instance, and then correct the obtained conflicts to obtain the DEVS instance; map the DEVS instance to the DEVS model code; Apply the DEVS model code to the simulation of chemical production process, and control the chemical production process according to the simulation results. The invention utilizes the strong expression ability of the ontology to establish a DEVS ontology model, and utilizes the powerful reasoning ability of the ontology to verify the DEVS ontology model to ensure the safety of the chemical production process.
Description
技术领域technical field
本发明涉及化工生产控制领域,具体涉及一种基于本体构建模型的化工生产过程控制方法。The invention relates to the field of chemical production control, in particular to a chemical production process control method based on an ontology construction model.
背景技术Background technique
现代工业中,由于生产过程通常都比较复杂,在生产进行之前一般会进行建模仿真,以指导生产过程顺利进行。In modern industry, since the production process is usually relatively complicated, modeling and simulation is generally carried out before production to guide the smooth progress of the production process.
建模与仿真技术通过观察、分析系统的行为和运行原理,在计算机或实体上建立系统的抽象模型,并在模型上进行系统实验,来分析系统的行为和原理。建模与仿真技术已经成为设计、分析和研究各类系统的最常用的技术手段之一。Modeling and simulation technology analyzes the behavior and principle of the system by observing and analyzing the behavior and operating principle of the system, establishing an abstract model of the system on a computer or entity, and conducting system experiments on the model. Modeling and simulation technology has become one of the most commonly used technical means to design, analyze and study various systems.
在多年的研究和发展中,建模和仿真领域中产生了各种不同特点的技术方法,如连续时间仿真、离散时间仿真、离散事件仿真等,其中,离散事件系统仿真是非常重要的一类建模与仿真方法,在大量人造的系统中得到了广泛的应用,如排队系统,交通系统等。In years of research and development, various technical methods with different characteristics have been produced in the field of modeling and simulation, such as continuous time simulation, discrete time simulation, discrete event simulation, etc. Among them, discrete event system simulation is a very important category. Modeling and simulation methods have been widely used in a large number of man-made systems, such as queuing systems and traffic systems.
与其他仿真技术相比,离散事件系统仿真有两个突出的特点:Compared with other simulation techniques, discrete event system simulation has two outstanding features:
(1)系统的状态只在离散事件点上发生变化,并且离散事件点一般是不确定的;(1) The state of the system only changes at discrete event points, and discrete event points are generally uncertain;
(2)系统中的状态变化往往无法用数学公式表示,通常使用图、表等接近自然语言的方式来描述。(2) The state changes in the system often cannot be expressed by mathematical formulas, and are usually described in a way close to natural language such as graphs and tables.
DEVS(离散事件仿真范式)是一种形式化地描述离散事件系统仿真的方法。在DEVS建模方法中,建模对象首先被分解为一个个简单的模块,然后多个简单的模块可以聚合在一起,通过这样的方式可以将所有的简单模块一层一层的聚合在一起,这些简单模块就是DEVS原子模型,而通过聚合所形成的新模块便是DEVS耦合模型。DEVS (Discrete Event Simulation Paradigm) is a method to formally describe the simulation of discrete event systems. In the DEVS modeling method, the modeling object is first decomposed into simple modules, and then multiple simple modules can be aggregated together. In this way, all simple modules can be aggregated layer by layer. These simple modules are DEVS atomic models, and the new modules formed by aggregation are DEVS coupled models.
DEVS耦合模型和DEVS原子模型的输入端口、输出端口具有相似性,故在聚合新的模块时,可以将耦合模型和原子模型等同看待。The input ports and output ports of the DEVS coupling model and the DEVS atomic model are similar, so when a new module is aggregated, the coupling model and the atomic model can be treated equally.
基本DEVS原子模型定义如下:The basic DEVS atomic model is defined as follows:
AtomicDEVS=<X,s0,S,Y,δint,δext,λ,ta>AtomicDEVS=<X,s 0 ,S,Y,δ int ,δ ext ,λ,ta>
X:输入事件的集合;X: collection of input events;
Y:输出事件的集合;Y: a collection of output events;
s0:系统的初始状态;s 0 : the initial state of the system;
S:状态序列的集合;S: a collection of state sequences;
δint:S→S,模型的内部状态转移函数;δ int : S→S, the internal state transition function of the model;
δext:Q×X→S,模型的外部状态转移函数,其中δ ext : Q×X→S, the external state transition function of the model, where
Q={(s,e)|s∈S,0≤e≤ta(s)};Q={(s,e)|s∈S,0≤e≤ta(s)};
λ:S→Y,输出函数;λ: S→Y, output function;
ta:时间推进函数;ta: time advance function;
基本DEVS耦合模型定义如下:The basic DEVS coupling model is defined as follows:
coupledDEVS=<X,Y,D,{Md},{Id},{Zi,d},Select>coupledDEVS=<X,Y,D,{M d },{I d },{Z i,d },Select>
X:输入事件的集合;X: collection of input events;
Y:输出事件的集合;Y: a collection of output events;
D:模块索引的集合;D: collection of module indexes;
对Md是一个DEVS模型;right M d is a DEVS model;
对Id是对模块d有影响的模块集合,即 right I d is the set of modules that have an influence on module d, i.e.
对Zi,d是一个描述从i到d的输出转换函数;right Z i,d is an output transition function describing from i to d;
Zi,d:X→Xd,if i=N;表示耦合模型的外部输入与其他模块的输入的连接;Z i,d :X→X d ,if i=N; represents the connection between the external input of the coupling model and the input of other modules;
Zi,d:Yi→Y,if d=N;表示模块的输出与耦合模型的输出的连接;Z i,d :Y i →Y,if d=N; represents the connection between the output of the module and the output of the coupling model;
Zi,d:Yi→Xd,if d≠N and i≠N;表示模块之间的连接;Z i,d :Y i →X d ,if d≠N and i≠N; indicates the connection between modules;
上述DEVS模型的定义都是形式化的描述,DEVS模型的很多方面都难以用数学方程式来表达。在实际使用中,DEVS模型都是以代码或者文档等形式存在,如果DEVS模型在开发中出现错误,只有等到开始运行仿真系统的时候,才有可能发现。The above definitions of the DEVS model are formal descriptions, and many aspects of the DEVS model are difficult to express with mathematical equations. In actual use, the DEVS model exists in the form of code or documents. If there is an error in the development of the DEVS model, it is only possible to find it when the simulation system starts to run.
在人工智能和计算机领域中,本体常被用来解决和知识相关的问题。本体的定义有很多,其中较好的一种定义是“本体是概念的明确规范说明”。本体常被用来描述某个知识领域内的实体、概念、概念之间的关系以及这些关系的规则。本体具有强大的表达能力,本体利用“资源”、“属性”和“属性值”这样的三元组来表示一个二元关系,而任何一个复杂的关系都能用这种二元关系来分解、表示。In the field of artificial intelligence and computing, ontologies are often used to solve knowledge-related problems. There are many definitions of ontology, and one of the better definitions is "ontology is a clear specification of a concept". Ontology is often used to describe entities, concepts, relationships between concepts and the rules of these relationships in a knowledge domain. Ontology has a powerful expressive ability. Ontology uses triples such as "resource", "attribute" and "attribute value" to represent a binary relationship, and any complex relationship can be decomposed by this binary relationship. express.
发明内容Contents of the invention
本发明提供了一种基于本体构建DEVS模型的化工生产过程控制方法,利用本体强大的表达能力建立DEVS本体模型,并利用本体强大的推理能力对DEVS本体模型进行校验,避免将错误代入仿真过程,保证化工生产过程的安全进行。The invention provides a chemical production process control method based on ontology to build a DEVS model. The DEVS ontology model is established by using the ontology's powerful expressive ability, and the DEVS ontology model is verified by using the ontology's powerful reasoning ability to avoid errors from being substituted into the simulation process. , to ensure the safety of the chemical production process.
一种基于本体构建DEVS模型的化工生产过程控制方法,包括以下步骤:A kind of chemical production process control method that builds DEVS model based on ontology, comprises the following steps:
(1)使用本体描述DEVS模型的基本组成元素以及基本组成元素之间的关系,得到DEVS本体模型。(1) Use the ontology to describe the basic components of the DEVS model and the relationship between the basic components to obtain the DEVS ontology model.
DEVS本体模型(DEVS Modeling Ontology,简称DEVSMO),是利用本体建立的对DEVS模型的描述。The DEVS Ontology Model (DEVS Modeling Ontology, referred to as DEVSMO) is a description of the DEVS model built using ontology.
所述DEVS模型包括三个多变量集合和四个函数,其中三个多变量集合分别为:输入事件集合、输出事件集合以及状态集合,四个函数分别为:外部状态转移函数、内部状态转移函数、时间推进函数以及输出函数。The DEVS model includes three multivariate sets and four functions, wherein the three multivariate sets are: input event set, output event set, and state set, and the four functions are: external state transition function, internal state transition function , time-advancing function, and output function.
输入事件集合、输出事件集合以及状态集合都可以为空,也可以包含多个变量,每个变量都有一个值域,每个值域对应一个数学集合。The input event collection, output event collection, and state collection can all be empty, or contain multiple variables, each variable has a value range, and each value range corresponds to a mathematical set.
变量有不同的数据类型,数据类型可以是浮点数(float)、整数(integer)、字符串(string)、布尔值(boolean),也可以是比较复杂的数据类型,如枚举(enumeration)、队列(queue)等。Variables have different data types, and the data types can be floating-point numbers (float), integers (integer), strings (string), Boolean values (boolean), or more complex data types, such as enumeration (enumeration), queue (queue), etc.
根据变量在DEVS模型中的不同作用,可以将这些变量分为输入变量(InputVariable)、输出变量(OutputVariable)和状态变量(StateVariable)。According to the different functions of variables in the DEVS model, these variables can be divided into input variables (InputVariable), output variables (OutputVariable) and state variables (StateVariable).
DEVS模型(即DEVS的原子模型)有很多不同端口用来接收输入事件,每个端口都和一个变量绑定,用于保存输入端口的值。The DEVS model (that is, the atomic model of DEVS) has many different ports to receive input events, and each port is bound to a variable to save the value of the input port.
DEVS模型的状态集合至少含有名为“Phase”的特殊状态变量和时间推进变量,大部分DEVS模型中都含有很多用户自定义的状态变量。The state collection of the DEVS model contains at least a special state variable named "Phase" and a time advancement variable, and most DEVS models contain many user-defined state variables.
DEVS模型中,内部状态转移函数包含有多个内部状态更新行为,外部状态转移函数包含有多个外部状态更新行为,输出函数包含有多个输出变量赋值行为。In the DEVS model, the internal state transition function contains multiple internal state update behaviors, the external state transition function contains multiple external state update behaviors, and the output function contains multiple output variable assignment behaviors.
在DEVS建模中,一个建模对象可以根据所接收到的外来信息定义输入事件集合;根据输出的信息定义输出事件集合;根据接收外来信息的渠道定义输入端口;根据输出渠道定义输出端口;根据系统状态定义系统的状态变量;根据系统状态变量的变迁情况定义内部事件转移、外部事件转移的过程。In DEVS modeling, a modeling object can define the input event set according to the received external information; define the output event set according to the output information; define the input port according to the channel receiving the external information; define the output port according to the output channel; according to The system state defines the state variables of the system; the process of internal event transfer and external event transfer is defined according to the transition of system state variables.
所述DEVS本体模型包括三类本体以及四个函数,其中三类本体分别为:输入集合、输出集合和状态集合,四个函数分别为:外部事件转移函数、内部事件转移函数、时间推进函数以及输出函数。The DEVS ontology model includes three types of ontology and four functions, wherein the three types of ontology are: input set, output set and state set, and the four functions are: external event transfer function, internal event transfer function, time advancement function and output function.
在定义了DEVS模型的各部分后,将输入事件集合、输出事件集合、输入端口、输出端口、状态变量、内部事件转移、外部事件转移分别在DEVS本体模型中找到对应的类。After defining each part of the DEVS model, find the corresponding classes in the DEVS ontology model for the input event set, output event set, input port, output port, state variable, internal event transfer, and external event transfer.
在DEVS本体模型中,每个输入集合(InputSet)包含若干输入变量(InputVariable)以及输入端口集合,输入端口集合中包含若干输入端口,每个输入端口(InputPort)与一个输入变量相关联;每个输出集合(OutputSet)包含若干输出变量(OutputVariable)以及输出端口(OutputPort)集合,输出端口集合中包含若干输出端口,每个输出端口与一个输出变量相关联。In the DEVS ontology model, each input set (InputSet) contains several input variables (InputVariable) and input port sets, and the input port set contains several input ports, and each input port (InputPort) is associated with an input variable; each The output set (OutputSet) includes a set of output variables (OutputVariable) and output ports (OutputPort). The set of output ports includes a set of output ports, and each output port is associated with an output variable.
在DEVS本体模型中,模型的动作可能是状态初始化(StateInitialization)、状态更新(StateUpdate)、输入变量赋值(InputVariableAssignment)、输出变量赋值(OutputVariableAssignment)、参数赋值(ParameterAssignment)以及模型输出(SendOutput)等几种,其中有些动作和对应的操作变量相关联,这些动作通过更改DEVS本体模型中各种变量的值来表现模型行为。DEVS本体模型中的外部事件转移函数、内部事件转移函数、输出函数都含有许多不同的模型行为。In the DEVS ontology model, the actions of the model may be state initialization (StateInitialization), state update (StateUpdate), input variable assignment (InputVariableAssignment), output variable assignment (OutputVariableAssignment), parameter assignment (ParameterAssignment) and model output (SendOutput), etc. Some of these actions are associated with corresponding operational variables, and these actions express model behavior by changing the values of various variables in the DEVS ontology model. The external event transfer function, internal event transfer function, and output function in the DEVS ontology model all contain many different model behaviors.
(2)依据化工生产过程构建生产模型,并利用该生产模型进行DEVS本体模型实例化,得到初始DEVS实例。(2) Construct a production model according to the chemical production process, and use the production model to instantiate the DEVS ontology model to obtain the initial DEVS instance.
在DEVSMO的对应类中添加相应的实例,形成DEVSMO实例,这也是DEVS模型的本体形式。Add the corresponding instance in the corresponding class of DEVSMO to form a DEVSMO instance, which is also the ontology form of the DEVS model.
(3)对初始DEVS实例进行推理校验,然后对获得的冲突进行修正,得到DEVS实例。(3) Perform inference verification on the initial DEVS instance, and then correct the obtained conflicts to obtain the DEVS instance.
在模型代码化之前,利用本体推理对初始DEVS实例进行校验,能够发现本体形式的DEVS实例中冲突信息,方便查找错误,进行修正,提高建模的效率以及正确率。Before the model is coded, the ontology reasoning is used to verify the initial DEVS instance, and the conflict information in the DEVS instance in the form of ontology can be found, which is convenient for finding errors, making corrections, and improving the efficiency and accuracy of modeling.
(4)将DEVS实例映射为DEVS模型代码。(4) Map DEVS instance to DEVS model code.
根据DEVS仿真环境,按需调整映射产生的DEVS代码形式,将校验过的DEVS实例转换为DEVS模型代码,DEVS模型代码可以在具体的仿真环境下执行。According to the DEVS simulation environment, adjust the DEVS code form generated by the mapping as needed, and convert the verified DEVS instance into the DEVS model code, and the DEVS model code can be executed in a specific simulation environment.
将DEVS实例中的InputPort、OutputPort、InputVariable、OutputVariable、StateVariable分别和DEVS模型代码中的输入端口、输出端口、输入变量、输出变量、状态变量相对应,将StateInitialization、StateUpdate、InputVariableAssignment、OutputVariableAssignment等分别和DEVS模型代码中的状态初始化、状态更新、输入变量赋值、输出变量赋值等过程对应,最终形成的DEVS模型代码。Correspond the InputPort, OutputPort, InputVariable, OutputVariable, and StateVariable in the DEVS instance to the input port, output port, input variable, output variable, and state variable in the DEVS model code, respectively, and stateInitialization, StateUpdate, InputVariableAssignment, OutputVariableAssignment, etc. The process of state initialization, state update, input variable assignment, and output variable assignment in the model code corresponds to the final DEVS model code.
目前,常用的DEVS仿真环境有CD++、DEVSJAVA等,从DEVS实例映射到各仿真环境下的DEVS模型代码的逻辑可能有所区别,但是在映射的逻辑上大致相同。At present, the commonly used DEVS simulation environments include CD++, DEVSJAVA, etc. The logic of mapping from DEVS instance to DEVS model code in each simulation environment may be different, but the logic of mapping is roughly the same.
本发明以CD++仿真环境为例,将DEVS实例映射为CD++环境中的可执行模型代码。在CD++环境中,一个DEVS模型就是一个C++的类型,这样一个DEVS模型包含两个文件:头文件以及定义文件,这两个文件一般都是以类的名字来命名,头文件主要作为包含了类、功能函数、数据接口声明的载体文件,而定义文件主要用于保存程序的实现。根据CD++中的模型语法,将DEVS实例中的信息重新组织成头文件以及定义文件即可。The invention takes the CD++ simulation environment as an example, and maps the DEVS instance to the executable model code in the CD++ environment. In the CD++ environment, a DEVS model is a C++ type. Such a DEVS model contains two files: header file and definition file. These two files are generally named after the name of the class. The header file mainly contains the class. , function function, and data interface declaration carrier file, while the definition file is mainly used to save the implementation of the program. According to the model syntax in CD++, the information in the DEVS instance can be reorganized into header files and definition files.
(5)将DEVS模型代码应用于化工生产过程仿真,并依据仿真结果控制化工生产过程。(5) Apply the DEVS model code to the simulation of chemical production process, and control the chemical production process according to the simulation results.
本发明基于本体构建DEVS模型的化工生产过程控制方法,使用本体建立DEVS模型的建模本体DEVSMO,增强了建模的可视化,提高了建模效率;使用本体推理引擎对DEVS实例进行校验,弥补了传统DEVS建模无法对得到的模型进行校验的缺陷,能够在建模阶段发现错误,保证化工生产过程的顺利进行。The present invention builds a DEVS model-based chemical production process control method based on an ontology, and uses the ontology to build a DEVS model modeling ontology DEVSMO, which enhances the visualization of modeling and improves modeling efficiency; uses the ontology reasoning engine to verify the DEVS instance, making up for It overcomes the defect that the traditional DEVS modeling cannot verify the obtained model, and can find errors in the modeling stage to ensure the smooth progress of the chemical production process.
附图说明Description of drawings
图1为本发明基于本体构建DEVS模型的化工生产过程控制方法中建模的流程图;Fig. 1 is the flowchart of modeling in the chemical production process control method based on ontology construction DEVS model of the present invention;
图2为炼油厂中某罐区的结构示意图;Fig. 2 is a structural schematic diagram of a tank farm in an oil refinery;
图3为使用本体建立DEVS模型基本组成部分的示意图;Figure 3 is a schematic diagram of the basic components of a DEVS model built using an ontology;
图4为利用本体推理引擎校验初始DEVS实例的示意图;Figure 4 is a schematic diagram of using the ontology reasoning engine to verify the initial DEVS instance;
图5为罐区的仿真结果示意图(横坐标为罐容,纵坐标为时间)。Fig. 5 is a schematic diagram of the simulation results of the tank farm (the abscissa is the tank capacity, and the ordinate is time).
具体实施方式Detailed ways
下面结合附图,对本发明基于本体构建DEVS模型的化工生产过程控制方法做详细描述。The chemical production process control method based on ontology-based DEVS model construction of the present invention will be described in detail below in conjunction with the accompanying drawings.
如图1所示,一种基于本体构建DEVS模型的化工生产过程控制方法,包括以下步骤:As shown in Figure 1, a chemical production process control method based on ontology-based DEVS model construction includes the following steps:
(1)使用本体描述DEVS模型的基本组成元素以及基本组成元素之间的关系,得到DEVS本体模型,DEVS本体模型与DEVS模型的关系结构如表1和图3所示。(1) Use the ontology to describe the basic components of the DEVS model and the relationship between the basic components to obtain the DEVS ontology model. The relationship structure between the DEVS ontology model and the DEVS model is shown in Table 1 and Figure 3.
表1Table 1
(2)依据化工生产过程构建生产模型,并利用该生产模型进行DEVS本体模型实例化,得到初始DEVS实例。(2) Construct a production model according to the chemical production process, and use the production model to instantiate the DEVS ontology model to obtain the initial DEVS instance.
以图2所示的炼油厂的一个罐区作为生产模型为例,构建初始DEVS实例。在图2所示罐区中,Tk02601罐和Tk02602罐通过汇流点Jc00009汇流到罐Tk02603中,罐区调度的基本目标是:通过控制三个罐的出料,使罐区中各罐的液位处于安全水平之中。Taking a tank farm of an oil refinery shown in Figure 2 as an example of a production model, construct an initial DEVS instance. In the tank farm shown in Figure 2, tank Tk02601 and tank Tk02602 are merged into tank Tk02603 through the confluence point Jc00009. The basic goal of tank farm scheduling is to control the discharge of the three tanks so that the liquid level of each tank in the tank farm at a safe level.
在图2所示罐区中,有罐和汇流点两类化工装置,下面分别用DEVSMO来建立罐和汇流点的DEVS模型。In the tank area shown in Figure 2, there are two types of chemical devices: tanks and confluence points. DEVSMO is used to establish the DEVS models of tanks and confluence points respectively.
每个罐装置包含有一个进料侧线和一个出料侧线,在初始DEVS实例中存在相应的进料流量端口和出料流量端口。在初始DEVS实例中,进料测线的流量和出料侧线的流量都有相应的控制信号。罐装置的状态包括进料侧线的流量、出料侧线的流量以及罐容三部分。Each tank assembly contains a feed side draw and an output side draw, with corresponding feed flow ports and output flow ports present in the original DEVS instance. In the initial DEVS example, there are corresponding control signals for the flow rate of the feed line and the flow rate of the discharge side line. The state of the tank device includes three parts: the flow rate of the feed side line, the flow rate of the discharge side line and the tank capacity.
罐装置的初始DEVS实例中的事件包含进料流量控制信号的变化和出料流量控制信号的变化。当进料流量控制信号发生变化时,触发外部事件转移,更新状态变量中的进料流量,进入一个暂态过程;在一段时间后触发内部事件转移,此时,更新状态变量中的罐容,从而进入一个稳态过程。当出料流量控制信号发生变化时,同样触发外部事件转移,以新的出料流量输出,此时处于一个暂态过程,在一段时间后触发内部事件转移,更新状态变量中的罐容,之后就处于稳态过程,以新的出料流量输出。Events in the initial DEVS instance of the tank unit include a change in the feed flow control signal and a change in the output flow control signal. When the feed flow control signal changes, the external event transfer is triggered, the feed flow in the state variable is updated, and enters a transient process; after a period of time, the internal event transfer is triggered, at this time, the tank capacity in the state variable is updated, into a steady state process. When the output flow control signal changes, it also triggers the transfer of external events and outputs the new output flow. At this time, it is in a transient process. After a period of time, the internal event transfer is triggered to update the tank capacity in the state variable, and then It is in the steady state process and is output with the new output flow.
在利用DEVS本体模型建立罐的初始DEVS实例时,需要添加一个进料侧线端口“port_in_1”、一个出料侧线端口”port_out_1”和一个出料侧线流量控制端口“port_control_1”,罐装置的初始DEVS实例中还包含一个外部状态转移函数、一个内部状态转移函数和一个输出函数。When using the DEVS ontology model to create the initial DEVS instance of the tank, it is necessary to add a feed side line port "port_in_1", a discharge side line port "port_out_1" and a discharge side line flow control port "port_control_1", the initial DEVS instance of the tank device Also contains an external state transition function, an internal state transition function and an output function.
外部状态转移函数主要用来处理输入流量变化控制信号的变化以及输出流量控制信号的变化;内部状态转移函数主要用于将罐装置的暂态过程切换成稳态过程;输出函数通过出料侧线端口输出出料流量。The external state transfer function is mainly used to deal with the change of the input flow change control signal and the change of the output flow control signal; the internal state transfer function is mainly used to switch the transient process of the tank device into a steady state process; the output function passes through the discharge side line port Output the output flow rate.
汇流点包含多个进料侧线和一个出料侧线,汇流点的初始DEVS实例也包含多个进料流量端口和一个出料流量端口。当进料流量发生改变时,触发外部事件转移,更新输入的流量。在输出函数中,使用新的流量来计算出料侧线流量,出料侧线的流量为所有输入侧线流量的总和。A confluence contains multiple feed sidings and an effluent siding, and the initial DEVS instance for a confluence also contains multiple feed flow ports and an effluent flow port. When the feed flow rate changes, an external event transfer is triggered to update the input flow rate. In the output function, the new flow is used to calculate the outflow, which is the sum of all inflows.
汇流点的初始DEVS实例非常简单,包含多个进料侧线端口以及一个出料侧线端口,同样,汇流点的初始DEVS实例中也包含有外部状态转移函数、内部状态转移函数以及输出函数,但在汇流点中没有暂态到稳态的过渡过程,故只需要外部状态转移函数来处理输入流量的变化,在内部状态转移中不需要有状态转移,输出函数将瞬时的出料流量输出即可。The initial DEVS instance of the confluence point is very simple, including multiple feed side ports and one discharge side port. Similarly, the initial DEVS instance of the confluence point also includes external state transition functions, internal state transition functions, and output functions, but in There is no transition process from transient state to steady state in the confluence point, so only the external state transition function is needed to deal with the change of input flow. There is no need for state transition in the internal state transition, and the output function can output the instantaneous output flow.
(3)对初始DEVS实例进行推理校验,然后对获得的冲突进行修正,得到DEVS实例;(3) Perform inference verification on the initial DEVS instance, and then correct the obtained conflict to obtain the DEVS instance;
本发明使用本体描述了DEVS模型得到DEVSMO,在DEVSMO中描述了DEVS中各基本组成元素以及各基本组成元素之间的关系,如果初始DEVS实例在构造的时候出现错误,则使用本体推理时就会报错。The present invention uses the ontology to describe the DEVS model to obtain the DEVSMO. In DEVSMO, each basic component element in DEVS and the relationship between each basic component element are described. If an error occurs when the initial DEVS instance is constructed, it will be used for ontology reasoning. error.
图4显示当输入变量“in_value_1”没有指向输入端口“port_in_1”时,推理引擎提示的错误信息,在该错误提示信息中,用框a圈出的地方就是推理引擎在推理过程中出现不一致的地方。“in_value_1Type InputVariable”这一行被圈出,就代表此处推理冲突,也即在建模过程中,in_value_1的类型是InputVariable,但是根据in_value_1和其他基本组成元素的关系,推理出来in_value_1的类型并不是InputVariable。在DEVSMO中,InputVariable是一个Variable并且一定指向一个输入端口,即“InputVariable EquivalentToVariable and(referToPort exactly 1InputPort)”这一行所表达的意思。在图4所示的情况下,只需要在“in_value_1”中添加一个“referToPort”关系指向“port_in_1”即可。Figure 4 shows the error message prompted by the inference engine when the input variable "in_value_1" does not point to the input port "port_in_1". In the error message, the place circled by box a is the inconsistency of the inference engine during the inference process . The line "in_value_1Type InputVariable" is circled, which means that there is a reasoning conflict here, that is, in the modeling process, the type of in_value_1 is InputVariable, but according to the relationship between in_value_1 and other basic components, it is inferred that the type of in_value_1 is not InputVariable . In DEVSMO, InputVariable is a Variable and must point to an input port, that is, the meaning expressed by the line "InputVariable EquivalentToVariable and(referToPort exactly 1InputPort)". In the case shown in Figure 4, it is only necessary to add a "referToPort" relationship pointing to "port_in_1" in "in_value_1".
(4)将DEVS实例映射为DEVS模型代码;(4) Map DEVS instance to DEVS model code;
(5)将DEVS模型代码应用于化工生产过程仿真,并依据仿真结果控制化工生产过程。(5) Apply the DEVS model code to the simulation of chemical production process, and control the chemical production process according to the simulation results.
将步骤(4)得到的DEVS模型代码放入到仿真引擎中,将罐区的现场控制指令输入仿真环境中,得到如图5所示的仿真结果,经过和现场结果对比,仿真结果能较好的拟合。Put the DEVS model code obtained in step (4) into the simulation engine, input the on-site control commands of the tank farm into the simulation environment, and obtain the simulation results shown in Figure 5. After comparing with the field results, the simulation results can be better of fitting.
在图5中,可以看出三个罐装置的罐容都在20000的范围之内,验证了控制指令的正确性,该控制指令可以下达。In Figure 5, it can be seen that the tank capacities of the three tank devices are all within the range of 20,000, which verifies the correctness of the control command, and the control command can be issued.
在传统的仿真建模中,DEVS模型都往往直接以代码形式给出,容易出现差错,这些差错在模型检查的时候往往不容易被检查出来,导致使用仿真结果指导实际生产过程时,出现严重的事故,而利用DEVSMO来建模时,可以提前校验模型,避免了将错误带入仿真过程,使仿真结果对实际生产有更好的指导。In traditional simulation modeling, DEVS models are often directly given in the form of codes, which are prone to errors. These errors are often not easily detected during model checking, resulting in serious problems when using simulation results to guide the actual production process. Accidents, when using DEVSMO to model, the model can be verified in advance, avoiding errors being brought into the simulation process, so that the simulation results have better guidance for actual production.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510083650.1A CN104678780A (en) | 2015-02-15 | 2015-02-15 | Ontology-construction-model-based control method of chemical production process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510083650.1A CN104678780A (en) | 2015-02-15 | 2015-02-15 | Ontology-construction-model-based control method of chemical production process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104678780A true CN104678780A (en) | 2015-06-03 |
Family
ID=53314026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510083650.1A Pending CN104678780A (en) | 2015-02-15 | 2015-02-15 | Ontology-construction-model-based control method of chemical production process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104678780A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113672206A (en) * | 2021-09-02 | 2021-11-19 | 北京航空航天大学 | X language hybrid modeling platform and modeling method |
CN113672207A (en) * | 2021-09-02 | 2021-11-19 | 北京航空航天大学 | X language hybrid model modeling system, method and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130104497A (en) * | 2012-03-14 | 2013-09-25 | 한국과학기술원 | Hierarchical management method of devs based simulation model |
KR101362838B1 (en) * | 2013-08-27 | 2014-02-17 | 엘아이지넥스원 주식회사 | Devs-based distributed simulation system using global coordinator |
KR101421275B1 (en) * | 2013-10-17 | 2014-07-21 | 주식회사 넷커스터마이즈 | simulation method for service prototyping based on user experiences |
-
2015
- 2015-02-15 CN CN201510083650.1A patent/CN104678780A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130104497A (en) * | 2012-03-14 | 2013-09-25 | 한국과학기술원 | Hierarchical management method of devs based simulation model |
KR101362838B1 (en) * | 2013-08-27 | 2014-02-17 | 엘아이지넥스원 주식회사 | Devs-based distributed simulation system using global coordinator |
KR101421275B1 (en) * | 2013-10-17 | 2014-07-21 | 주식회사 넷커스터마이즈 | simulation method for service prototyping based on user experiences |
Non-Patent Citations (4)
Title |
---|
YUNPING HU,JUN XIAO,HAO ZHAO,GANG RONG: "DEVSMO: an ontology of DEVS model representation for model reuse", 《PROCEEDING OF THE 2013 WINTER SIMULATION CONFERENCE》 * |
张建春等: "面向可组合的基于混合DEVS的鱼雷仿真本体", 《系统仿真学报》 * |
彭春光等: "本体在建模与仿真中的应用", 《系统仿真学报》 * |
荣冈等: "基于中立模型表达的数学知识管理方法", 《南京理工大学学报》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113672206A (en) * | 2021-09-02 | 2021-11-19 | 北京航空航天大学 | X language hybrid modeling platform and modeling method |
CN113672207A (en) * | 2021-09-02 | 2021-11-19 | 北京航空航天大学 | X language hybrid model modeling system, method and storage medium |
CN113672207B (en) * | 2021-09-02 | 2024-03-26 | 北京航空航天大学 | X language hybrid model modeling system, method and storage medium |
CN113672206B (en) * | 2021-09-02 | 2024-04-02 | 北京航空航天大学 | An X language hybrid modeling platform and modeling method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
David et al. | Reliability study of complex physical systems using SysML | |
David et al. | Program synthesis: challenges and opportunities | |
CN109634600A (en) | A kind of code generating method based on security extension SysML and AADL model | |
Qin et al. | Statistical verification of cyber-physical systems using surrogate models and conformal inference | |
Chapurlat | UPSL-SE: A model verification framework for Systems Engineering | |
Plaisted | History and prospects for first-order automated deduction | |
de Haan | Parameterized Complexity in the Polynomial Hierarchy | |
Reynolds et al. | Datatypes with shared selectors | |
CN104678780A (en) | Ontology-construction-model-based control method of chemical production process | |
Winter | Model checking abstract state machines | |
Benzmüller | A (Simplified) Supreme Being Necessarily Exists, says the Computer: Computationally Explored Variants of G\" odel's Ontological Argument | |
Cansell et al. | Predicate diagrams for the verification of reactive systems | |
Tundis et al. | Model‐Based Dependability Analysis of Physical Systems with Modelica | |
Cao et al. | A hybrid approach to system verification in early design for complex mechatronic systems based on formal functional semantics | |
CN107292027A (en) | A kind of bounded model checking method of the linear period invariant based on extension | |
Folkerts | An Architecture for Model Behavior Generation for Multiple Simulators | |
D’Silva et al. | Abstract interpretation as automated deduction | |
Ferrarotti et al. | Expressing properties in second-and third-order logic: hypercube graphs and SATQBF | |
Bliem et al. | Implementing Courcelle's Theorem in a declarative framework for dynamic programming | |
Koepke et al. | Models of set theory | |
Lin et al. | OntCheck: An Ontology‐Driven Static Correctness Checking Tool for Component‐Based Models | |
Blass | Symbioses between mathematical logic and computer science | |
Li et al. | Challenges Engaging Formal CBSE in Industrial Applications | |
Wang et al. | An Architecture Modeling Framework for Distributed Automation Systems using SysML and Semantic Web Technologies | |
WO2023004802A1 (en) | Method and device for automatically generating model of industrial process system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150603 |