Method for increasing operating efficiency of rule engines
A technology of operating efficiency and rules, applied in the direction of program control devices, etc., can solve problems such as low operating efficiency, and achieve the effects of improving operating efficiency, improving matching hit rate, and reducing time loss
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2016-05-11
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the rule engine technology in the field of artificial intelligence, in particular to a method for improving the operating efficiency of the rule engine. Background technique
[0002] Developed from the inference engine, the rule engine is a component embedded in the application, which separates business decisions from application code and writes business decisions using predefined semantic modules. Since the rule engine is a software component, only developers can use and control it through the program interface. Usually, the five steps for developers to use the rule engine in the program are:
[0003] 1) Create a rule engine object;
[0004] 2) Load the rule set into the engine or replace the rule set;
[0005] 3) Submit the fact set to be processed by the rule set to the engine;
[0006] 4) Command the engine to execute;
[0007] 5) Export the engine execution result and withdraw the processed data from the engine. [00...
Examples
Embodiment Construction
[0048] Compared with the existing rule engine technology, the method of the present invention adds an attribute of "associated facts" to each rule in the rule set. Each rule in the rule set is initially matched, that is, each fact is associated with the "associated fact" attribute of each rule. Only when the initial match is successful can it enter the regular matching link, and if the initial match is unsuccessful, it is directly considered that the fact is related to the rule. The rule did not match. Through the preliminary matching process, unnecessary routine matching process is effectively avoided, the success rate of each matching is improved, unnecessary time consumption is reduced, and the operating efficiency of the entire rule engine is significantly improved.
[0049]The method for improving the operating efficiency of the rule engine of the present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[...