Disclosure of Invention
In order to solve the above problems, the present invention provides a method and an apparatus for constructing an industrial link manufacturing resource, which can perform similarity matching on an existing manufacturing task according to historical manufacturing data, thereby performing manufacturing resource allocation and obtaining a matching result more suitable for an actual manufacturing process.
In order to achieve the above object, an aspect of the present invention provides a method for constructing an industrial link manufacturing resource, including:
constructing a knowledge map model of manufacturing resources and historical data;
carrying out similarity matching on the existing data according to the manufacturing task, and screening out manufacturing resources meeting the conditions by using the knowledge graph model;
determining manufacturing resource individual evaluation rules;
and carrying out individual analysis and evaluation on the screened manufacturing resources according to the individual evaluation rule to obtain an optimal matching object.
As a preferred technical solution, the constructing a knowledge graph model of manufacturing resources and historical data further includes:
constructing an ontology model of manufacturing resources and manufacturing tasks; the ontology model comprises a knowledge graph entity type and a knowledge graph attribute type;
building a knowledge base of manufacturing resources and manufacturing tasks;
the knowledge base is updated based on the real-time status of the manufacturing resource.
Further, the types of knowledge-graph entities include: equipment type, cutter type, processing material and manufacturing precision; the types of knowledge-graph attributes include: equipment number, equipment location, operating state, machining type, machining characteristics, and manufacturing cycle.
As a preferred technical solution, the constructing a knowledge base of manufacturing resources and manufacturing tasks further includes: and acquiring manufacturing resources and historical manufacturing task information by using an NLP technology to obtain structured data, corresponding to the constructed entities and attributes, and storing the structured data in a graph database.
Preferably, the performing similarity matching on the existing data according to the manufacturing task further includes:
determining a similarity matching rule of the manufacturing tasks;
carrying out similarity matching on the existing manufacturing task and the historical manufacturing task;
and adding the manufacturing resources corresponding to the matching result into the to-be-selected set.
As a preferred technical solution, the determining a matching rule of similarity of manufacturing tasks further includes:
determining a similarity algorithm according to each entity and attribute of the manufacturing task;
comparing the similarity percentage p of the entities or attributes corresponding to the two manufacturing tasks according to the similarity algorithmiAnd setting a weight q for each entity and attributei。
Further, the similarity matching between the existing manufacturing task and the historical manufacturing task further includes:
calculating a weighted sum of all n entity and attribute similarities, i.e.
Regarding historical manufacturing tasks with results greater than a set threshold as similar tasks
Preferably, the evaluation rule is determined according to the operating state of the manufacturing resource, the load rate and the manufacturing cost.
In another aspect, the present invention further provides an apparatus for constructing an industrial link manufacturing resource, including:
the building module is used for building a knowledge graph model of manufacturing resources and historical data;
the screening module is used for carrying out similarity matching on the existing data according to the manufacturing task and screening out manufacturing resources meeting the conditions by utilizing the knowledge graph model;
the determining module is used for determining manufacturing resource individual evaluation rules;
and the individual analysis and evaluation module is used for carrying out individual analysis and evaluation on the screened manufacturing resources according to the individual evaluation rule to obtain an optimal matching object.
Compared with the prior art, the invention has the beneficial effects that: a knowledge graph model is constructed for manufacturing resources and historical manufacturing task information, the scale of the model is continuously enlarged along with the increase of data volume, and the reliability of the result of matching the manufacturing resources is continuously enhanced, so that a virtuous circle matching system is formed;
in addition, similarity matching is carried out on the manufacturing tasks according to the existing data, and a matching result which is closer to the actual production environment is obtained;
in addition, the manufacturing resources are analyzed and evaluated individually, and the purposes of maximizing equipment utilization rate, balancing load and minimizing cost are achieved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the embodiment provides a method for constructing an industrial link manufacturing resource, which specifically includes the following steps:
s10: constructing a knowledge map model of manufacturing resources and historical data;
specifically, an ontology model of the manufacturing resource and the manufacturing task needs to be constructed first, and in this embodiment, referring to fig. 2, 4 types of knowledge graph entities and 6 types of knowledge graph attributes are constructed to complete the design of the knowledge graph entity relationship between the manufacturing resource and the manufacturing task. The knowledge-graph entity types include: equipment type, tool type, machining material, manufacturing accuracy. The types of knowledge-graph attributes include: equipment number, equipment location, operating state, machining type, machining characteristics, and manufacturing cycle. The device type, the tool type, the device number, the device position and the operation state are used for constructing the manufacturing resource body, and the processing material, the manufacturing precision, the processing type, the processing characteristic and the manufacturing period are used for constructing the manufacturing task body.
Then, a knowledge base of manufacturing resources and manufacturing tasks is constructed, specifically, manufacturing resources and historical manufacturing task information are collected by using NLP technology, structured data are obtained and stored in a database corresponding to the constructed entities and attributes, in this embodiment, attribute information of existing manufacturing resources and manufacturing tasks is collected, structured data are obtained by using NLP technology, and the data are stored in a Neo4j graph database, so that a data structure as shown in fig. 3 is obtained.
And finally, updating the knowledge base according to the real-time state of the manufacturing resource, specifically, monitoring the state of the existing manufacturing resource in real time, and uploading the updated data to a graph database after the operation state changes so as to realize that the data in the database is consistent with the actual data.
S20: carrying out similarity matching on the existing data according to the manufacturing task, and screening out manufacturing resources meeting the conditions by using the knowledge graph model;
specifically, firstly, a manufacturing task similarity matching rule needs to be formulated; in this embodiment, a specific similarity algorithm is formulated for the attributes of the manufacturing task currently required to be matched, and a similarity weight is set for each attributeqiAnd a threshold value determined as a similar task is set. Specifically, for one manufacturing task, its key attributes such as machining accuracy, machining type, etc. are given greater weight, while for a manufacturing cycle, secondary attributes such as machining material, etc. may be given lower similarity weights. For example, for machining accuracy, different accuracy intervals may be preset, and each interval may be assigned with a similarity value, and the interval closer to the original accuracy has a larger similarity value. The size of the decision threshold can be determined by the popularity of the manufacturing task, and the decision threshold can be increased for conventional manufacturing tasks with larger matching quantities, and conversely the threshold can be decreased.
Then, carrying out similarity matching on the existing manufacturing task and the historical manufacturing task; specifically, the similarity p of the current manufacturing task and the attributes of the historical manufacturing tasks T1, T2, T3 and T4 in the database is calculated respectively
iAnd weighted summing, i.e. computing
And regarding the historical manufacturing tasks with the results larger than the set threshold value as similar tasks.
Finally, adding the manufacturing resources corresponding to the matching result into a to-be-selected set; specifically, the manufacturing resources corresponding to the screened similar tasks are searched for and serve as available resources meeting the processing conditions, and the available resources are used for evaluating and screening resource individuals in the next step.
S30: determining manufacturing resource individual evaluation rules;
specifically, the attributes of each manufacturing resource are quantitatively evaluated in consideration of the operating state, load rate, manufacturing cost and other factors of the manufacturing resource, and the evaluation rule is designed for the evaluation of one manufacturing resource with the purposes of maximizing equipment utilization rate, balancing load and minimizing cost.
S40: performing individual analysis and evaluation on the screened manufacturing resources according to the individual evaluation rule to obtain an optimal matching object; specifically, different attributes may be given different weights for different manufacturing tasks, a higher manufacturing cost may be given to a task having a cost priority, and a higher load factor may be given to a task having an efficiency priority.
Compared with the traditional manufacturing resource scheduling optimization method, the method applies knowledge graph technology to integrate the manufacturing resources, constructs a huge knowledge system, and can perform similarity matching on the existing manufacturing tasks according to historical manufacturing data so as to perform manufacturing resource allocation and obtain a matching result which is more in line with the actual manufacturing process.
In another embodiment, the present invention further provides a building apparatus of industrial link manufacturing resources, and referring to fig. 4, the building apparatus specifically includes:
a construction module 100 for constructing a knowledge graph model of manufacturing resources and historical data; it should be noted that, since the specific construction method and process are already described in detail in step S10 of the construction method of the industrial link manufacturing resource, they are not described herein again.
The screening module 200 is used for performing similarity matching on the existing data according to the manufacturing task and screening out manufacturing resources meeting the conditions by using the knowledge graph model; it should be noted that, since the specific screening method and process are already described in detail in step S20 of the method for constructing the industrial link manufacturing resource, they are not described herein again.
A determining module 300, configured to determine a manufacturing resource individual evaluation rule; it should be noted that, since the specific determination method and process are already described in detail in step S30 of the method for constructing the industrial link manufacturing resource, they are not described herein again.
The individual analysis and evaluation module 400 is used for performing individual analysis and evaluation on the screened manufacturing resources according to the individual evaluation rule to obtain an optimal matching object; it should be noted that, since the specific individual analysis and evaluation manner and process are already described in detail in step S40 of the method for constructing the industrial link manufacturing resource, they are not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may store a program, and the program includes, when executed, some or all of the steps of the method for constructing any industrial link manufacturing resource described in the above method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
An exemplary flow chart of a method for implementing a service chain according to an embodiment of the present invention is described above with reference to the accompanying drawings. It should be noted that the numerous details included in the above description are merely exemplary of the invention and are not limiting of the invention. In other embodiments of the invention, the method may have more, fewer, or different steps, and the order, inclusion, function, etc. of the steps may be different from that described and illustrated.