[go: up one dir, main page]

JPH0642200B2 - Production system - Google Patents

Production system

Info

Publication number
JPH0642200B2
JPH0642200B2 JP62175474A JP17547487A JPH0642200B2 JP H0642200 B2 JPH0642200 B2 JP H0642200B2 JP 62175474 A JP62175474 A JP 62175474A JP 17547487 A JP17547487 A JP 17547487A JP H0642200 B2 JPH0642200 B2 JP H0642200B2
Authority
JP
Japan
Prior art keywords
rule
collation
cycle
matching
flag
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.)
Expired - Lifetime
Application number
JP62175474A
Other languages
Japanese (ja)
Other versions
JPS6418879A (en
Inventor
孝義 横田
圭介 戸次
亘曼 浜田
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62175474A priority Critical patent/JPH0642200B2/en
Publication of JPS6418879A publication Critical patent/JPS6418879A/en
Publication of JPH0642200B2 publication Critical patent/JPH0642200B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプロダクシヨンシステムに係り、特に、前向き
推論形プログラムを用いて半導体集積回路を自動設計す
るに好適なプロダクシヨンシステムに関する。
Description: TECHNICAL FIELD The present invention relates to a production system, and more particularly to a production system suitable for automatically designing a semiconductor integrated circuit using a forward reasoning program.

〔従来の技術〕[Conventional technology]

従来のプロダクシヨンシステムとしては、LISPで学ぶ認
知心理学2(安斉雄一郎著東京大学出版1982年初版
132頁〜136頁)に記載されているものが知られて
いる。この文献に記載されているプロダクシヨンシステ
ムにおいては、弁別ネツトを基本としたルールコンパイ
ラ方式を採用しているが、この方式のアルゴリズムはル
ールの条件に変数を多く持つような応用分野では効率の
低下が著しく、又、コンパイル時間も問題となる。例え
ば、半導体集積回路を扱う分野においては、数学的論理
を半導体集積回路として実現可能な論理回路に等価変換
する場合、回路の結線情報を扱うため、必然的にルール
は多くの変数を含み、前記の方式ではプロダクシヨンシ
ステムの高速化を図るには十分ではなかつた。
As a conventional production system, the one described in cognitive psychology 2 learned by LISP (Yuichiro Anzai, The University of Tokyo Press, 1982, first edition, pages 132 to 136) is known. In the production system described in this document, the rule compiler method based on the discrimination net is adopted. However, the algorithm of this method is less efficient in the application field where there are many variables in the rule conditions. However, the compile time is also a problem. For example, in the field of handling semiconductor integrated circuits, in the case of equivalent conversion of mathematical logic into a logic circuit that can be realized as a semiconductor integrated circuit, since the connection information of the circuit is handled, the rule inevitably includes many variables. This method was not enough to speed up the production system.

又、論理回路の等価変換にプロダクシヨンシステムを応
用したものとして、特開昭59−168545号公報に記載され
ているものが知られているが、従来の技術ではプロダク
シヨンシステムの高速化を図るには十分ではなかつた。
Further, as an application of a production system to the equivalent conversion of a logic circuit, there is known one disclosed in Japanese Patent Application Laid-Open No. 59-168545. However, in the prior art, the speed of the production system is increased. It wasn't enough.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記従来技術は、プロダクシヨンシステムの高速化に関
して、特に論理回路の接続情報のように、階層がない情
報を扱う場合について考慮がされておらず、ルールの条
件記述内に変数を多く含む場合に、処理速度が低下する
という問題があつた。特に、扱う回路の規模やルール数
が増大すると、適応可能なルールを探すための処理に多
くの時間を要するという問題があつた。即ち、ルール群
の中から適応可能なルールを探す照合処理を行う場合、
各照合サイクルにおいて、全てのルールに対して照合を
試みていたため、ルール群の中から適応可能なルールを
探すのに多くの時間を要していた。
The above-mentioned conventional technique does not take into consideration the case of handling information without a hierarchy, such as connection information of a logic circuit, regarding speeding up of a production system, and when there are many variables in the conditional description of a rule. However, there is a problem that the processing speed decreases. In particular, as the scale of the circuit to be handled and the number of rules increase, there is a problem that it takes a lot of time to search for an adaptable rule. That is, in the case of performing the matching process for searching the applicable rule from the rule group,
Since it tried to match all the rules in each matching cycle, it took a lot of time to find an applicable rule from the rule group.

本発明の目的は、ルール群の中から適応可能なルールを
探す照合処理を行うとき、照合結果に応じてルールの照
合順序を再編成することができるプロダクシヨンシステ
ムを提供することにある。
An object of the present invention is to provide a production system capable of rearranging the collation order of rules according to the collation result when performing collation processing for searching for an applicable rule from a rule group.

〔問題点を解決するための手段〕[Means for solving problems]

前記目的を達成するために、本発明は、変換対象に関す
る情報を格納する作業記憶手段と、変換対象に関する情
報を新たな情報に変換するための前提条件を記号、変数
による文字列のリストに従って格納する前提条件部及び
前提条件部の条件成立時の実行内容を文字列のリストに
従って格納する実行部を含むルール群を照合順位に対応
付けて格納するルール記憶手段と、 作業記憶手段の情報とルール記憶手段の各ルールの前提
条件とを照合サイクル毎に順次照合し、該照合に成功し
たルールの実行内容を実行して作業記憶手段の情報をル
ールの結論に従って更新する解釈実行手段と、 ルール記憶手段のルール毎に対応づけられたルールフラ
グ群を有し、各ルールの照合結果を各ルールフラグに記
憶するルールフラグ記憶手段と、を備え、解釈実行手段
は、ルール記憶手段のルール群に対する照合を照合順位
に従って実行して、照合が失敗したときに、該ルールに
対応したルールフラグに、照合順位が最高位のルールか
ら最低位のルールに対する照合が一巡するまで照合禁止
フラグをセットし、照合が成功したときには、該照合が
最初に成功するまでの処理を一照合サイクルとして該照
合サイクルで最初に成功したルールの実行内容を実行す
ると共に次の照合サイクルによる処理に移行し、該次の
照合サイクルでは照合禁止フラグがセットされているル
ールと作業記憶手段の情報との照合を禁止して前回の照
合サイクルで照合に成功したルールから照合を開始し、
さらに前記ルール群に対する照合が少なくとも一巡した
後に、前記ルール群の中から照合に成功したルールのみ
を選択し、選択したルール群を照合順位の上位に変更
し、照合順位が変更された後は再編成された照合順位に
従って処理を実行することを特徴とするプロダクション
システムを構成したものである。
In order to achieve the above-mentioned object, the present invention stores a working storage unit for storing information about a conversion target and a precondition for converting the information about the conversion target into new information according to a list of character strings by symbols and variables. Rule storing means for storing a precondition part and an execution part for storing execution contents when the condition of the precondition part is satisfied according to a list of character strings in association with a collation order, and information and rules of work storing means. Interpretation execution means for sequentially matching the preconditions of each rule in the storage means for each matching cycle, executing the execution contents of the rule that succeeded in the matching, and updating the information in the working storage means according to the conclusion of the rule, and the rule storage A rule flag storage means for storing a matching result of each rule in each rule flag, the rule flag group being associated with each rule of the means, The executing means executes the collation with respect to the rule group of the rule storing means according to the collation order, and when the collation fails, the rule flag corresponding to the rule is collated with the rule with the highest collation order to the rule with the lowest collation order. When the matching is successful, when the matching is successful, the contents of the rule that succeeds first in the matching cycle are executed as one matching cycle. The processing shifts to the processing by the collation cycle, and in the next collation cycle, the collation of the rule for which the collation prohibition flag is set and the information in the working storage means is prohibited, and the collation is started from the rule that succeeded in the collation cycle in the previous time. Then
Further, after at least one round of matching with the rule group, only the rule that succeeds in matching is selected from the rule group, the selected rule group is changed to a higher rank of the matching order, and after the matching order is changed, the rule is changed again. The production system is configured to perform processing in accordance with the organized collation order.

〔作用〕[Action]

作業記憶手段の情報とルール記憶手段のルール群との照
合を実行するとき、ルール群に対して一定の順序で照合
を実行する。照合の実行により照合が失敗したときに
は、該ルールに対応したルールフラグに、各ルールに対
する照合が一巡するまで照合禁止フラグをセツトする。
一方照合が成功したときには該ルールの実行内容を実行
すると共に次の照合サイクルによる処理に移行する。即
ち、第1の照合サイクルにおいて、照合に成功したルー
ルが生じたときには第2の照合サイクルに移行する。第
2の照合サイクルにおいては、第1の照合サイクルにお
いて照合禁止フラグがセツトされているルールに対して
は照合を禁止する処理を実行するため、第2の照合サイ
クルにおいては、第1の照合サイクルで照合が成功した
ルールから照合が開始される。第2の照合サイクル移行
においても第1の照合サイクルにおける処理と同じ処理
を実行し、そして各ルールが連続して照合に失敗したと
きには処理を終了する。さらに、ルール群に対する照合
が少なくとも一巡したときには、ルール群の中から照合
に成功したルールのみを選択し、選択したルール群を照
合順位の上位に変更する。そして、照合順位が変更され
た後は再編成された照合順位に従って処理を実行する。
このとき同一の問題を再度処理すると、照合順位を再編
成しないときよりも照合失敗回数の低減を図ることがで
きる。
When the information in the work storage means and the rule group in the rule storage means are collated, the rule groups are collated in a fixed order. When the collation fails due to the collation execution, the collation prohibition flag is set in the rule flag corresponding to the rule until the collation for each rule is completed.
On the other hand, when the collation is successful, the content of execution of the rule is executed and the process proceeds to the next collation cycle. That is, in the first matching cycle, when a rule that succeeds in matching occurs, the second matching cycle is started. In the second collation cycle, the process for prohibiting collation is executed for the rule in which the collation prohibition flag is set in the first collation cycle. Therefore, in the second collation cycle, the first collation cycle is executed. Matching starts from the rule that was successfully matched in. The same processing as the processing in the first matching cycle is executed also in the transition to the second matching cycle, and when each rule fails in matching continuously, the processing ends. Further, when the rule group has been matched at least once, only the rule that has been successfully matched is selected from the rule groups, and the selected rule group is changed to a higher rank in the matching order. Then, after the collation order is changed, the processing is executed according to the reorganized collation order.
At this time, if the same problem is processed again, the number of collation failures can be reduced as compared with the case where the collation order is not reorganized.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図に基づいて説明する。 An embodiment of the present invention will be described below with reference to FIG.

本実施例におけるプロダクシヨンシステムは、第1図に
示されるように、初期データ入力部31,作業記憶部3
2,ルールインタプリタ(解釈実行部)33,ルール記
憶部34,ルールフラグ記憶部35,照合失敗サイクル
記憶部36,データ出力部37,制御部38から構成さ
れており、各部が制御部38からの指令によつて処理を
実行するようになつている。
As shown in FIG. 1, the production system in this embodiment has an initial data input section 31, a work storage section 3
2, a rule interpreter (interpretation execution unit) 33, a rule storage unit 34, a rule flag storage unit 35, a collation failure cycle storage unit 36, a data output unit 37, and a control unit 38, and each unit is controlled by the control unit 38. The processing is executed according to the command.

初期データ入力部31は半導体集積回路の回路素子の機
能及び各回路素子間の接続関係についての情報をプロロ
ーグ(Prolog)言語に従つて入力するようになつてい
る。例えば、第2図に示されるようにインバータ40,
41,42,ANDゲート43,44,45,46,O
Rゲート47,48から構成される数学的論理を、半導
体集積回路の回路素子として実現可能な回路に等価変換
する場合には、第2図に示す各回路素子の機能及び各回
路素子間の接続関係が、第3図に示されるプロローグ言
語で入力される。そして初期データは作業記憶手段とし
ての作業記憶部32にワーキングメモリwm(作業記
憶)として格納される。ワーキングメモリwmのうち第
1の要素のand ,inv ,orはゲートの論理種別を表わ
し、第2の要素は入力端子の節点番号あるいは節点名リ
ストを表わし、第3と要素は出力端子の節点番号あるい
は節点名を表わす。
The initial data input unit 31 is adapted to input the information about the function of the circuit elements of the semiconductor integrated circuit and the connection relation between the respective circuit elements according to the Prolog language. For example, as shown in FIG.
41, 42, AND gates 43, 44, 45, 46, O
When the mathematical logic composed of the R gates 47 and 48 is equivalently converted into a circuit that can be realized as a circuit element of a semiconductor integrated circuit, the function of each circuit element shown in FIG. Relationships are entered in the prologue language shown in FIG. Then, the initial data is stored as a working memory wm (working memory) in the working storage unit 32 as working storage means. In the working memory wm, the first and and, inv and or of the first element represent the logic type of the gate, the second element represents the node number of the input terminal or the node name list, and the third and elements are the node numbers of the output terminals. Alternatively, it represents a node name.

ルール記憶手段としてのルール記憶部34は、第2図に
示す数学的論理に関する情報をCMOS論理回路へ等価
変換するための前提条件を記号、変数による文字列のリ
ストに従つて格納する前提条件部及び該前提条件部の条
件成立時の実行内容を文字列のリストに従つて格納する
実行部を含むルール群を格納するように構成されてい
る。ルール群が20項目のルールで構成されていた場
合、これらのルールはif〜then形式のプロローグ言語
に従つて格納されている。ifの後には、前提条件部と
して等価変換の対象となる数学的論理の論理素子の機能
及び各論理素子間の接続関係についての情報をリストの
節点情報を変数にした形で記載されており、同一変数に
は同一節点番号を代入するためにプロローグ言語が用い
られている。
The rule storage unit 34 as a rule storage unit stores a precondition for equivalently converting the information about the mathematical logic shown in FIG. 2 into a CMOS logic circuit according to a list of character strings by symbols and variables. And a rule group including an execution unit that stores the execution contents when the condition of the precondition unit is satisfied according to a list of character strings. When the rule group is composed of 20 items of rules, these rules are stored according to the if-then format prolog language. After if, the information about the function of the logical element of the mathematical logic to be subjected to the equivalent conversion and the connection relationship between the respective logical elements is described as a precondition part in the form of the node information of the list as a variable, The prolog language is used to assign the same node number to the same variable.

又、thenの後には、実行部として前提条件部の条件成立
時(照合成功時)の実行内容(作業記憶部32に格納さ
れた作業記憶の内容を更新するためのプロローグ言語に
よるプログラム)が記載されている。
Further, after "then", the execution content when the condition of the precondition section is satisfied (when collation is successful) as the execution section (a program in a prolog language for updating the content of the work memory stored in the work memory 32) is described. Has been done.

例えば、20項目のルールのうち、ルール5には、第4
図に示されているように、第4図の(b)に示される数
学的論理を、第4図の(c)に示されるCMOS論理回
路へ等価変換するためのルールが記載されている。同様
にして、ルール9には、(e)に示される数学的論理
を、(f)に示される論理回路へ変換するためのルール
が記載されており、ルール11には、(h)に示される
数学的論理を、(i)に示されるCMOS論理回路へ等
価変換するためのルールが記載され、ルール17には
(k)に示される数学的論理を、(l)に示されるCM
OS論理回路へ等価変換するためのルールが記載されて
いる。
For example, of the 20 item rules, the rule 5 has a fourth rule.
As shown in the figure, rules for equivalent conversion of the mathematical logic shown in FIG. 4 (b) into the CMOS logic circuit shown in FIG. 4 (c) are described. Similarly, rule 9 describes a rule for converting the mathematical logic shown in (e) into the logic circuit shown in (f), and rule 11 shows in (h). A rule for equivalently converting the mathematical logic shown in (i) into the CMOS logic circuit shown in (i) is described. In Rule 17, the mathematical logic shown in (k) is converted into the CM shown in (l).
A rule for equivalent conversion into an OS logic circuit is described.

ルールフラグ記憶部35はルールフラグ記憶手段とし
て、ルール記憶部34のルール毎に対応づけられたルー
ルフラグ群を有し、各ルールの照合結果を各ルールフラ
グに記憶するようになつている。例えば、ルールの前提
条件の条件成立によつて照合に成功したときには照合成
功フラグOKを記憶し、照合に失敗したときには照合禁
止フラグNGを記憶するようになつている。
The rule flag storage unit 35 has, as a rule flag storage unit, a rule flag group associated with each rule of the rule storage unit 34, and stores the matching result of each rule in each rule flag. For example, the collation success flag OK is stored when the collation succeeds because the precondition of the rule is satisfied, and the collation prohibition flag NG is stored when the collation fails.

照合失敗サイクル記憶部36は各照合サイクル中に照合
に失敗したルールとそのサイク番号を対応づけて記憶す
るようになつている。さらにデータ出力部37は作業記
憶部32に格納された回路の接続情報をデータとして表
示するようになつている。
The collation failure cycle storage unit 36 stores the rule for which collation failed during each collation cycle and its cycle number in association with each other. Further, the data output unit 37 is adapted to display the connection information of the circuit stored in the working storage unit 32 as data.

ルールインタプリタ33は解釈実行手段として構成され
ており、作業記憶部32に格納された情報とルール記憶
部34の各ルールの前提条件とを照合サイクル毎に順次
照合するようになつている。そして、ルール記憶部34
のルール群に対する照合を実行して、照合が実行したと
きに、該照合サイクルで最初に成功したルールの実行の
みを実行して、作業記憶部32の情報をルールの結論に
従つて更新すると共に、次の照合サイクルによる処理に
移行する。一方、照合が失敗したときには、該ルールに
対応したルールフラグに、各ルールに対する照合が一巡
するまで照合禁止フラグをセツトし、以後の照合サイク
ルでは照合禁止フラグがセツトされているルールと作業
記憶部32の情報との照合を禁止する処理を実行するよ
うになつている。
The rule interpreter 33 is configured as an interpretation executing means, and sequentially collates the information stored in the work storage unit 32 with the preconditions of each rule in the rule storage unit 34 in each collation cycle. Then, the rule storage unit 34
When the matching is performed, only the first successful rule is executed in the matching cycle to update the information in the working storage unit 32 according to the conclusion of the rule. , The process shifts to the next matching cycle. On the other hand, when the collation fails, the collation prohibition flag is set in the rule flag corresponding to the rule until the collation for each rule is completed, and in the subsequent collation cycle, the rule and the working storage unit in which the collation prohibition flag is set are set. The process of prohibiting collation with the information of 32 is executed.

次に、本実施例の作用を第5図のフローチヤートに基づ
いて説明する。
Next, the operation of this embodiment will be described based on the flow chart of FIG.

まず、第2図に示す数学的論理回路に関する情報を、第
3図に示されるネツトリストによる初期データとして初
期データ入力部31に入力する(ステツプ100)。こ
の後制御部38からの指令により初期データ入力部31
に入力されたデータを作業記憶部32へ転送する(ステ
ツプ101)。
First, the information about the mathematical logic circuit shown in FIG. 2 is input to the initial data input unit 31 as the initial data by the net list shown in FIG. 3 (step 100). After this, the initial data input unit 31 is instructed by the control unit 38.
The data input to is transferred to the work storage unit 32 (step 101).

次に、ルールの照合サイクルを計数するサイクルカウン
タ1に初期設定し(ステツプ102)、さらに全てのル
ールフラグをOKにセツトする(ステップ103)。こ
の後ルールの項目番号を表わすルールポインタNを1に
設定する(ステツプ104)。
Next, the cycle counter 1 for counting the rule matching cycle is initialized (step 102), and all rule flags are set to OK (step 103). Thereafter, the rule pointer N indicating the item number of the rule is set to 1 (step 104).

次にルールフラグ記憶部35のルールフラグ群の中から
N=1に対応するルールフラグF(1) を取り出す(ステ
ツプ105)。この場合、ルールフラグは全てOKにセ
ツトされているため、N=1のルールを取り出す(ステ
ツプ106,107)、 次に、N=1のルールに格納された前提条件に関するリ
ストと、作業記憶部22に記憶された作業記憶内容との
照合を実行する(ステツプ108)。この照合に失敗し
たときには、ルールフラグF(1) にNGをセツトし(ス
テツプ109,112)、照合失敗サイクル記憶のカウ
ンタC(n)に現在の照合サイクル1を代入する(ステ
ツプ113)。
Next, the rule flag F (1) corresponding to N = 1 is extracted from the rule flag group of the rule flag storage unit 35 (step 105). In this case, since the rule flags are all set to OK, the rule of N = 1 is taken out (steps 106 and 107). Next, the list of the preconditions stored in the rule of N = 1 and the working storage unit The collation with the work memory contents stored in 22 is executed (step 108). When the collation fails, NG is set in the rule flag F (1) (steps 109 and 112), and the current collation cycle 1 is substituted into the counter C (n) of the collation failure cycle storage (step 113).

この段階においてはルールフラグのF(2) からF(20)ま
でにはOKが格納されているので、ステツプ114の処
理からステツプ117の処理に移り、ルールポインタを
1つ加算して2にセツトする。この値はルールの総数N
=20よりも小さいので、ステツプ118の処理の後次
のルールと適用に移るため、ステツプ105の処理に戻
る。
At this stage, since OK is stored in the rule flags F (2) to F (20), the process proceeds from step 114 to step 117, and the rule pointer is incremented by 1 and set to 2. To do. This value is the total number of rules N
Since it is smaller than 20, the process returns to the process of step 105 to move to the next rule and application after the process of step 118.

この場合、ルールポインタの値は2にセツトされている
ので、ルールフラグF(2) が取り出される。ルールフラ
グF(2) の値はOKにセツトされているので、ルール2
が取り出され(ステツプ107)、ルール2に対する照
合が行なわれる(ステツプ108)。ルール2に対する
照合も失敗したときには、ルール1に対する処理と同じ
処理が行われる。
In this case, since the value of the rule pointer is set to 2, the rule flag F (2) is taken out. The value of rule flag F (2) is set to OK, so rule 2
Is taken out (step 107) and the rule 2 is checked (step 108). When the collation for rule 2 also fails, the same process as that for rule 1 is performed.

このような処理により、第6図の(a)に示されるよう
に、ルール1からルール4まで照合に失敗したときに
は、ルールフラグのF(1) 〜F(4) の全てにNGが格納
され、照合失敗サイクル記憶C(1)〜C(4)までに現在の
照合サイクル数1が代入される。
As a result of such processing, as shown in FIG. 6A, when the collation from rule 1 to rule 4 fails, NG is stored in all of the rule flags F (1) to F (4). The current collation cycle number 1 is substituted into the collation failure cycle memory C (1) to C (4).

次にルール5が取り出され、ルール5に対する照合が成
功したときには、ルール5の条件部の内容は以下のよう
に具体化される。
Next, when the rule 5 is taken out and the matching with the rule 5 is successful, the contents of the condition part of the rule 5 are embodied as follows.

〔〔and、〔1000,1001,2〕,2002〕 〔and、〔1000,1001,1002〕,2003〕,〔not match
〔1000,1001,2〕,〔1000,1001,1002〕〕, 〔intersect〔1000,1001,2〕,〔1000,1001,100
2〕, 〔1000,1001〕〕 〔num of atom,〔1000,1001〕,2〕 〔not match,2,0〕, 〔not match,2,1〕〕 ここで、not matchは2つのリストが異なつているかを
調べる関数であり、intersect は2つのリストの共通ア
トムを求め、第3引数に帰す関数である。
[[And, [1000, 1001, 2], 2002] [and, [1000, 1001, 1002], 2003], [not match
[1000, 1001, 2], [1000, 1001, 1002]], [intersect [1000, 1001, 2], [1000, 1001, 100]
2], [1000, 1001]] [num of atom, [1000, 1001], 2] [not match, 2, 0], [not match, 2, 1]] where not match is a function that checks whether two lists are different, and intersect is a function that finds the common atom of two lists and returns it to the third argument.

その後、実行部が実行され、第4図の(b)に示される
数学的論理回路が第4図の(c)に示されるCMOS論
理回路に等価変換される(ステツプ110)。この後ス
テツプ121に進み、照合サイクルカウンタ1を加算
し、次の照合サイクル2に移る(ステツプ104)。
After that, the execution unit is executed, and the mathematical logic circuit shown in FIG. 4B is equivalently converted into the CMOS logic circuit shown in FIG. 4C (step 110). After that, the routine proceeds to step 121, the collation cycle counter 1 is incremented, and the routine proceeds to the next collation cycle 2 (step 104).

照合サイクル2ではルールフラグF(1)〜F(4)までがN
Gであるため、ルール5から照合を開始する(ステツプ
106,ステツプ111,ステツプ106,ステツプ1
11…ステツプ106,ステツプ106)。ルール5に
対する照合が失敗したときにはルールフラグF(5) をN
Gにセツトし(ステツプ108,109,112)、照
合失敗サイクル記憶C(5) に現照合サイクル数2を代入
する(ステツプ113)。この後ステツプ114,11
7,118,105を介して次のルールの照合処理が移
るが、ルールフラグF(1)〜F(5)までNGであるので、
ルールフラグがOKであるルール6から照合を開始す
る。
In verification cycle 2, rule flags F (1) to F (4) are set to N
Since it is G, the collation is started from rule 5 (step 106, step 111, step 106, step 1).
11 ... Step 106, Step 106). When the collation with rule 5 fails, the rule flag F (5) is set to N.
G is set (steps 108, 109, 112), and the current collation cycle number 2 is substituted into the collation failure cycle memory C (5) (step 113). After this step 114,11
The collation processing of the next rule shifts via 7, 118, 105, but since the rule flags F (1) to F (5) are NG,
The collation starts from the rule 6 whose rule flag is OK.

ルール6からルール10に対する照合を行つた結果全て
が照合に失敗したときには、第6図(a)に示されるよ
うに、ルールフラグF(6) 〜F(10)までNGが代入され
る。
When all of the rules 6 to 10 have failed to be matched, the rule flags F (6) to F (10) are set to NG as shown in FIG. 6 (a).

ルール11が照合に成功したときには次の照合サイクル
3に移る(ステツプ121)。照合サイクル3において
も前述したと同様な処理を行い、ルール11〜ルール1
6に対する照合が失敗し、ルール17に対する照合が成
功したときには、次の照合サイクル4に移る。第6図の
(a)に示されるように、照合サイクル4においてルー
ル17に対する照合が成功したときには、この時点で次
の照合サイクル5に移る。又、ルール17に対する照合
が成功したときには、第4図の(k)に示される数学的
論理回路が(l)に示されるCMOS論理回路に等価変換さ
れる。
When the rule 11 succeeds in the collation, the next collation cycle 3 starts (step 121). In the matching cycle 3, the same processing as described above is performed, and rules 11 to 1 are executed.
When the collation with No. 6 fails and the collation with Rule 17 succeeds, the process proceeds to the next collation cycle 4. As shown in FIG. 6A, when the collation with the rule 17 is successful in the collation cycle 4, the next collation cycle 5 is started at this point. When the rule 17 is successfully verified, the mathematical logic circuit shown in (k) of FIG. 4 is equivalently converted into the CMOS logic circuit shown in (l).

照合サイクル5において、ルール17〜ルール20に対
する照合が全て失敗したときには次の照合サイクル6に
移る。この場合、1つの照合サイクルの中で前照合サイ
クル中に適用に失敗したルールの照合を禁止し、全ての
ルールフラグがNGになつた場合に処理の終了判定を行
う(ステツプ114,115)。
In the collation cycle 5, when all the collations for the rules 17 to 20 have failed, the process proceeds to the next collation cycle 6. In this case, the collation of the rules that failed to be applied during the previous collation cycle in one collation cycle is prohibited, and the termination of the process is determined when all the rule flags become NG (steps 114 and 115).

この終了判定条件は、各ルールに1対1に設けた照合失
敗サイクル記憶C(1) からC(20)の値の差が1以下であ
るという条件を用いる。例えば照合サイクル8,9に示
されるように全てのルールに対して連続して失敗したと
きには照合可能なルールが存在しないとして処理を終了
する。
As the end determination condition, a condition that the difference between the values of the collation failure cycle memories C (1) to C (20) provided for each rule one to one is 1 or less is used. For example, as shown in collation cycles 8 and 9, if all the rules fail in succession, it is determined that there is no collable rule, and the process ends.

一方、照合サイクル記憶の内容が差が1以下でない場合
には、ルール照合が全てのルールに対して一連に失敗し
ていないことを表わすために、サイクルカウンタに1を
加算して(ステツプ110)、次の照合サイクルに移
る。この場合ステツプ120 に進み、照合サイクル記憶中
で最もサイクル番号の大きいもの以外のサイクル番号が
格納されているものに対応するルールのルールフラグの
値をNGからOKに復帰させる。即ち、照合が失敗した
ときには、該ルールに対応したルールフラグには、各ル
ール対する照合が一巡するまで照合禁止フラグがセツト
されているため、照合サイクル5から照合サイクル6に
移るときには、全てのルールに対するルールフラグの値
をNGからOKに復帰させる。
On the other hand, if the content of the matching cycle memory is not less than 1, the cycle counter is incremented by 1 to indicate that the rule matching has not failed in succession for all rules (step 110). , Move to the next matching cycle. In this case, the process proceeds to step 120, and the value of the rule flag of the rule corresponding to the stored cycle number other than the one having the largest cycle number in the collation cycle storage is returned from NG to OK. That is, when the collation fails, the collation prohibition flag is set in the rule flag corresponding to the rule until the collation for each rule completes one cycle. Therefore, when shifting from the collation cycle 5 to the collation cycle 6, The value of the rule flag for is reset from NG to OK.

照合サイクル6においてルール1〜ルール8に対する照
合が全て失敗したときには、これらのルールのルールフ
ラグにはNGが代入される。この後ルール9に対言する
照合が成功したときには、第4図の(e)に示される数
学的論理回路を(f)に示されるCMOS論理回路に等
価変換するための処理が行われる。そしてこの後照合サ
イクル7に移り再びルール9に対する照合が成功したと
きには、前述したと同様な処理を行う。このルール9に
対する照合は、一巡目の照合サイクルでは失敗になつて
いるが、各ルールに対する一巡目の照合サイクルで作業
内容が更新されることによつて新たな情報が生成され、
該情報に対してルール9の照合が成功したことを意味す
る。
In the matching cycle 6, when all the matching with the rules 1 to 8 fails, NG is substituted into the rule flags of these rules. After this, when the collation against the rule 9 is successful, a process for equivalently converting the mathematical logic circuit shown in (e) of FIG. 4 into the CMOS logic circuit shown in (f) is performed. Then, after this, the process goes to the verification cycle 7, and when the verification against the rule 9 is successful again, the same processing as described above is performed. The collation with respect to this rule 9 is unsuccessful in the first collation cycle, but new information is generated by updating the work content in the first collation cycle with respect to each rule,
This means that the matching of rule 9 has succeeded for the information.

以上の処理により、第3図に示される作業記憶の内容が
第8図に示される内容に変換され、第2図に示される数
学的論理回路が第7図に示されるCMOS論理回路に等
価変換される。ここに、50,52,57はNORゲー
トを示し、51,53,55,56はANDゲートを示
し、54,58はインバータを示す。
By the above processing, the contents of the working memory shown in FIG. 3 are converted into the contents shown in FIG. 8, and the mathematical logic circuit shown in FIG. 2 is equivalently converted into the CMOS logic circuit shown in FIG. To be done. Here, 50, 52 and 57 indicate NOR gates, 51, 53, 55 and 56 indicate AND gates, and 54 and 58 indicate inverters.

このように、本実施例においては、ルール群に対する照
合を実行して、照合が成功したときには該照合サイクル
で最初に成功したルールの実行内容を実行すると共に次
の照合サイクルによる処理に移行し、照合が失敗したと
きには、該ルールに対応したルールフラグに各ルールに
対する照合が一巡するまでNGをセツトし、以後の照合
サイクルではNGがセツトされているルールに対する照
合を禁止する処理を行うようにしたため、各照合サイク
ルにおいて、全てのルールに対して照合を行う必要がな
いので、第6図の(a)に示される空白部分の照合が不
要となり、高速化を図ることができる。なお、第6図に
おいて、×印は照合失敗を示し、○印は照合成功を表わ
す。
As described above, in the present embodiment, the collation for the rule group is executed, and when the collation is successful, the execution content of the rule that succeeds first in the collation cycle is executed and the process in the next collation cycle is performed, When the collation fails, the rule flag corresponding to the rule is set to NG until the rule is completely collated, and in the subsequent collation cycle, NG is set to prohibit the collation to the set rule. Since it is not necessary to perform collation for all rules in each collation cycle, it is not necessary to collate the blank portion shown in FIG. 6A, and the speed can be increased. In addition, in FIG. 6, a cross indicates a collation failure, and a circle indicates a collation success.

又、本実施例におけるプロダクシヨンシステムと従来の
単純プロダクシヨンシステムトの照合回数を比較したと
ころ、第13図の特性Aで示されるように、本実施例の
プロダクシヨンシステムによれば従来の単純プロダクシ
ヨンシステムよりも約1.7倍高速化を図ることが確認
された。
Further, when comparing the number of collations between the production system of the present embodiment and the conventional simple production system, as shown by the characteristic A in FIG. 13, according to the production system of the present embodiment, the conventional simple system is used. It was confirmed that the speed was about 1.7 times faster than the production system.

次に本実施例の他の実施例を第9図のフローチヤートに
基づいて説明する。
Next, another embodiment of this embodiment will be described based on the flow chart of FIG.

本実施例においては、サイクルカウンタを1にセツトし
た後(ステツプ200)、前記実施例と同様な処理によ
るルール照合処理(ステツプ201)の中で、照合サイク
ル番号と照合に成功したルールの番号を作業記憶部32
に順次記憶することとしている(ステツプ202)。こ
の処理は終了条件が満足されるまで継続され(ステツプ
203,204)、作業記憶内では、第10図に示され
るように、照合サイクル番号とそのサイクルで照合した
ルール番号の情報がサイクル(cycle )述語で列挙され
る。第10図は、第6図の(a)に示される処理内容を
示し、照合サイクル1,2,3,4,6,7においてそ
れぞれルール5,11,17,17,9,9が照合に成
功したことが列挙され、又照合サイクル5,8,9にお
いて、照合に成功したルールがないことが列挙される。
In the present embodiment, after the cycle counter is set to 1 (step 200), the matching cycle number and the number of the rule that has succeeded in matching are set in the rule matching processing (step 201) by the same processing as the above embodiment. Working memory 32
Are sequentially stored (step 202). This process is continued until the end condition is satisfied (steps 203 and 204), and in the working memory, as shown in FIG. 10, the information of the collation cycle number and the rule number collated in that cycle is cycled (cycle). ) Listed by predicate. FIG. 10 shows the processing contents shown in FIG. 6 (a), in which the rules 5, 11, 17, 17, 17, 9, 9 are used for matching in the matching cycles 1, 2, 3, 4, 6, 7. Successful is listed, and in the matching cycles 5, 8 and 9, no successful rule is listed.

終了条件を満足したときには学習処理(ステツプ20
5)に移る(ステツプ205)。この処理は第11図の
フローチヤートに従つて行われる。
When the end condition is satisfied, the learning process (step 20
Go to step 5) (step 205). This processing is performed according to the flow chart shown in FIG.

第11図において、まず等価変換処理に要した照合サイ
クル数をLmaxに代入する処理を行う(ステツプ30
0)。本実施例においてはLmaxには9が代入される。次
に変数nに1を代入し(ステツプ301)。変数mに2
を代入する(ステツプ302)。この後照合サイクル番
号が変数n,mに該当するサイクル述語を参照し(ステ
ツプ303)、ルール番号RnとRmの値を調べる。即
ち、照合サイクル番号1,2のサイクル述語の値を調べ
る。
In FIG. 11, first, a process of substituting the number of matching cycles required for the equivalent conversion process into Lmax is performed (step 30).
0). In this embodiment, 9 is substituted for Lmax. Next, 1 is assigned to the variable n (step 301). 2 in variable m
Is substituted (step 302). After this, the cycle predicate whose matching cycle number corresponds to the variables n and m is referred to (step 303), and the values of the rule numbers Rn and Rm are checked. That is, the value of the cycle predicate of the collation cycle numbers 1 and 2 is checked.

まず、ステツプ305においてRnが無効番号“一”で
あるか否かを調べ、Rnが番号一に該当するときにはス
テツプ308に移り、無効番号一に該当しないときには
ステツプ306に移り、Rmが無効番号一であるか否か
を調べる。
First, in step 305, it is checked whether or not Rn is an invalid number "1". To see if.

Rmが無効番号一に該当するときにはステツプ306に
移り、無効番号一に該当しないときにはステツプ307
に移り、RnとRmの大小比較を行う。n=1のときに
はRn=5,Rm=11であるので、ステツプ307の
後はステツプ308の処理に移る。そして変数nに1を
加算し、nがLmaxを越えるまで同様の処理を継続する
(ステツプ309)。
When Rm corresponds to the invalid number 1, the process proceeds to step 306, and when Rm does not correspond to the invalid number 1, step 307.
Then, the magnitude of Rn and Rm is compared. Since Rn = 5 and Rm = 11 when n = 1, the process proceeds to step 308 after step 307. Then, 1 is added to the variable n, and the same processing is continued until n exceeds Lmax (step 309).

一方、ステツプ307の大小比較において、RnがRm
より大きいときにはステツプ311に移り、Rn番目の
ルールをRn番目のルールの1つ後方に移動する。例え
ば、第6図の(a)で示されるように、ルール群に対す
る照合が一巡した後も照合サイクル6において、以前の
照合サイクルで照合に失敗した中から照合に成功したル
ール9が新たに生じたときには、該ルール9の照合順位
を一巡目の照合サイクルで最後に照合に成功したルール
17の直後に変更する処理を行う。即ち、第6図の
(b)に示されるように、ルール9をルール17の直後
に変更し、ルールの照合順位を再編成する。
On the other hand, in the size comparison of step 307, Rn is Rm
If it is larger, the process moves to step 311, and the Rn-th rule is moved one position behind the Rn-th rule. For example, as shown in FIG. 6A, in the matching cycle 6, even after the matching with respect to the rule group has been completed, a new matching rule 9 is generated from the unsuccessful matching in the previous matching cycle. In this case, the collation order of the rule 9 is changed immediately after the rule 17 that was successfully collated last in the first collation cycle. That is, as shown in FIG. 6B, the rule 9 is changed immediately after the rule 17, and the collation order of the rules is reorganized.

本実施例における学習処理を行つた後、同一のものに照
合処理を行う場合、前記実施例のものよりもサイクル数
の低減化、照合失敗回数の低減化を図ることができる。
即ち、照合サイクル数を9サイクルから8サイクルに低
減することができ、照合失敗サイクルを、第13図の特
性Bで示されるように低減することができ、従来の単純
プロダクシヨンシステムよりも約2.5倍高速化を図る
ことができる。
When the matching process is performed on the same thing after performing the learning process in the present embodiment, it is possible to reduce the number of cycles and the number of matching failures compared to those of the above-described embodiments.
That is, the number of collation cycles can be reduced from 9 cycles to 8 cycles, and the collation failure cycle can be reduced as shown by the characteristic B of FIG. 13, which is about 2 times less than that of the conventional simple production system. 0.5 times faster.

次に前記実施例によつて得られたサイクル述語を利用し
て、さらに効率の良いルールの順序変更を行うための処
理を、第12図のフローチヤートに基づいて説明する。
Next, the processing for changing the order of the rules more efficiently by using the cycle predicate obtained in the above embodiment will be explained based on the flow chart of FIG.

まず、前記実施例により再編成された後のルールの位置
を与えるために、ルールポインタpの値を1に初期設定
する(ステツプ400)。次に前記実施例によつて再編
成され最大サイクル数を変数Lmaxに代入する(ステツプ
401)。本実施例ではLmaxの値は8となる。
First, the value of the rule pointer p is initialized to 1 in order to give the position of the rule after being reorganized according to the above embodiment (step 400). Next, the maximum number of cycles reorganized by the above-described embodiment is substituted into the variable Lmax (step 401). In this embodiment, the value of Lmax is 8.

次に変数nを1に初期設定し(ステツプ402)、変数
mを2に初期設定する(ステツプ403)。次にサイク
ル番号がnとmに該当するサイクル述語を取り出す(ス
テツプ404,405)。このサイクル述語は前記実施
例の処理の課程で作業記憶内に登録されているものとす
る。即ち、照合サイクル1〜6には、それぞれ5,1
1,17,17,9,9の値が代入され、照合サイクル
7,8には無効番号一が代入される。
Next, the variable n is initialized to 1 (step 402), and the variable m is initialized to 2 (step 403). Next, the cycle predicate corresponding to the cycle numbers n and m is taken out (steps 404 and 405). It is assumed that this cycle predicate is registered in the working memory in the course of processing of the above embodiment. That is, in the matching cycles 1 to 5,
The values 1, 17, 17, 9, 9 are substituted, and the verification cycle 7, 8 is substituted with the invalid number 1.

次にRnが無効番号一に該当するか否かを調べ(ステツ
プ406)、さらにRmとRnとが等しいか否かを調べ
る(ステツプ407)。n=1のときにはRn=R1=
5であり、Rn=R=11である。このためステツプ
406,407の後はステツプ410の処理に移り、n
の値を1加算してルールポインタpの値1の位置にルー
ル5を移動する(ステツプ413)。即ち、第6図の
(c)に示されるように、ルール5を照合サイクル1の
先頭に位置させる。この後ルールポインタpの値を1加
算してステツプ411の処理に移る。この場合nの値は
Lmax以下であるので、ステツプ403の処理に戻り、前
述した処理と同様な処理を行う。
Next, it is checked whether Rn corresponds to the invalid number 1 (step 406), and further it is checked whether Rm and Rn are equal (step 407). When n = 1, Rn = R1 =
5 and Rn = R 2 = 11. Therefore, after steps 406 and 407, the process proceeds to step 410, where n
Is incremented by 1 and the rule 5 is moved to the position of the value 1 of the rule pointer p (step 413). That is, as shown in FIG. 6C, the rule 5 is positioned at the beginning of the matching cycle 1. After this, the value of the rule pointer p is incremented by 1, and the process proceeds to step 411. In this case, the value of n is
Since it is less than or equal to Lmax, the process returns to step 403 and the same process as the above-mentioned process is performed.

この後は、Rnが無効番号一に該当したときには変数n
を1加算して(ステツプ408)、ステツプ411の処
理に移る。一方RnとRmとが等しいときには変数nの
値に2を加算してステツプ413の処理を実行する。
After this, when Rn corresponds to the invalid number 1, the variable n
Is incremented by 1 (step 408) and the process proceeds to step 411. On the other hand, when Rn and Rm are equal, 2 is added to the value of the variable n and the processing of step 413 is executed.

以上の処理を行うことにより、ルール11,17,9は
第6図の(c)に示されるように、それぞれ照合順位上
位の位置に変更される。
By performing the above processing, the rules 11, 17, and 9 are respectively changed to positions higher in the collation order as shown in (c) of FIG.

本実施例においては、照合に成功した部分が照合順位の
上位に再編成されているので、同一の問題を処理する場
合、前記各実施例よりも更に照合失敗回数の低減を図る
ことができる。即ち、本実施例においては、第13図の
特性Cで示されるように、従来のプロダクシヨンシステ
ムよりも約3.6倍の高速化が図れることが確認され
た。
In the present embodiment, the parts that have succeeded in the collation are reorganized to the higher rank of the collation order, so that when the same problem is dealt with, the number of collation failures can be further reduced as compared with the above-mentioned respective embodiments. That is, in this embodiment, as shown by the characteristic C in FIG. 13, it was confirmed that the speed could be increased by about 3.6 times as compared with the conventional production system.

〔発明の効果〕〔The invention's effect〕

本発明によれば、ルールの照合結果に応じてルールの照
合順序を再編成するようにしたため、プロダクシヨンシ
ステムの高速化に寄与することができる。
According to the present invention, the rule collating order is reorganized according to the rule collating result, which can contribute to the speedup of the production system.

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

第1図は本発明の一実施例を示す構成図、第2図は数学
的論理回路の構成図、第3図は第2図に示す回路の接続
情報を説明するための図、第4図はルール群の構成説明
図、第5図は本発明の第一実施例の作用を説明するため
のフローチヤート、第6図は本発明に係る装置の照合内
容を説明するための図、第7図は本発明に係る装置によ
り等価変換された論理回路の構成図、第8図は第7図に
示す回路の接続情報を接続するための図、第9図は本発
明の第2実施例を説明するためのフローチヤート、第1
0図はサイクル述語の構成説明図、第11図は第9図に
示す学習処理の内容を説明するためのフローチヤート、
第12図は本発明の第3実施例を説明するためのフロー
チヤート、第13図は従来の単純プロダクシヨンシステ
ムと本発明に係るプロダクシヨンシステムとの照合回数
を比較するための線図である。 31……初期データ入力部、32……作業記憶部、33
……ルールインタプリタ、34……ルール記憶部、35
……ルールフラグ記憶部、36……照合失敗サイクル記
憶部、37……データ出力部、38……制御部。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram of a mathematical logic circuit, FIG. 3 is a diagram for explaining connection information of the circuit shown in FIG. 2, and FIG. Is a configuration diagram of a rule group, FIG. 5 is a flow chart for explaining the operation of the first embodiment of the present invention, FIG. 6 is a diagram for explaining the collation content of the device according to the present invention, and FIG. FIG. 8 is a block diagram of a logic circuit equivalently converted by the device according to the present invention, FIG. 8 is a diagram for connecting connection information of the circuit shown in FIG. 7, and FIG. 9 is a second embodiment of the present invention. Float chart to explain, first
FIG. 0 is an explanatory diagram of the structure of the cycle predicate, FIG. 11 is a flow chart for explaining the contents of the learning process shown in FIG. 9,
FIG. 12 is a flow chart for explaining the third embodiment of the present invention, and FIG. 13 is a diagram for comparing the number of collations between the conventional simple production system and the production system according to the present invention. . 31 ... Initial data input unit, 32 ... Work storage unit, 33
...... Rule interpreter, 34 ...... Rule storage unit, 35
...... Rule flag storage unit, 36 …… collation failure cycle storage unit, 37 …… data output unit, 38 …… control unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】変換対象に関する情報を格納する作業記憶
手段と、変換対象に関する情報を新たな情報に変換する
ための前提条件を記号、変数による文字列のリストに従
って格納する前提条件部及び前提条件部の条件成立時の
実行内容を文字列のリストに従って格納する実行部を含
むルール群を照合順位に対応付けて格納するルール記憶
手段と、 作業記憶手段の情報とルール記憶手段の各ルールの前提
条件とを照合サイクル毎に順次照合し、該照合に成功し
たルールの実行内容を実行して作業記憶手段の情報をル
ールの結論に従って更新する解釈実行手段と、 ルール記憶手段のルール毎に対応づけられたルールフラ
グ群を有し、各ルールの照合結果を各ルールフラグに記
憶するルールフラグ記憶手段と、を備え、解釈実行手段
は、ルール記憶手段のルール群に対する照合を照合順位
に従って実行して、照合が失敗したときに、該ルールに
対応したルールフラグに、照合順位が最高位のルールか
ら最低位のルールに対する照合が一巡するまで照合禁止
フラグをセットし、照合が成功したときには、該照合が
最初に成功するまでの処理を一照合サイクルとして該照
合サイクルで最初に成功したルールの実行内容を実行す
ると共に次の照合サイクルによる処理に移行し、該次の
照合サイクルでは照合禁止フラグがセットされているル
ールと作業記憶手段の情報との照合を禁止して前回の照
合サイクルで照合に成功したルールから照合を開始し、
さらに前記ルール群に対する照合が少なくとも一巡した
後に、前記ルール群の中から照合に成功したルールのみ
を選択し、選択したルール群を照合順位の上位に変更
し、照合順位が変更された後は再編成された照合順位に
従って処理を実行することを特徴とするプロダクション
システム。
1. A work storage unit for storing information about a conversion target, and a precondition section and a precondition for storing a precondition for converting the information about the conversion target into new information according to a list of character strings by symbols and variables. Rule storage means for storing the execution contents when a condition of a section is satisfied according to a list of character strings, and a rule storage unit for storing a rule group including an execution unit in association with a collation order; Correspond to each rule in the rule storage means and an interpretation execution means for sequentially collating conditions with each other in each collation cycle, executing the execution content of the rule for which the collation succeeds, and updating the information in the working storage means according to the conclusion of the rule. And a rule flag storage unit that stores the collation result of each rule in each rule flag. When collation fails for a group of rules according to the collation order and the collation fails, the rule flag corresponding to the rule is prohibited from collating until the rule with the highest collation order has reached the lowest rule. When the flag is set and the collation succeeds, the process until the first collation succeeds is regarded as one collation cycle, the execution content of the rule that succeeds first in the collation cycle is executed, and the process proceeds to the process of the next collation cycle. Then, in the next collation cycle, the collation of the rule in which the collation prohibition flag is set and the information in the working storage means is prohibited, and the collation is started from the rule that succeeded in the collation in the previous collation cycle.
Further, after at least one round of matching with the rule group, only the rule that succeeds in matching is selected from the rule group, the selected rule group is changed to a higher rank of the matching order, and after the matching order is changed, the rule is changed again. A production system characterized by performing processing in accordance with the organized collation order.
JP62175474A 1987-07-14 1987-07-14 Production system Expired - Lifetime JPH0642200B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62175474A JPH0642200B2 (en) 1987-07-14 1987-07-14 Production system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62175474A JPH0642200B2 (en) 1987-07-14 1987-07-14 Production system

Publications (2)

Publication Number Publication Date
JPS6418879A JPS6418879A (en) 1989-01-23
JPH0642200B2 true JPH0642200B2 (en) 1994-06-01

Family

ID=15996688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62175474A Expired - Lifetime JPH0642200B2 (en) 1987-07-14 1987-07-14 Production system

Country Status (1)

Country Link
JP (1) JPH0642200B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2017187818A1 (en) * 2016-04-27 2019-02-28 東レ株式会社 High pressure tank member inspection method, high pressure tank member manufacturing method, high pressure tank manufacturing method, and high pressure tank member inspection device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07113931B2 (en) * 1992-12-14 1995-12-06 日本電気株式会社 Logic circuit optimization device
JP2636709B2 (en) * 1993-10-29 1997-07-30 日本電気株式会社 Logic optimizer

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62109046A (en) * 1985-11-08 1987-05-20 Konishiroku Photo Ind Co Ltd Photographic sensitive material

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62109046A (en) * 1985-11-08 1987-05-20 Konishiroku Photo Ind Co Ltd Photographic sensitive material

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2017187818A1 (en) * 2016-04-27 2019-02-28 東レ株式会社 High pressure tank member inspection method, high pressure tank member manufacturing method, high pressure tank manufacturing method, and high pressure tank member inspection device

Also Published As

Publication number Publication date
JPS6418879A (en) 1989-01-23

Similar Documents

Publication Publication Date Title
Ramsay Formal methods in artificial intelligence
Green Application of theorem proving to problem solving
US8036877B2 (en) Context-based suggestions mechanism and adaptive push mechanism for natural language systems
JP2506991B2 (en) Circuit conversion system, circuit conversion method, inversion logic generation method, and logic design system
US4937755A (en) Production system for an expert system
Sammut Learning concepts by performing experiments
US5263127A (en) Method for fast rule execution of expert systems
JPH0642200B2 (en) Production system
KR102582779B1 (en) Knowledge completion method and apparatus through neuro symbolic-based relation embeding
Oliveira et al. Efficient search techniques for the inference of minimum size finite automata
US5197115A (en) Inferential system and inferential method
Austin et al. A neural architecture for fast rule matching
Yamakami The no endmarker theorem for one-way probabilistic pushdown automata
Löding et al. Propositional dynamic logic with recursive programs
KR940008092B1 (en) Inference system
JP3213151B2 (en) Learning method and learning device for pattern recognition device using neural network
JPS6341926A (en) High speed inference system
JPH05241837A (en) Rule set preparing device
JP2001117774A (en) Production system with adaptation mechanism
Finger et al. The universe of approximations
Das et al. Exploring Learnability in Memory-Augmented Recurrent Neural Networks: Precision, Stability, and Empirical Insights
Stansifer Representing Constructive theories in High-level Programming languages
KR910009099B1 (en) Speedup Method of Computer Oriental Diagnosis
Yabuki et al. Genetic Programming Using a Turing-Complete Representation: Recurrent Network Consisting of Trees
JPH04281531A (en) Production system