Heterogeneous Algorithm Model Processing System, Method, Device and Medium

Through the heterogeneous algorithm model processing system, the design of designers and runners is leveraged, combined with container technology and packaging of heterogeneous algorithm model blocks, the problem of single operation mode of industrial software and no support for other language expansion components is solved, achieving a wider application scenario and higher scalability.

CN115756419BActive Publication Date: 2025-06-27HANGZHOU HOLLYSYS AUTOMATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211465468.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2025-06-27
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

The existing industrial software model calculation and operation environment adopts rotation training calling method, with a relatively single operation mode and a high degree of coupling with other functions, resulting in the problem of not supporting other language extension components.

Method used

A heterogeneous algorithm model processing system is proposed, including designers and runners. The executor is configured through container technology, supporting the packaging of heterogeneous algorithm model blocks and the operation of multi-driven methods, realizing the generation and parsing of task descriptions, and supporting data-driven and period-driven computing.

Benefits of technology

It enriches the operating mode of industrial software, expands the coverage of application scenarios, solves the problem of high coupling between the operating environment of the industrial software model and other functions, and supports the expansion of components through other languages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756419B_ABST
    Figure CN115756419B_ABST
Patent Text Reader

Abstract

The present application discloses a heterogeneous algorithm model processing system, which relates to the field of industrial control. It includes a designer and a runner. The runner includes an executor configured through container technology. The designer is used to generate a task description according to the connection relationship and parameter configuration among function blocks, and is used to send it to the runner. The function blocks include preset heterogeneous algorithm model blocks and other function blocks. The preset heterogeneous algorithm model blocks are obtained by encapsulating multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through protocol standards. The runner is used to perform instantiation operations on each function block through the executor according to the parameter configuration of each function block in the task description. The present application encapsulates multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven, so that the application scenario coverage is wide, and it solves the problems that the original industrial software model running environment has a high degree of coupling with other functions and does not support other language extension components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of industrial control, and particularly to a heterogeneous algorithm model processing system, method, device and medium. Background Art

[0002] In the industrial field, the polling mechanism (CyclIcScan-based Execution Model) adopted by IEC61131-3 and the event-driven execution mode (Event-Driver Execution Mode) proposed by the IEC61499 standard are generally used to greatly enhance the reconfigurability and high reusability of distributed automation applications. Based on the IEC61131-3 protocol, the polling mechanism is adopted, that is, at a certain scanning period. This method has poor flexibility, so that different data calculation models need to run and calculate according to a unified period; based on the event-driven execution mode proposed by the IEC61499 protocol, developers can develop software first without selecting a model yet, but its standard is complex and it is difficult to be compatible with most existing algorithm models.

[0003] In summary, the prior art has the following problems: The original industrial software model calculation and operation environment generally adopts a polling call method, and the operation mode is relatively single; the coupling degree between the original industrial software and other functions is high, the overall industrial software is expensive and heavy, and the existing industrial algorithms are each in a separate system and difficult to spread.

[0004] Therefore, how to enrich the operation mode of industrial software, make the application scenario coverage of industrial software model calculation wider, and solve the problem that the industrial software model operation environment is highly coupled with other functions and does not support the extension of components through other languages remains to be further explored by those skilled in the art. Summary of the Invention

[0005] In view of this, the purpose of the present invention is to provide a heterogeneous algorithm model processing system, method, device and medium, which can enrich the operation mode of industrial software, make the application scenario coverage of industrial software model calculation wider, and solve the problem that the industrial software model operation environment is highly coupled with other functions and does not support the extension of components through other languages. The specific solutions are as follows:

[0006] In a first aspect, the present application discloses a heterogeneous algorithm model processing system, which includes a designer, a runner connected to the designer, and a number of executors configured by container technology in the runner; wherein,

[0007] The designer is used to generate a task description according to the connection relationships between various function blocks and the parameter configuration of the function blocks in the configuration editing interface, and is used to send the task description to the runner; wherein, the connection relationships and the parameter configuration are pre-created in the configuration editing interface by a user terminal based on an engineering task to be executed, the function blocks include preset heterogeneous algorithm model blocks and other function blocks, and the preset heterogeneous algorithm model blocks are algorithm model blocks obtained by encapsulating multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through a preset protocol standard;

[0008] The runner is used to parse the task description after receiving the task description sent by the designer, and according to the parameter configuration of each function block in the parsed task description, perform an instantiation operation on each function block in the current configuration editing interface through the executor to realize the operation of the engineering task.

[0009] Optionally, the executor includes:

[0010] A data acquisition module, which is used to acquire data according to each data acquisition point specified in the parameter configuration, and generate corresponding messages after the data acquisition is completed;

[0011] A preset message dispatcher, which is used to generate subscription relationships between each data acquisition point and different preset heterogeneous algorithm model blocks, and when receiving a message sent by the data acquisition point, notify the corresponding preset heterogeneous algorithm model block based on the subscription relationship, so that the preset algorithm model block can obtain data from the data acquisition module;

[0012] The preset heterogeneous algorithm model block is used to obtain data from the data acquisition module after receiving the notification from the preset message dispatcher, and perform calculations based on the acquired data to generate a calculation result;

[0013] A data write-back module, which is used to write the calculation result into the data write-back point specified in the parameter configuration.

[0014] Optionally, the preset heterogeneous algorithm model block

[0015] is used to obtain data from the data acquisition module after receiving the notification from the preset message dispatcher, and perform calculations based on the acquired data to generate a calculation result with a data type of structured data or unstructured data.

[0016] Optionally, the preset heterogeneous algorithm model block

[0017] After receiving the notification from the preset message dispatcher, data is acquired from the data acquisition module through the preset protocol standard, and calculations are performed based on the acquired data to generate calculation results.

[0018] Optionally, the preset heterogeneous algorithm model block

[0019] is used to acquire data from the data acquisition module according to the first protocol standard or the second protocol standard after receiving the notification from the preset message dispatcher, and perform calculations based on the acquired data to generate calculation results; the first protocol standard includes the FMI2.0 protocol, and the second protocol standard is a custom protocol.

[0020] Optionally, the runner further includes: a container resource management module for configuring an executor based on a single container or multiple containers according to the performance requirements of the engineering task and the resources available on the current server; wherein the current server is the server where the heterogeneous algorithm model processing system is located.

[0021] Optionally, the runner further includes:

[0022] a manager for distributing the engineering task to be executed to different executors based on a preset scheduling mechanism.

[0023] In a second aspect, the present application discloses a method for processing a heterogeneous algorithm model, which is applied to a heterogeneous algorithm model processing system. The method includes:

[0024] Generating a task description according to the connection relationship between each function block in the configuration editing interface and the parameter configuration of the function block; wherein the connection relationship and the parameter configuration are pre-created by a user terminal in the configuration editing interface based on the engineering task to be executed, the function block includes a preset heterogeneous algorithm model block and other function blocks, and the preset heterogeneous algorithm model block is an algorithm model block obtained by encapsulating multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through a preset protocol standard;

[0025] Parsing the task description, and performing an instantiation operation on each function block in the current configuration editing interface according to the parameter configuration of each function block in the parsed task description to implement the operation of the engineering task.

[0026] In a third aspect, the present application discloses an electronic device, including:

[0027] a memory for storing a computer program;

[0028] A processor for executing the computer program to implement the heterogeneous algorithm model processing method disclosed above.

[0029] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the heterogeneous algorithm model processing method disclosed above is implemented.

[0030] It can be seen that the present application proposes a heterogeneous algorithm model processing system, which includes a designer and a runner connected to the designer. The runner includes a number of executors configured by container technology; wherein, the designer is used to generate a task description according to the connection relationship between each function block in the configuration editing interface and the parameter configuration of the function block, and is used to send the task description to the runner; wherein, the connection relationship and the parameter configuration are pre-created by the user terminal in the configuration editing interface based on the engineering task to be executed. The function block includes a preset heterogeneous algorithm model block and other function blocks. The preset heterogeneous algorithm model block is an algorithm model block obtained by encapsulating multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through a preset protocol standard; the runner is used to parse the task description after receiving the task description sent by the designer, and according to the parameter configuration of each function block in the parsed task description, perform instantiation operations on each function block in the current configuration editing interface through the executor to implement the operation of the engineering task. In summary, the present application encapsulates multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven, enabling the algorithm model blocks to be driven in different driving modes, thereby expanding the coverage of the application scenario. And since the heterogeneous algorithm model can be understood as an algorithm model developed in different language environments, the present application uses the encapsulated multiple industrial software heterogeneous algorithm model blocks based on data-driven and / or cycle-driven to execute engineering tasks, solving the problem that the original industrial software model running environment has a high degree of coupling with other functions and does not support other language extension components. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without creative efforts.

[0032] Figure 1 It is a schematic structural diagram of a heterogeneous algorithm model processing system disclosed in the present application;

[0033] Figure 2 A structural schematic diagram of an actuator proposed in this application;

[0034] Figure 3 A structural schematic diagram of a specific heterogeneous algorithm model processing system disclosed in this application;

[0035] Figure 4 A structural schematic diagram of a specific heterogeneous algorithm model processing system disclosed in this application;

[0036] Figure 5 A flowchart of a heterogeneous algorithm model processing method disclosed in this application;

[0037] Figure 6 A structural diagram of an electronic device disclosed in this application. Detailed implementation manners

[0038] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0039] The original industrial software model calculation and operation environment generally adopts a polling call method, and the operation mode is relatively single; the coupling degree between the original industrial software and other functions is high, the overall industrial software is expensive and heavy, and the existing industrial algorithms are each in their own systems and are difficult to spread.

[0040] Therefore, the embodiments of this application propose a heterogeneous algorithm model processing solution, which can enrich the operation mode of industrial software, make the application scenarios of industrial software model calculation cover a wider range, and solve the problem that the industrial software model operation environment is highly coupled with other functions, resulting in the inability to support the extension of components through other languages.

[0041] The embodiments of this application disclose a heterogeneous algorithm model processing system, the heterogeneous algorithm model processing system includes a designer 11, a runner 12 connected to the designer, and a number of actuators configured by container technology are included in the runner 12; see Figure 1 As shown, the system includes:

[0042] The designer 11 is used to generate a task description according to the connection relationships between the various function blocks in the configuration editing interface and the parameter configuration of the function blocks, and is used to send the task description to the runner 12; wherein, the connection relationships and the parameter configuration are pre-created by a user terminal in the configuration editing interface based on an engineering task to be executed, the function blocks include preset heterogeneous algorithm model blocks and other function blocks, and the preset heterogeneous algorithm model blocks are algorithm model blocks obtained by encapsulating a plurality of heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through a preset protocol standard.

[0043] In this embodiment, the user arranges the relationships between the various function blocks in the configuration editing interface by means of dragging and dropping according to the engineering task requirements. After arranging the relationships between the various function blocks, the user sets the parameter values of the function blocks. For example, to complete the current engineering task, it is necessary to configure which function blocks, set which data sources are specifically collected by the data acquisition module (a type of function block), and set to which write-back points the output data will be written after calculating the collected data using an algorithm model. It should be noted that the above arrangement method of arranging function blocks in the configuration editing interface is flexible and highly usable.

[0044] The designer 11 in this embodiment generates a task description according to the connection relationships between the various function blocks in the configuration editing interface and the parameter configuration of the function blocks, and sends the task description to the runner 12. It can be understood that the task description specifies the various function blocks required to execute the current engineering task, the connection relationships between the various function blocks, and the parameters involved in the operation of the function blocks.

[0045] The runner 12 is used to, after receiving the task description sent by the designer 11, parse the task description, and according to the parameter configuration of each function block in the parsed task description, perform an instantiation operation on each function block in the current configuration editing interface through the executor, so as to realize the operation of the engineering task.

[0046] In this embodiment, after receiving the task description, the runner 12 parses the task description, and according to the parameter configuration of each function block in the parsed task description, performs an instantiation operation on each function block in the current configuration editing interface through the executor, so as to realize the operation of the engineering task.

[0047] It should be noted that the runner 12 includes a plurality of executors, executor 1, executor 2... executor n. The execution process of each executor is shown in Figure 2 as shown.

[0048] First, all algorithm models generate corresponding instances during initialization. In this embodiment, the subscription relationships between each data collection point (data source) and different instances of the preset heterogeneous algorithm models are registered in the preset message dispatcher. For example: Algorithm model instance 1 needs to obtain data from a certain 20 data collection points, and algorithm model instance 2 needs to obtain data from a certain 50 data collection points. Then, when the data required by algorithm model instance 1 is collected by the data collection module, the message dispatcher sends a message to algorithm model instance 1 to notify the algorithm model instance 1 to obtain the corresponding data from the data collection module. The above process is also to drive the algorithm model instance to perform operations through data, that is, when the data subscribed by the algorithm model is collected, the algorithm model instance is driven to start calculating. For the algorithm model instance driven by a period, self-period monitoring is started during initialization, which is not affected by data driving and is self-driven according to the set period. It should be noted that the period here is set when setting the parameters of each functional block. Whether it is data-driven or period-driven, finally all the calculated data is output through the data write-back module. It should be noted that since this application pre-encapsulates each heterogeneous algorithm model (algorithm models obtained from different language writing environments) based on the preset protocol standard to make it meet the standard interface, in this embodiment, as long as the corresponding interface is implemented, specific functional modules for docking various protocols and various data can be implemented during development. Exemplarily, after receiving the notification from the preset message dispatcher, the heterogeneous algorithm model block obtains data from the data collection module through the preset protocol standard and performs calculations based on the obtained data to generate a calculation result. It should be noted that the preset protocol standard includes: the first protocol standard or the second protocol standard. The first protocol standard includes the FMI2.0 protocol, and the second protocol standard is a custom protocol. In this embodiment, the plug-and-play function management is implemented by newly adding an algorithm model block in the designer.

[0049] It should be noted that the calculation results in this embodiment include structured data and unstructured data. That is, in this embodiment, after receiving the notification from the preset message dispatcher, the heterogeneous algorithm model instance obtains data from the data collection module and performs calculations based on the obtained data to generate a calculation result with a data type of structured data or unstructured data.

[0050] Figure 2 Each algorithm model in Figure 3 can be connected in the way of Figure 3In the upper part, the data-driven algorithm model is an accumulator, and the periodic algorithm model is to calculate the average. Then, when the data-driven algorithm model obtains data, it performs accumulation calculation. When the calculation period of the periodic algorithm model is satisfied, the periodic algorithm model calculates the average of the accumulated values. Figure 3 Similarly for the lower part, that is to say, the periodic drive is not affected by the data drive.

[0051] It can be seen that the present application proposes a heterogeneous algorithm model processing system. The heterogeneous algorithm model processing system includes a designer, a runner connected to the designer. The runner includes a number of executors configured by container technology. Among them, the designer is used to generate a task description according to the connection relationship between each function block and the parameter configuration of the function block in the configuration editing interface, and is used to send the task description to the runner. Among them, the connection relationship and the parameter configuration are pre-created by the user terminal in the configuration editing interface based on the engineering task to be executed. The function block includes a preset heterogeneous algorithm model block and other function blocks. The preset heterogeneous algorithm model block is an algorithm model block obtained by encapsulating multiple heterogeneous algorithm model blocks based on data drive and / or periodic drive through a preset protocol standard. The runner is used to parse the task description after receiving the task description sent by the designer, and according to the parameter configuration of each function block in the parsed task description, perform instantiation operations on each function block in the current configuration editing interface through the executor to realize the operation of the engineering task. In summary, the present application encapsulates multiple heterogeneous algorithm model blocks based on data drive and / or periodic drive, so that the algorithm model blocks can be driven according to different drive modes, thereby expanding the coverage of the application scenario. And since the heterogeneous algorithm model can be understood as an algorithm model developed in different language environments, therefore, the present application uses multiple industrial software heterogeneous algorithm model blocks based on data drive and / or periodic drive after encapsulation to execute engineering tasks, solving the problem that the original industrial software model running environment has a high degree of coupling with other functions and does not support other language extension components.

[0052] The embodiment of the present application discloses a specific heterogeneous algorithm model processing system. The heterogeneous algorithm model processing system includes a designer 11, a runner 12 connected to the designer. The runner 12 includes a number of executors configured by container technology. The runner 12 also includes a manager 121 and a container resource management module 122. See Figure 3 As shown, the system includes:

[0053] The designer 11 is used to generate a task description according to the connection relationship between each function block in the configuration editing interface and the parameter configuration of the function block, and is used to send the task description to the runner 12; wherein, the connection relationship and the parameter configuration are pre-created in the configuration editing interface by the user terminal based on the engineering task to be executed, the function block includes a preset heterogeneous algorithm model block and other function blocks, and the preset heterogeneous algorithm model block is an algorithm model block obtained by encapsulating a plurality of heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through a preset protocol standard;

[0054] The runner 12 is used to parse the task description after receiving the task description sent by the designer 11, and perform instantiation operations on each function block in the current configuration editing interface through the executor according to the parameter configuration of each function block in the parsed task description, so as to realize the operation of the engineering task.

[0055] The runner 12 is used to send the engineering task to be executed to different executors through the manager 121 based on a preset scheduling mechanism.

[0056] In this embodiment, exemplarily, the task can be distributed according to the characteristics of the engineering task itself. For example, if the executor 1 can better calculate the data in the engineering task A, then in this application, based on the task scheduling mechanism, the engineering task A is sent to the executor 1.

[0057] The runner 12 is used to configure the executor based on a single container or multiple containers through the container resource management module 122 according to the performance requirements of the engineering task and the resource situation of the current server; wherein, the current server is the server where the heterogeneous algorithm model processing system is located.

[0058] In this embodiment, all running dependencies and components are carried in the image of the executor. If a new running environment needs to be added, it is realized by adding a new image. The runner will manage these images and determine which image to use to build the container.

[0059] Through the embedded container resource management function of the container resources, the horizontal expansion of resources can be realized. When the resources for single-machine deployment are limited, a single container is configured to run under extremely small resources. When the resources are sufficient, multiple containers can be dynamically expanded for running. Through the resource isolation of the container, the influence between projects can be reduced, and separate high-risk model instances can also be run separately to improve the fault tolerance ability in case of anomalies.

[0060] In summary, the present application encapsulates multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven, enabling the algorithm model blocks to be driven in different driving manners, thereby expanding the coverage of application scenarios. And since the heterogeneous algorithm models can be understood as algorithm models developed in different language environments, the present application uses the encapsulated multiple industrial software heterogeneous algorithm model blocks based on data-driven and / or cycle-driven to execute engineering tasks, solving the problem that the original industrial software model running environment has a high degree of coupling with other functions and does not support other language extension components. In addition, through the container resource management function, the present application can achieve dynamic configuration of container resources, that is, achieve an extended runtime environment and customize various runtime environments; when an exception occurs in each extended runtime environment, corresponding handling measures can be set, such as restarting the state machine, initializing the runtime container, reloading the initialization, etc. That is to say, through the operation and maintenance of the runtime environment by containerization, the status monitoring and control of each runtime function block are achieved.

[0061] It should be noted that in the present application, through the runner, functions such as debugging, evaluation, and optimization of the algorithm model are also provided.

[0062] In a specific implementation manner, the present application can include the following content:

[0063] First of all, it should be pointed out that the industrial real-time data calculation engine is the core foundation of informatization and intelligentization in the industrial field, plays an important role in intelligent manufacturing, and is even the core support software for industries such as big data, cloud computing, and the Internet of Things. It has been increasingly widely used in industrial process monitoring and has gradually become an indispensable basic data platform for advanced control, process monitoring, and plant-level information management, bringing significant economic and social benefits. The capabilities of real-time data acquisition, storage, monitoring, analysis, etc., combined with real-time system and database technologies, have become an important part of the enterprise's construction of industrial basic software.

[0064] The existing industrial software model calculation and operation environment generally adopts a polling call method, and the operation mode is relatively single; the coupling degree of the original industrial software with other functions is high, the overall industrial software is expensive and heavy, the existing industrial algorithms are each in their own systems and difficult to spread, and there are problems with troublesome installation and deployment for industrial software with different functions. Based on the stream processing engine and batch processing engine commonly used in the Internet industry, this application similarly adopts a data- and cycle-driven execution mode to implement data collection, calculation, and storage. That is to say, this application pre-packages multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven, and deploys them in a single server or a server cluster to implement the calculation functions of multiple heterogeneous algorithm model blocks driven by data and / or cycle. In this way, the installation, deployment, and maintenance costs are reduced. Moreover, this application can dynamically expand the algorithm model without affecting the existing control logic, and the algorithm model through a standard interface or the FMI2.0 protocol can be directly uploaded and run.

[0065] Through the heterogeneous algorithm model processing system described in this application, the application scenarios of industrial software model calculation can have a wider coverage, such as the following application scenarios:

[0066] (1) In complex control application scenarios, algorithm models implemented in different languages, with different functions, and from different suppliers are unified for operation. When deployed on the edge side of process industry, data communication and algorithm cooperation between different languages and runtime environments can be achieved to implement an integrated solution for advanced control, optimization, soft measurement, simulation, and evaluation. This system can be flexibly installed and deployed on one or a cluster of servers to achieve a unified solution related to the edge and control.

[0067] (2) Combining the actual on-site algorithm operation evaluation, this system method can control the extended runtime environment and algorithm module in a unified graphical manner.

[0068] (3) Regarding the impact on reliability and availability, different algorithm model operation mechanisms can be formulated by using the operation environment status control table and the inspection of data quality bits, including all running stops, data isolation during the operation of a single model, reloading of backup data, reloading of container instances, etc., to improve the availability and reliability of the algorithm model.

[0069] The embodiment of this application discloses a specific heterogeneous algorithm model processing method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Refer to Figure 5 As shown, it specifically includes:

[0070] Step S11: Generate a task description according to the connection relationships between the various function blocks in the configuration editing interface and the parameter configuration of the function blocks; wherein, the connection relationships and the parameter configuration are pre-created in the configuration editing interface by a user terminal based on an engineering task to be executed, the function blocks include preset heterogeneous algorithm model blocks and other function blocks, and the preset heterogeneous algorithm model blocks are algorithm model blocks obtained by encapsulating multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through a preset protocol standard.

[0071] Step S12: Parse the task description, and perform an instantiation operation on each of the function blocks in the current configuration editing interface according to the parameter configuration of each of the function blocks in the parsed task description, so as to implement the operation of the engineering task.

[0072] The present application provides a method for processing heterogeneous algorithm models, including: generating a task description according to the connection relationships between the various function blocks in the configuration editing interface and the parameter configuration of the function blocks; wherein, the connection relationships and the parameter configuration are pre-created in the configuration editing interface by a user terminal based on an engineering task to be executed, the function blocks include preset heterogeneous algorithm model blocks and other function blocks, and the preset heterogeneous algorithm model blocks are algorithm model blocks obtained by encapsulating multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through a preset protocol standard; parsing the task description, and performing an instantiation operation on each of the function blocks in the current configuration editing interface according to the parameter configuration of each of the function blocks in the parsed task description, so as to implement the operation of the engineering task. In summary, the present application encapsulates multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven, enabling the algorithm model blocks to be driven in different driving modes, thereby expanding the coverage of the application scenarios. And since the heterogeneous algorithm models can be understood as algorithm models developed in different language environments, the present application uses the encapsulated multiple industrial software heterogeneous algorithm model blocks based on data-driven and / or cycle-driven to execute engineering tasks, solving the problems that the original industrial software model running environment has a high degree of coupling with other functions and does not support other language extension components.

[0073] Furthermore, an embodiment of the present application also provides an electronic device. Figure 6 It is a structural diagram of an electronic device 20 shown according to an exemplary embodiment, and the content in the figure should not be regarded as any limitation on the scope of use of the present application.

[0074] Figure 6Schematic diagram of the structure of an electronic device 20 provided by an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the heterogeneous algorithm model processing method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0075] In this embodiment, the power supply 26 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is any communication protocol applicable to the technical solution of the present application, and no specific limitation is imposed on it here; the input / output interface 24 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application needs, and no specific limitation is made here.

[0076] In addition, as a carrier for resource storage, the memory 22 may be a read-only memory, a random access memory, a magnetic disk, or an optical disc, etc., and the resources stored thereon may include a computer program 221, and the storage method may be short-term storage or permanent storage. Among them, the computer program 221 may further include a computer program capable of completing other specific tasks in addition to the computer program capable of implementing the heterogeneous algorithm model processing method executed by the electronic device 20 disclosed in any of the foregoing embodiments.

[0077] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the heterogeneous algorithm model processing method disclosed above is implemented.

[0078] For the specific steps of this method, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details will not be repeated here.

[0079] The various embodiments in this application are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts between the various embodiments, reference may be made to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and reference may be made to the description of the method part for the relevant parts.

[0080] Those skilled in the art may further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0081] The steps of the methods or algorithms described in combination with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0082] Finally, it should also be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0083] The above has introduced in detail a heterogeneous algorithm model processing system, method, device, and storage medium provided by this application. Specific examples are used in this article to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to this application.

Claims

1. A heterogeneous algorithm model processing system, characterized in that, The heterogeneous algorithm model processing system includes a designer and a runner connected to the designer. The runner includes a number of executors configured by container technology; wherein, the designer is used to generate a task description according to the connection relationship between each function block and the parameter configuration of the function block in the configuration editing interface, and is used to send the task description to the runner; wherein, the connection relationship and the parameter configuration are pre-created in the configuration editing interface by a user terminal based on an engineering task to be executed. The function block includes a preset heterogeneous algorithm model block and other function blocks. The preset heterogeneous algorithm model block is an algorithm model block obtained by encapsulating multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through a preset protocol standard; the runner is used to parse the task description after receiving the task description sent by the designer, and perform instantiation operations on each function block in the current configuration editing interface through the executor according to the parameter configuration of each function block in the parsed task description, so as to implement the operation of the engineering task.

2. The heterogeneous algorithm model processing system according to claim 1, wherein The executor includes: a data acquisition module, which is used to acquire data according to each data acquisition point specified in the parameter configuration, and generate a corresponding message after the data acquisition is completed; a preset message dispatcher, which is used to generate a subscription relationship between each data acquisition point and different preset heterogeneous algorithm model blocks, and when receiving a message sent by the data acquisition point, notify the corresponding preset heterogeneous algorithm model block based on the subscription relationship, so that the preset algorithm model block can obtain data from the data acquisition module; the preset heterogeneous algorithm model block is used to obtain data from the data acquisition module after receiving the notification from the preset message dispatcher, and perform calculations based on the obtained data to generate a calculation result; a data write-back module, which is used to write the calculation result into the data write-back point specified in the parameter configuration.

3. The heterogeneous algorithm model processing system according to claim 2, wherein, The preset heterogeneous algorithm model block is used to obtain data from the data acquisition module after receiving the notification from the preset message dispatcher, and perform calculations based on the obtained data to generate a calculation result with a data type of structured data or unstructured data.

4. The heterogeneous algorithm model processing system according to claim 2, wherein The preset heterogeneous algorithm model block is used to obtain data from the data acquisition module after receiving the notification from the preset message dispatcher through the preset protocol standard, and perform calculations based on the obtained data to generate a calculation result.

5. The heterogeneous algorithm model processing system according to claim 4, wherein The preset heterogeneous algorithm model block is used to obtain data from the data acquisition module after receiving the notification from the preset message dispatcher according to the first protocol standard or the second protocol standard, and perform calculations based on the obtained data to generate a calculation result; the first protocol standard includes the FMI2.0 protocol, and the second protocol standard is a custom protocol.

6. The heterogeneous algorithm model processing system according to any one of claims 1 to 5, characterized in that, The runner further includes: A container resource management module, configured to implement the configuration of an executor based on a single container or multiple containers according to the performance requirements of the engineering task and the resource situation of the current server; wherein, the current server is the server where the heterogeneous algorithm model processing system is located.

7. The heterogeneous algorithm model processing system according to any one of claims 1 to 5, characterized in that The runner further includes: A manager, configured to issue the engineering task to be executed to different executors based on a preset scheduling mechanism.

8. A method for processing heterogeneous algorithm models, characterized in that, Applied to a heterogeneous algorithm model processing system, the method includes: Generating a task description according to the connection relationship between each function block in the configuration editing interface and the parameter configuration of the function block; wherein, the connection relationship and the parameter configuration are pre-created by a user terminal in the configuration editing interface based on the engineering task to be executed, the function block includes a preset heterogeneous algorithm model block and other function blocks, and the preset heterogeneous algorithm model block is an algorithm model block obtained by encapsulating multiple heterogeneous algorithm model blocks based on data-driven and / or cycle-driven through a preset protocol standard. Parsing the task description, and performing an instantiation operation on each function block in the current configuration editing interface according to the parameter configuration of each function block in the parsed task description, so as to implement the operation of the engineering task.

9. An electronic device, characterized in that, Includes: A memory, configured to store a computer program; A processor, configured to execute the computer program to implement the heterogeneous algorithm model processing method as claimed in claim 8.

10. A computer-readable storage medium, characterized in that, For storing a computer program; wherein, when the computer program is executed by a processor, the heterogeneous algorithm model processing method as claimed in claim 8 is implemented.

Citation Information

Patent Citations

  • Heterogeneous industrial network equipment configuration micro-service method based on edge computing

    CN110022349A

  • Control model integration method and device and medium thereof

    CN114518734A