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

CN105573737AInactive Publication Date: 2016-05-11INST OF ACOUSTICS CHINESE ACAD OF SCI
3 Cites 10 Cited by

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 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a method for increasing the operating efficiency of rule engines. The method comprises the following steps: (101) establishing a fact set comprising a plurality of facts; (102) establishing a rule set comprising a plurality of rules, wherein each rule comprises a condition part and an action part; (103) adding a corresponding related fact attribute to each rule in the rule set; (104) matching the fact set with the rule set on the basis of a matching algorithm and establishing a matched rule set; (105) confirming the execution sequence of the rules in the matched rule set according to a rule priority; and (106) executing the action parts of the rules according to the execution sequence of the rules and updating the fact set by using the execution results. The method disclosed by the invention has the advantages that the matching hit rate of the fact set and the rule set in a rule engine inference can be increased; the time loss is reduced; and the operating efficiency of the rule engines is effectively increased.
Need to check novelty before this filing date? Find Prior Art

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.

[...