JPH0358230A - Rule executing device in production system - Google Patents

Rule executing device in production system

Info

Publication number
JPH0358230A
JPH0358230A JP1195304A JP19530489A JPH0358230A JP H0358230 A JPH0358230 A JP H0358230A JP 1195304 A JP1195304 A JP 1195304A JP 19530489 A JP19530489 A JP 19530489A JP H0358230 A JPH0358230 A JP H0358230A
Authority
JP
Japan
Prior art keywords
rule
production
rules
group
execution
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
Application number
JP1195304A
Other languages
Japanese (ja)
Inventor
Isao Tanaka
田中 功郎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP1195304A priority Critical patent/JPH0358230A/en
Publication of JPH0358230A publication Critical patent/JPH0358230A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To improve the execution efficiency of a rule by extracting a rule in which a conclusion part is the same and a condition part has an inclusive relation from a production rule group, determining a rule to be executed from therein, and reconstituting and executing a rule group from this rule and a rule in which a condition part is in a non-inclusive relation. CONSTITUTION:At the time of executing a production rule, plural production rules in which conclusion parts are the same and condition parts have an inclusive relation are extracted from a rule group by an inclusive rule extracting means 2, and a production rule to be executed is determined from therein by an execution rule selecting means 3. Subsequently, a rule group is reconstituted from one production rule selected from these plural production rules and a production rule in which it is decided that the condition part is in a non- inclusive relation by a rule extracting means, and each production rule for constituting this reconstituted rule group is executed by a rule group executing means 5. In such a way, the execution efficiency of the rule can be improved.

Description

【発明の詳細な説明】[Detailed description of the invention]

〔産業上の利用分野〕 本発明は、知識がプロダクションルールで表現されてい
る知識ベースシステム(以下、「プロダクションシステ
ム」と呼称する)のルール実行装置に関する。 〔従来の技術〕 従来より、知識をIF(条件部)−THEN(結論部)
形式のプロダクションルール(以下、単に「ルール」と
呼称する)で表現し、ある事象がルールの条件部または
結論部に該当するときにルール実行装置によりそのルー
ルを実行させて特定の推論結果を得るプロダクションシ
ステムが知られている。 このようなプロダクションシステムでは、例えばある事
象を条件部に含むルールがルール実行装置により選択さ
れ、この選択されたルールが実行されて一つの推論結果
(結論)が出される。ルール実行装置は、さらにこの結
論が条件部に含まれているルー゛ルを選択し、これを実
行させる。そして、最終的に一つまたは複数の推論結果
を得る。 各ルールの推論結果となる結論部には、各結論の確信度
が定められていて、この確信度に基づいて推論結果が評
価される。 ところで、複数のルールが第6図に示すように、各ルー
ルの結論部が同じで、各条件部が例えば論理m (AN
D)により互いに包含関係にあるときは、このような関
係にある全てのルールR1〜R4が実行され、その結論
Tの確信度CFがルールR1〜R4の確信度CFを合成
計算して求められる。すなわち、事象(A,B,C,D
)を条件部とすれば、各事象A,B,C,Dごとにルー
ルR4,ルールR3,ルールR2,ルールR1が順次実
行される。そして、ルールR1〜R4が成立したときの
結論部Tの確信度CFは、下記の合成計算により、 CP−1−(1−0.9) (1−0.8) (1−0
.7) (1−0.8)となる。 しかしなから、このようなルール実行装置は、条件部が
(A,B,C,D)のときであっても、この条件部を持
ったルールR1の条件部と包含関係にあるルールR2〜
R4まで実行してしまうので、ルールの戊立事象の確信
度を上記のように合成計算し直さなければならず、予め
定めた確信度からずれた値となり、推論結果に対する正
確な確信度を知ることができない。また、ルール構築者
は各ルールの確信度が合成計算により決定されることま
で考慮して確信度を設定しなければならず、確信度の設
定が極めて難しい。 〔発明が解決しようとする課題〕 したがって、従来のルール実行装置は、ルールの結論部
の事象が同一であって条件部が包含関係にある全てのル
ールが実行されてしまうので、ルールの実行効率が悪い
上、結論部の確信度が予め定めた値とは異なる値となり
、正確な評価を行うことができず、また、各ルールの結
論部の確信度を設定するときに包含関係にある他のルー
ルの確信度が合成計算されることまで考慮しなければな
らないのでルール構築者にかかる負担が大きいという問
題があった。 本発明は上記実情にかんがみてなされたもので、ルール
の実行効率を上げることができると共に、実行した各ル
ールの結論部をrめ定めた確信度で正確な評価を下すこ
とができ、またルール構築者の負担を著しく軽減し得る
ルール実行装置を提供することを目的とする。 [発明の構或] 〔課題を解決するための手段〕 本発明は上記課題を解決するために、プロダクションル
ールの集まりであるルール群の中から結論部が同じで条
件部が包含関係のあるプロダクショクルールを抽出する
包含ルール抽出手段と、この包含ルール抽出手段により
抽出された複数のプロダクションルールの中から実行す
べきプロダクションルールを決定する実行ルール選択手
段と、この実行ルール選択手段で決定したプロダクショ
ンルールと条件部が非包含関係にあり前記包含ル一ル抽
出手段で抽出されなかったプロダクションルールとから
ルール群を再構成するルール群再tM成手段と、このル
ール鮮再構成手段で再構成されたルール群を実行するル
ール昨実行手段とを備える構成とした。
[Industrial Application Field] The present invention relates to a rule execution device for a knowledge base system (hereinafter referred to as a "production system") in which knowledge is expressed as production rules. [Conventional technology] Conventionally, knowledge is divided into IF (condition part) - THEN (conclusion part)
Expressed as a production rule (hereinafter simply referred to as a "rule") in the form of a rule, when a certain event corresponds to the conditional part or conclusion part of the rule, the rule is executed by the rule execution device to obtain a specific inference result. The production system is known. In such a production system, for example, a rule that includes a certain event in its condition part is selected by a rule execution device, and the selected rule is executed to produce one inference result (conclusion). The rule execution device further selects a rule whose condition part includes this conclusion and executes it. Finally, one or more inference results are obtained. The confidence level of each conclusion is defined in the conclusion section which is the inference result of each rule, and the inference result is evaluated based on this confidence level. By the way, as shown in FIG. 6, a plurality of rules have the same conclusion part, and each condition part has a logic m (AN
When there is an inclusive relationship with each other due to D), all rules R1 to R4 having such a relationship are executed, and the confidence CF of the conclusion T is obtained by synthetically calculating the confidence CF of the rules R1 to R4. . That is, the event (A, B, C, D
) as a condition part, rule R4, rule R3, rule R2, and rule R1 are executed sequentially for each event A, B, C, and D. Then, the confidence level CF of the conclusion part T when the rules R1 to R4 hold is determined by the following composite calculation: CP-1-(1-0.9) (1-0.8) (1-0
.. 7) (1-0.8). However, even when the condition part is (A, B, C, D), such a rule execution device cannot execute rules R2 to R2 that have an inclusive relationship with the condition part of rule R1 that has this condition part.
Since it is executed up to R4, the confidence of the rule's event has to be recalculated as described above, resulting in a value that deviates from the predetermined confidence, so we do not know the exact confidence of the inference result. I can't. Further, the rule builder must set the confidence level by taking into consideration that the confidence level of each rule is determined by a synthetic calculation, and setting the confidence level is extremely difficult. [Problem to be Solved by the Invention] Therefore, in the conventional rule execution device, all rules in which the event in the conclusion part of the rule is the same and the condition part has an inclusive relationship are executed, so the efficiency of rule execution is low. In addition, the confidence level of the conclusion part will be a value different from the predetermined value, making it impossible to perform accurate evaluation, and when setting the confidence level of the conclusion part of each rule, This poses a problem in that it places a heavy burden on the rule builder, since it is necessary to take into account that the reliability of the rule is calculated synthetically. The present invention has been made in view of the above circumstances, and it is possible to improve the efficiency of rule execution, to accurately evaluate the conclusion part of each executed rule with a predetermined confidence level, and to improve the efficiency of rule execution. It is an object of the present invention to provide a rule execution device that can significantly reduce the burden on a builder. [Structure of the Invention] [Means for Solving the Problems] In order to solve the above problems, the present invention provides a method for solving the above-mentioned problems by selecting products that have the same conclusion part and an inclusion relationship from a rule group that is a collection of production rules. an inclusive rule extraction means for extracting a rule; an execution rule selection means for determining a production rule to be executed from among a plurality of production rules extracted by the inclusive rule extraction means; and a production rule determined by the execution rule selection means. and a production rule whose condition part has a non-inclusive relationship and was not extracted by the inclusive rule extracting means. The present invention is configured to include a rule execution means for executing a group of rules.

【作用】[Effect]

本発明は以上のような手段を講じたことにより、プロダ
クションルール実行時に、ルール群の中から結論部が同
一で条件部に包含関係のある複数のプロダクショクルー
ルが包含ルール抽出手段によって抽出され、この抽出さ
れたプロダクションルールの中から実行すべきプロダク
ションルールが実行ルール選択手段により次定される。 そして、条件部が包含関係のある複数のプロダクショク
ルールの中から選択された一つのプロダクションルール
とルール抽出手段により条件部が非包含関係にあると判
断されたプロダクションルールとからルール群が再構成
され、この再構成されたルール詳を構成する各プロダク
ションルールがルール群実行手段により実行される。し
たがって、実行された各プロダクションルールの結論部
の確信度は、合戊計算されずに予め定めた値となり、推
論された結論部を正確に評価できるものとなる。 〔実施例〕 以下、本発明の丈施例について図面を参照して説明する
。 第1図は本発明の一実施例に係るルール実行装置の機能
ブロックを示す図である。このルール実行装置は、複数
のプロダクションルールが記憶されているルールベース
1の中からある事象を条件部または結論部にもつルール
が包含ルール抽出手段2に取出される。包含ルール抽出
手段2は、この取出された複数のルールの中から、第2
図に示すように、結論部の事象Tが同じで条件部の事象
(A,B,C,D)が包含関係にあるルール(1)〜(
4〉を抽出する。なお、第2図には結論部の事象がTの
場合のみを図示しているが、実際には結論部の事象がT
以外のルールについても同様の抽出が行われる。実行ル
ール選択手段3は、包含ルール抽出手段2で抽出された
ルール(1)〜ルール(4)の中から最も包含性の強い
ルール(1)を実行すべきルールとして選択する。ここ
で、包含性の判断は、条件部の事象数が最も多いもの、
またはそれが同数であれば成立する組合わせ数の少ない
ものを包含性が強いと判断する。例えば、ルールの条件
部が、第3図に示すルール(5)〜ルール(7)のよう
な包含関係であれば、第4図に示すように、ルール(5
),ルール(6)の事象数が最も多く、ルール(5),
ルール(7)の成立組合わせ数か最も少ないので、ルー
ル(5〉を実行ルールとして選択する。ルール群再構成
手段5は、実行ルール選択手段3で選択したルールと包
含ルール抽出手段2に取出され、非包含関係と判断され
たルールとからルール群を構成する。そして、ルール群
実行手段5によりルール群再構戊手段うで再構成された
ルール群の各ルールを実行させる。 このようなルール実行装置によれば、結論部の事象が同
じで条件部の事象が包含関係にある複数のルールを抽出
し、その中から最も包含性の強いルールを選択して、こ
の選択したルールおよび互いに非包含関係のルールから
ルール群を再構成し、このルール群を実行させるように
したので、従来のように結論部の事象が同じで条件部の
事象が包含関係にある複数のルールが全て実行されるの
ではなく、本来実行すべきルールのみが実行される。 したがって、ルールの実行効率を高めることができ、各
ルールが実行されたときの結論部の事象の確信度は合或
計算されたものではなく、ルール構築時に設定されたも
のとすることができ、その結果、ルールを実行させたと
きの推論結果を正確に評価できる。 また、確信度の合成計算を包含ルール間で行うことがな
いので、ルールの確信度を従来に比べ容易に設定するこ
とができ、ルール構築者の負担を軽減できる。 なお、本発明は上記一実施例に限定されるものではない
。例えば、第5図に示すように、包含ルール抽出手段2
で抽出された各包含ルールの中から実行ルールをマニュ
アル選択する構或とすることができる。すなわち、包含
ルール抽出手段2で抽出された各ルールを、包含ルール
編集手段6で各ルールの結論部の事象別に包含ルールを
編集する。そして、編集された各包含ルールを例えばコ
ンソール等からなる実行ルール手動選択手段7の表示部
に表示させ、その入力部から手動人力により各包含ルー
ル中の任意のルールを選択して実行させる。 このようなルール実行装置によれば、実行ルールの決定
に柔軟性を持たせることができ、さらに数千のルールか
らなるルール群であっても包含関係にあるルールを例え
ばコンソールの表示部において確認することができるの
で、新たにルールを構築するときの支援ツールとして用
いることができる。 [発明の効果】 以上詳記したように本発明によれば、ルールの実行効率
を上げることができると共に、実行した各ルールの結論
部をpめ定めた確信度で正確な評価を下すことができ、
またルール構築者の負担を著しく軽減し得るルール実行
装置を提供できる。
By taking the above-mentioned measures, the present invention extracts a plurality of production rules from a group of rules that have the same conclusion part and have an inclusion relationship in the condition part when a production rule is executed, and The production rule to be executed from among the extracted production rules is then determined by the execution rule selection means. Then, a rule group is reconstructed from one production rule selected from a plurality of production rules whose condition parts have an inclusive relationship and a production rule whose condition part is determined to have a non-inclusive relationship by the rule extraction means. , each production rule constituting the reconfigured rule details is executed by the rule group execution means. Therefore, the confidence of the conclusion part of each executed production rule is not calculated jointly but becomes a predetermined value, and the inferred conclusion part can be evaluated accurately. [Example] Hereinafter, length examples of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing functional blocks of a rule execution device according to an embodiment of the present invention. In this rule execution device, a rule having a certain event in a condition part or a conclusion part is extracted by an inclusive rule extracting means 2 from a rule base 1 in which a plurality of production rules are stored. The inclusive rule extracting means 2 extracts the second rule from among the plurality of extracted rules.
As shown in the figure, rules (1) to (
4> Extract. Although Figure 2 shows only the case where the event in the conclusion part is T, in reality the event in the conclusion part is T.
Similar extraction is performed for other rules as well. The execution rule selection means 3 selects the rule (1) with the strongest inclusiveness from among the rules (1) to (4) extracted by the inclusive rule extraction means 2 as the rule to be executed. Here, the judgment of inclusiveness is based on the conditional part with the largest number of events,
Or, if the number is the same, it is determined that the combination with fewer valid combinations has strong inclusiveness. For example, if the condition part of the rule is an inclusion relationship such as rules (5) to (7) shown in FIG.
), rule (6) has the largest number of events, rule (5),
Since rule (7) has the smallest number of valid combinations, rule (5) is selected as the execution rule.The rule group reconstruction means 5 extracts the rules selected by the execution rule selection means 3 and the included rule extraction means 2. A rule group is constructed from the rules determined to have a non-inclusive relationship.Then, the rule group execution means 5 executes each rule of the reconfigured rule group by the rule group reconfiguration means. According to the rule execution device, it extracts multiple rules in which the event in the conclusion part is the same and the event in the condition part is in an inclusive relationship, selects the rule with the strongest inclusiveness among them, and executes the selected rule and each other. Since the rule group is reconfigured from rules with non-inclusion relationships and this rule group is executed, multiple rules with the same conclusion part event and an inclusion relationship with condition part events can all be executed as before. Instead, only the rules that should be executed are executed. Therefore, the efficiency of rule execution can be increased, and when each rule is executed, the certainty of the event in the conclusion part is As a result, the inference result when the rule is executed can be evaluated accurately.In addition, the composite calculation of confidence can be performed between the included rules. Therefore, the confidence level of the rule can be set more easily than in the past, and the burden on the rule builder can be reduced.The present invention is not limited to the above embodiment.For example, as shown in FIG. As shown in FIG.
It is possible to manually select an execution rule from among the included rules extracted in step 1. That is, for each rule extracted by the inclusive rule extracting means 2, the inclusive rule editing means 6 edits the inclusive rule for each event in the conclusion part of each rule. Then, each edited inclusive rule is displayed on the display section of the execution rule manual selection means 7, which is a console or the like, and an arbitrary rule from among the inclusive rules is selected and executed from the input section manually. According to such a rule execution device, it is possible to have flexibility in determining execution rules, and even in a rule group consisting of several thousand rules, rules that have an inclusive relationship can be checked on the display of a console, for example. Therefore, it can be used as a support tool when constructing new rules. [Effects of the Invention] As detailed above, according to the present invention, it is possible to increase the efficiency of rule execution, and to accurately evaluate the conclusion part of each executed rule with a predetermined confidence level. I can do it,
Furthermore, it is possible to provide a rule execution device that can significantly reduce the burden on the rule builder.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例に係るルール実行装置の機能
ブロック図、第2図は結論部の事象が同じで条件部の車
象が包含関係にある包含ルールを示す図、第3図は条件
部の包含関係を示す図、第4図は条件部の包含関係の強
さを説明するための図、第5図は実行ルールをマニュア
ル選択するルール実行装置の機能ブロック図、第6図は
知識べ−スの構成を示す図である。 1・・・ルールベース、2・・・包含ルール抽出手段、
3・・・実行ルール選択手段、4・・・ルール群再構成
手段、5・・・ルール群実行手段。
Fig. 1 is a functional block diagram of a rule execution device according to an embodiment of the present invention, Fig. 2 is a diagram showing an inclusive rule in which the events in the conclusion part are the same and the car image in the condition part is in an inclusive relationship, and Fig. 3 4 is a diagram illustrating the strength of the inclusive relationship of the conditional part. FIG. 5 is a functional block diagram of a rule execution device that manually selects an execution rule. is a diagram showing the structure of a knowledge base. 1... Rule base, 2... Inclusive rule extraction means,
3... Execution rule selection means, 4... Rule group reconstruction means, 5... Rule group execution means.

Claims (1)

【特許請求の範囲】 プロダクションルールの集まりであるルール群の中から
結論部が同一であり、かつ条件部が包含関係にあるプロ
ダクショクルールを抽出する包含ルール抽出手段と、 この包含ルール抽出手段により抽出された複数のプロダ
クションルールの中から実行すべきプロダクションルー
ルを選択する実行ルール選択手段と、 この実行ルール選択手段で選択したプロダクションルー
ルと前記包含ルール抽出手段で抽出されなかった条件部
が非包含関係にあるプロダクションルールとからルール
群を再構成するルール群再構成手段と、 このルール群再構成手段で再構成されたルール群を実行
するルール群実行手段と、 を具備したことを特徴とするプロダクションシステムに
おけるルール実行装置。
[Claims] Inclusive rule extraction means for extracting production rules whose conclusion parts are the same and whose condition parts are in an inclusive relationship from a rule group that is a collection of production rules; an execution rule selection means for selecting a production rule to be executed from among the plurality of production rules selected; and a non-inclusive relationship between the production rule selected by the execution rule selection means and the condition part not extracted by the inclusion rule extraction means. A production system comprising: a rule group reconstruction means for reconstructing a rule group from production rules in the production rules; and a rule group execution means for executing the rule group reconstructed by the rule group reconstruction means. A rule execution device in a system.
JP1195304A 1989-07-27 1989-07-27 Rule executing device in production system Pending JPH0358230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1195304A JPH0358230A (en) 1989-07-27 1989-07-27 Rule executing device in production system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1195304A JPH0358230A (en) 1989-07-27 1989-07-27 Rule executing device in production system

Publications (1)

Publication Number Publication Date
JPH0358230A true JPH0358230A (en) 1991-03-13

Family

ID=16338928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1195304A Pending JPH0358230A (en) 1989-07-27 1989-07-27 Rule executing device in production system

Country Status (1)

Country Link
JP (1) JPH0358230A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019131342A1 (en) * 2017-12-27 2019-07-04 日本電気株式会社 Logical calculation device, logical calculation method, and program
JP2022017872A (en) * 2020-07-14 2022-01-26 日本電信電話株式会社 Logical program inference apparatus, logical program inference method, and program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02161527A (en) * 1988-12-14 1990-06-21 Fujitsu Ltd Inference processor having knowledge base

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02161527A (en) * 1988-12-14 1990-06-21 Fujitsu Ltd Inference processor having knowledge base

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019131342A1 (en) * 2017-12-27 2019-07-04 日本電気株式会社 Logical calculation device, logical calculation method, and program
JPWO2019131342A1 (en) * 2017-12-27 2020-07-02 日本電気株式会社 Logical calculation device, logical calculation method, and program
JP2022017872A (en) * 2020-07-14 2022-01-26 日本電信電話株式会社 Logical program inference apparatus, logical program inference method, and program

Similar Documents

Publication Publication Date Title
US4958305A (en) Polygon edge clipping
CN104615544B (en) Problem oriented gui software correlation function analysis method and device
US6106572A (en) Forward and reverse hierarchical page level debugger
CN107579844A (en) It is a kind of that failure method for digging is dynamically associated based on service path and frequency matrix
JPH0358230A (en) Rule executing device in production system
US20040138861A1 (en) Configuration model producing apparatus
JP5303531B2 (en) Maintenance support device for embedded system
WO2021044497A1 (en) Data analysis processing device, data analysis processing method, and data analysis processing program
CN111258911A (en) Software test case generation method, system and storage medium based on data driving and multiple coverage strategies
JP2020135608A (en) Information processing apparatus and method
JP4630489B2 (en) Log comparison debugging support apparatus, method and program
US6470491B1 (en) Method for monitoring computer programs on window-based operating platforms
CN104915486B (en) A kind of part link information search method
JPS6126112A (en) System for diagnosing abnormality of system
Bailey et al. Structural analysis of verbal data
DE4410731A1 (en) Logic simulator
US20190258759A1 (en) Total integration analysis model assistance device
JP6452569B2 (en) Monitoring screen test apparatus and method, program, and recording medium
JP2001282574A (en) Expressing method for graphic expression program including processing time information
CN110059328A (en) Structural Analysis method, information processing equipment and computer readable storage medium
JPH0346849B2 (en)
US20240070051A1 (en) System and method of analyzing software application performance
Airault et al. Evaluation of the operation of a semiautomatic road network capture process
JP2022068566A (en) Test coverage update program, test coverage update method, and information processing apparatus
JPS63148373A (en) Managing system for circuit diagram data