JPH0410133A - Fuzzy inference system - Google Patents

Fuzzy inference system

Info

Publication number
JPH0410133A
JPH0410133A JP11403390A JP11403390A JPH0410133A JP H0410133 A JPH0410133 A JP H0410133A JP 11403390 A JP11403390 A JP 11403390A JP 11403390 A JP11403390 A JP 11403390A JP H0410133 A JPH0410133 A JP H0410133A
Authority
JP
Japan
Prior art keywords
rule
rules
unnecessary
maximum
minimum
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
JP11403390A
Other languages
Japanese (ja)
Inventor
Yoshiaki Saitou
斉藤 至昭
Ikuo Kinoshita
郁夫 木下
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP11403390A priority Critical patent/JPH0410133A/en
Publication of JPH0410133A publication Critical patent/JPH0410133A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)
  • Feedback Control In General (AREA)

Abstract

PURPOSE:To increase the inference speed by using a maximum value and a minimum value of all adaptabilities to rules and detecting unnecessary parts included in plural rules to eliminate an unnecessary inference time. CONSTITUTION:An inference control part 1 outputs all adaptabilities of data x1 - xn to plural preliminarily set rules. An adaptability buffer part 2 receives this output to store the adaptability of each rule. a maximum/minimum buffer part 3 receives the output from the adaptability buffer part 2 to tentatively store the maximum value and the minimum value of adaptabilities in the range of the input variance. These maximum value and the minimum value of adaptabilities are inputted to an unnecessary rule discriminating block 5, and the maximum value and the minimum value are referred to discriminate unnecessary rules. Thus, unnecessary rules are deleted to increase the inference speed even if many unnecessary rules exist.

Description

【発明の詳細な説明】 (産業上の利用分野) この発明は、条件のあいまいさを定量化して結果を推論
するファジィ推論システムに関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a fuzzy inference system that infers a result by quantifying the ambiguity of a condition.

(従来の技術) 従来のファジィ推論システムとしては、次に示すような
ものがある。すなわち、ファジィ推論を行なう推論制御
部にデータを入力し、この人カデタを、予め設定された
複数のルールとメンバシップ関数に基づいて情報処理し
、これによりファジィ推論の結果を出力するように構成
している。
(Prior Art) Conventional fuzzy inference systems include the following. That is, the system is configured to input data to an inference control unit that performs fuzzy inference, process the information based on a plurality of preset rules and membership functions, and output the results of fuzzy inference. are doing.

この場合、上記ルールとメンバーシップ関数は、その専
門技術分野の熟練者に蓄積された経験と勘、つまり人間
による定性的なノウハウを基本にして作成されている。
In this case, the rules and membership functions are created based on the experience and intuition accumulated by experts in the specialized technical field, that is, qualitative human know-how.

(発明が解決しようとする課題) しかしながら、このような従来のファジィ推論システム
にあっては、熟練者の定性的なノウハウに基づいて複数
のルールとメンバーシップ関数か作られているため、推
論対象によっては不要なルルが存在することかある。し
たがって、実際にファジィ推論システムを制御などに用
いて推論する場合、複数のルールの中に不要なものがあ
っても、この不要なルールを判別することなく、そのま
まファジィ推論を行なっているのが実情である。
(Problem to be solved by the invention) However, in such conventional fuzzy inference systems, multiple rules and membership functions are created based on the qualitative know-how of experts; Depending on the situation, there may be unnecessary Lulu. Therefore, when actually using a fuzzy inference system for control, etc., even if some of the rules are unnecessary, the fuzzy inference is continued without identifying the unnecessary rules. This is the reality.

その結果、不要ルールの数に相当する分だけ推論時間が
無駄になり、推論時間が遅れるという問題点があった。
As a result, there is a problem in that inference time is wasted by an amount corresponding to the number of unnecessary rules, and inference time is delayed.

この発明は、このような従来の問題点に着目してなされ
たもので、ファジィ推論がなされたときのルールに対す
る適合度をすべて出力し、その適合度を利用して複数の
ルールに含まれた不要な部分を検出して無駄な推論時間
をなくすことにより、上記問題点を解決することを目的
としている。
This invention was made by focusing on such conventional problems, and it outputs all the degrees of conformance to a rule when fuzzy inference is performed, and uses that degree of conformity to create a system that is included in multiple rules. The purpose is to solve the above problems by detecting unnecessary parts and eliminating wasted inference time.

(課題を解決するための手段) この発明は、上記のような目的を達成するため、各ルー
ルの適合度をすべて出力する適合度出力部と、 この適合度出力部からの出力を受けて各ルールの適合度
の最大値と最小値を記憶するバッファ部と、 上記適合度の最大値と最小値に基づいて不要なルールを
判定する不要ルール判定ブロック部と、を備えることを
特徴とする。
(Means for Solving the Problems) In order to achieve the above-mentioned object, the present invention includes a suitability output unit that outputs all the suitability of each rule, and a suitability output unit that outputs all the suitability of each rule. The present invention is characterized by comprising a buffer section that stores maximum and minimum values of the degree of suitability of rules, and an unnecessary rule determination block section that determines unnecessary rules based on the maximum and minimum values of the degree of suitability.

(作用) 上記の構成において、ファジィ推論を行なう際には、ま
ず複数のルールに対する適合度をすべて適合度出力部に
より出力する。そして、この出力されたすべての適合度
はバッファ部に人力し、各ルール毎に適合度の最大値、
最小値を一時記憶する。次に、二の適合度の最大値、最
小値を不要ルル判定ブロック部に人力し、ここで適合度
の最大値、最小値を参照しながら不要なルールを判定す
る。これにより、不要なルールが多数あった場合でも、
これらを削除してファジィ推論を効率的に行なうことが
できるため、推論速度を上げることかできる。
(Operation) In the above configuration, when performing fuzzy inference, all the degrees of conformity for a plurality of rules are first outputted by the degree of conformity output section. Then, all the output degrees of conformity are stored in the buffer section, and the maximum value of the degree of conformity for each rule is
Temporarily store the minimum value. Next, the maximum value and minimum value of the second degree of conformance are manually entered into the unnecessary rule determination block section, and unnecessary rules are determined here while referring to the maximum value and minimum value of the degree of conformity. As a result, even if there are many unnecessary rules,
Since these can be deleted and fuzzy inference can be performed efficiently, the inference speed can be increased.

(実施例) 以下に、この発明の一実施例を図面に基づいて説明する
(Example) An example of the present invention will be described below based on the drawings.

第1図は、この実施例に係るファジィ推論システムの全
体構成を示すブロック図である。
FIG. 1 is a block diagram showing the overall configuration of a fuzzy inference system according to this embodiment.

この図において、1は複数のデータX1lX21・・・
、xnを人力してファジィ推論を行なう推論制御部で、
適合度出力部としての機能を有している。
In this figure, 1 represents a plurality of data X1lX21...
, xn and performs fuzzy inference manually.
It has a function as a suitability output section.

この推論制御部1ては、予め設定された各ルールに対す
るデータXl、X2.・・・、xnの適合度がすべて出
ツノされるようになされている。この推論制御部1の一
方の出力側には、適合度バッファ部2および最大最小バ
ッファ部3が順次接続されているとともに、推論制御部
1の他方の出力側には、グループ分は決定ブロック部4
が接続されている。
This inference control unit 1 generates data Xl, X2 . . . , all the fitness degrees of xn are displayed. A fitness buffer section 2 and a maximum/minimum buffer section 3 are sequentially connected to one output side of the inference control section 1, and a decision block section for each group is connected to the other output side of the inference control section 1. 4
is connected.

このうち適合度バッファ部2は、推論制御部1からの出
力を受けて、各ルールの適合度を格納するものであり、
また最大最小バッファ部3は、適合度バッファ部2から
の出力を受けて、その入力変動の範囲内における適合度
の最大値、最小値を格納するものである。
Among these, the suitability buffer section 2 receives the output from the inference control section 1 and stores the suitability of each rule.
The maximum/minimum buffer section 3 receives the output from the suitability buffer section 2 and stores the maximum and minimum suitability values within the range of the input fluctuation.

さらに、グループ分は決定ブロック部4は、推論制御部
1からの出力を受けて、後件部における適合度の最大値
、最小値のグループ分けを行なうものである。このグル
ープ分は決定ブロック部4には、各グループ内での不要
なルールを判定する不要ルール判定ブロック部5と、こ
の不要ルール判定ブロック部5による判定結果を記憶し
蓄積する判定結果バッファ部6が順次接続されている。
Further, the group determination block section 4 receives the output from the inference control section 1 and performs grouping based on the maximum value and minimum value of the degree of fitness in the consequent part. The decision block unit 4 for this group includes an unnecessary rule determination block unit 5 that determines unnecessary rules within each group, and a determination result buffer unit 6 that stores and accumulates the determination results of this unnecessary rule determination block unit 5. are connected sequentially.

次に、上記ファジィ推論システムの各構成部分における
アルゴリズムについて説明する。
Next, the algorithms in each component of the fuzzy inference system will be explained.

まず、推論制御部1について述べると、これには複数の
ルールが以下のように設定されているものとする。
First, regarding the inference control unit 1, it is assumed that a plurality of rules are set as follows.

ルール1 if  x、=A、  and  x2=A2・・・t
hen  yI=B1−・ルール2 if  x3=A3   and  X4=A4・−t
hen  yI =B1 ・−ここて、人ツノデータX
 I +  X2+ ・・・、xnは、目的とする制御
内容などによって、予め変動範囲か決まっているもので
ある。これら入力データXII  X21 ・・・、x
nは、人力を必要とする範囲で変動させ、このときの各
ルールに対する前件部における最大値と最小値を適合度
バッファ部2に記憶しておく。
Rule 1 if x,=A, and x2=A2...t
hen yI=B1-・Rule 2 if x3=A3 and X4=A4・-t
hen yI =B1 ・-Here, human horn data X
I + X2+ . . . , xn has a variation range determined in advance depending on the intended control content. These input data XII X21 ..., x
n is varied within a range that requires human effort, and the maximum and minimum values in the antecedent part for each rule at this time are stored in the suitability buffer section 2.

第2図は、適合度バッファ部2での記憶状態の一例を示
すもので、max  uz、min  uiはそれぞれ
2番目のルールに対する適合度の最大値、最小値を表わ
すものである。
FIG. 2 shows an example of the storage state in the suitability buffer section 2, where max uz and min ui represent the maximum value and minimum value of the suitability for the second rule, respectively.

そして、各ルールに対する後件部が同じものについては
、それらの適合度の最大値max  ui。
For rules with the same consequent, the maximum value max ui of their fitness.

最小値min  uiを各後件部ごとにまとめる。The minimum value min ui is summarized for each consequent part.

例えば次のように整理してまとめる。For example, organize and summarize as follows.

V+=B+に関するルール ルール1   max  ul  min  ulルー
ル2   max  u2  min  u2Y+=B
2に関するルール いま、後件部Y+=B+に関するルールのうちで、ルー
ル1とルール2の適合度が第3図に示すように変化した
とする。すなわち、ルール1についての適合度の最大値
maX  ul、最小値min  ulがそれぞれ0.
8. 0. 5に変化し、かつルール2についての適合
度の最大値max  u2、最小値min  u2がそ
れぞれ0. 3.0゜1に変化したとする。そうすると
、後件部5’1=B1において人力値の変動する範囲内
では、第4図に示すように、その最大値、最小値が0.
8゜0.5になる。したがって、」−記のような人力状
態においてルール2は後件部y+=B+に関する限り、
人力値の変動する範囲ではなんらの影響も与えないこと
になる。言い換えれば、ルール2の後件部VI=82に
関する部分は、推論結果を出力する際に用いる必要がな
くなるので、この部分を取り除いてもなんら差し支えな
いことになる。
Rules regarding V+=B+ Rule 1 max ul min ul Rule 2 max u2 min u2Y+=B
Rule 2 Regarding Rule 2 Now, it is assumed that among the rules regarding the consequent part Y+=B+, the compatibility of Rule 1 and Rule 2 has changed as shown in FIG. That is, the maximum value maX ul and the minimum value min ul of the fitness for rule 1 are respectively 0.
8. 0. 5, and the maximum value max u2 and minimum value min u2 of the fitness for rule 2 are respectively 0. Suppose that it changes to 3.0°1. Then, within the range in which the human power value fluctuates in the consequent part 5'1=B1, as shown in FIG. 4, the maximum and minimum values are 0.
It becomes 8°0.5. Therefore, in a human-powered state like '-', Rule 2 is as far as the consequent y+=B+ is concerned.
This means that it will not have any effect within the range in which the human power value fluctuates. In other words, the part related to the consequent part VI=82 of rule 2 no longer needs to be used when outputting the inference result, so there is no problem even if this part is removed.

以下に、各主要措成部分におけるアルゴリズムを図によ
って詳しく説明する。
Below, the algorithms for each main component will be explained in detail using diagrams.

推論制御部1では、第5図に示すように、まず複数のデ
ータXI+X2+ ・・・、xnを人力し、次にこれら
人力されたデータX I +  X2 + ・・・、 
 xnに基づいてファジィ推論を行なう。この場合、メ
ンバーシップ関数を用いて各ルールについてそれぞれの
適合度を求め、この適合度は適合度バッファ部2に一時
格納する。
In the inference control unit 1, as shown in FIG. 5, first, a plurality of data XI+X2+ . . .
Perform fuzzy inference based on xn. In this case, the degree of suitability of each rule is determined using the membership function, and this degree of suitability is temporarily stored in the suitability buffer section 2.

このあと、各ルールについての適合度の最大値と最小値
を求めて、これを最大最小バッファ部3に格納する。こ
のことを第6図によって詳細に説明する。まず、最大値
を求める場合は、ステップ61てルールの番号りが1で
あるときからスタトし、ステップ62でルールの番号り
がルールの総数Nよりも大きいか否かを判断し、太きけ
れはその時点で終了する。一方、ルールの番号りがルー
ルの総数Nよりも小さければ、L番目のルールの適合度
ulが、予め定められた最大値u1−(max)よりも
大きいか否かを判断する(ステップ63)。その結果、
適合度uLが最大値uL(max)よりも大きければ、
ステップ64て適合度uLが最大値uL(max)と等
しくなることを条件としてステップ65に進み、そうで
なけれはステップ64を経ることなく直接ステップ65
に進む。
Thereafter, the maximum and minimum values of suitability for each rule are determined and stored in the maximum/minimum buffer section 3. This will be explained in detail with reference to FIG. First, to find the maximum value, start from when the rule number is 1 in step 61. In step 62, it is determined whether the rule number is greater than the total number of rules N. It ends at that point. On the other hand, if the number of rules is smaller than the total number N of rules, it is determined whether the suitability ul of the L-th rule is larger than a predetermined maximum value u1-(max) (step 63). . the result,
If the fitness uL is larger than the maximum value uL(max),
On the condition that the fitness degree uL in step 64 is equal to the maximum value uL(max), the process proceeds to step 65; otherwise, the step 65 is directly performed without going through step 64.
Proceed to.

次に、ステップ65では、予め定められた最小値uL(
min)よりも適合度uLが小さいか否かを判断し、そ
の結果、適合度ulが最小値uL(min)よりも小さ
ければ、ステップ66て適合度u1−が最小値uL(m
in)と等しくなることを条件としてステップ67に進
み、そうでなければステップ66を経ることなく直接ス
テップ67に進む。ステップ67ではルールの番号がL
からL+1に増えることを条件として、ステップ62に
戻り、上述した手順を再び繰り返す。
Next, in step 65, a predetermined minimum value uL(
As a result, if the fitness degree ul is smaller than the minimum value uL(min), step 66 determines whether the fitness degree u1- is smaller than the minimum value uL(m
in), the process proceeds to step 67; otherwise, the process proceeds directly to step 67 without passing through step 66. In step 67, the rule number is L.
On the condition that the number increases from L+1 to L+1, the process returns to step 62 and the above-described procedure is repeated again.

なお、以上の操作に従って最大値uL(may)、最小
値ul(min)を求めるときは、XIS≦x1≦Xl
 e、  X2 S≦X2≦x2e。
In addition, when calculating the maximum value uL (may) and minimum value ul (min) according to the above operation, XIS≦x1≦Xl
e, X2 S≦X2≦x2e.

−xn S≦xn≦xne の範囲でデータXI+  x2+ ・・・、xnO値を
動かして行なうものとする。ここに、X、S、  X2
 S。
-xn S≦xn≦xne The data XI+ x2+ . Here, X, S, X2
S.

・・・、xnsは各人力データの最小値、xle、x2
e、・・・、xneは各人力データの最大値である。
..., xns is the minimum value of each human data, xle, x2
e, . . . , xne are the maximum values of each human power data.

このようにして求められた適合度の最大MuL(maX
)、最小値uL(min)は、第7図に示すように、各
ルールごとにまとめて最大最小バッファ部3に格納され
る。
The maximum MuL(maX
) and the minimum value uL (min) are stored in the maximum/minimum buffer unit 3 for each rule, as shown in FIG.

次に、最大最小バッファ部3および推論制御部1からの
圧力を受けるグループ分は決定ブロック部4では、後件
部の種類に応じて適合度の最大値uL(max)、最小
値uL(min)をグルプ分けする。
Next, for the groups that receive pressure from the maximum/minimum buffer section 3 and the inference control section 1, the decision block section 4 calculates the maximum value uL (max) and minimum value uL (min) of the fitness according to the type of the consequent. ) into groups.

第8図はこの手順を示すフローチャートであって、図中
、mは後件部における出力の総数、!(i)は出力yi
のラベルの総数である。このグループ分は決定ブロック
部4によるグループ分けに際しては、まずステップ81
で第1番目の後件部の出力からスタートして、ステップ
82て出力の番号iが出力の総数mよりも大きいか否か
を判断し、大きければその時点でグループ分けを終了す
る。一方、出力の番号iが出力の総数mよりも小さけれ
ば、ステップ83で出力yiにおける第1番目のラベル
からスタートし、ステップ84でラベルの番号jがラベ
ルの総数!(i)よりも大きいか否かを判断する。その
結果、ラベルの番号jがラベルの総数!(i)よりも大
きければ、ステップ85で出力の番号がiからi+1に
増えることを条件としてステップ82に戻り、逆にラベ
ルの番号jがラベルの総数!(i)よりも小さけれは、
yi=Bj  (i)を後件部にもつルールに関する適
合度の最大値と最小値を選び出す。
FIG. 8 is a flowchart showing this procedure, where m is the total number of outputs in the consequent part, ! (i) is the output yi
is the total number of labels. When this group is divided into groups by the decision block section 4, first step 81
Starting from the output of the first consequent, it is determined in step 82 whether the output number i is greater than the total number m of outputs, and if so, the grouping ends at that point. On the other hand, if the output number i is smaller than the total number m of outputs, the process starts from the first label in the output yi in step 83, and the label number j is equal to the total number of labels! (i) Determine whether it is larger than (i). As a result, label number j is the total number of labels! If it is larger than (i), the process returns to step 82 on the condition that the output number increases from i to i+1 in step 85, and conversely, label number j is the total number of labels! If it is smaller than (i),
yi=Bj (i) The maximum and minimum values of the fitness for the rule having the consequent part are selected.

第9図はこの手順を示すフローチャートであって、まず
、ステップ91で第1番目のルールからスタートし、ス
テップ92でルールの番号kがルールの総数Nよりも大
きいか否かを判断し、大きければステップ86に移り、
ラベルの番号がjからj+1に増えることを条件として
ステップ84に戻る。一方、ルールの番号kがルールの
総数Nよりも小さければ、ステップ93でに番目のルル
がyi=Bj  (i)を後件部にもつか否かを判断し
、もっていればl(番目のルールに関する適合度の最大
値と最小値を後件部yi−Bj  (i)のグループに
入れる(ステップ94)。そして、ステップ95でルー
ルの番号が1(からに+1に増えたことを条件としてス
テップ92に戻り、前述したことと同様の手順を再び繰
り返す。
FIG. 9 is a flowchart showing this procedure. First, in step 91, the first rule is started, and in step 92, it is determined whether the rule number k is greater than the total number N of rules. Then move on to step 86.
The process returns to step 84 on the condition that the label number increases from j to j+1. On the other hand, if the rule number k is smaller than the total number N of rules, it is determined in step 93 whether or not the th Lulu has yi=Bj (i) in the consequent, and if so, the l(th The maximum and minimum fitness values for the rule are put into the group of the consequent part yi-Bj (i) (step 94).Then, in step 95, the rule number is increased from 1 (from 1 to +1). Returning to step 92, the same procedure as described above is repeated again.

このように、グループ分は決定ブロック部4においてグ
ループ分けされた各ルールに対する適合度の最大値と最
小値は、後件部yi=Bj  (i)の種類ごとにまと
めて整理する。例えば、第10図はその一例を示すもの
で、後件部y+=B+(1)に関してはルール1,3に
対する適合度の最大値と最小値がまとめられ、また後件
部y1=B+  (2)に関してはルール4.6.7に
対する適合度の最大値と最小値がまとめられている。
In this way, for each group, the maximum and minimum values of the degree of suitability for each rule grouped in the decision block section 4 are organized for each type of consequent part yi=Bj (i). For example, FIG. 10 shows an example. Regarding the consequent part y+=B+(1), the maximum and minimum values of the fitness for rules 1 and 3 are summarized, and the consequent part y1=B+ (2 ), the maximum and minimum conformance values for Rule 4.6.7 are summarized.

次に、グループ分は決定ブロック部4において後件部y
i=Bj  (i)の種類ごとに各ルールに対する適合
度の最大値と最小値をグループ分けしたら、各グループ
内における不要なルールをそれぞれ判定する。
Next, the group part is determined in the decision block part 4 by the consequent part y
After the maximum and minimum values of the degree of suitability for each rule are divided into groups for each type of i=Bj (i), unnecessary rules within each group are determined.

具体的に不要なルールを判定する際は、不要ルル判定ブ
ロック部5によりグループ分けされたルールについて適
合度を計算する。
When specifically determining unnecessary rules, the unnecessary rule determination block unit 5 calculates the degree of suitability for the rules grouped into groups.

第11図はこの計算手順を示すもので、まずステップ1
11で1番目の出力y1について、第1番目のルールか
らスタートし、ステップ112でルールの総数Nよりも
ルールの番号iが大きいか否かを判断し、大きければそ
の時点で計算を終了する。一方、ルールの番号iがルー
ルの総数Nよりも小さけれは、ステップ113で出力y
jについてのラベルが1であることを条件として、ステ
ップ114に進み、ラベルの番号jがラベルの総数!(
i)よりも大きいか否かを判断する。ラベルの番号jが
ラベルの総数、e(i)よりも太きけれは、ステップ1
15でルールの番号がiからi+1に増えることを条件
としてステップ112に戻る。
Figure 11 shows this calculation procedure. First, step 1
Step 11 starts from the first rule for the first output y1, and in step 112 it is determined whether the rule number i is greater than the total number N of rules, and if it is, the calculation ends at that point. On the other hand, if the rule number i is smaller than the total number N of rules, in step 113 the output y
On the condition that the label for j is 1, the process proceeds to step 114, where the label number j is the total number of labels! (
i) Determine whether it is larger than i). If the label number j is thicker than the total number of labels, e(i), step 1
In step 15, the process returns to step 112 on the condition that the rule number increases from i to i+1.

ラベルの番写jがラベルの総数!(i)よりも小さけれ
は、後件部yi=Bj  (i)に関するルールのうち
で、適合度u(min)が最大値になるものを以下の手
順で求める。
The label number j is the total number of labels! If it is smaller than (i), among the rules related to the consequent part yi=Bj (i), the one with the maximum fitness degree u (min) is determined by the following procedure.

第12図はこの手順を示すもので、まずステップ121
て適合度に関する変数iが0であるときの第1番目のル
ールからスタートし、ステップ122て後件部yi=B
j  (i)のグループに属しているルールの総数P(
i、j)よりもルールの番号kが大きいか否かを判断す
る。その結果、ルールの番号kがルールの総数P(i、
j)よりも小さけれは、ステップ123で後件部yi=
Bj(i)のグループに属しているに番目のルールに対
する適合度の最小値u  min (i、  j、  
k)が変数rよりも大きいか否かを判断する。もし最小
値u  min (i、  j、  10が変数rより
も大きければ、ステップ124で最小値u  m1n(
i、j、k)と変数rが互いに等しくなることを条件と
してステップ125に進み、逆に最小値u  min 
(i、  j、  lc)が変数rよりも小さければ、
ステップ124を経ることなく直接ステップ125に進
む。ステップ125では、ルールの番号がkから1(+
1に増えることを条件としてステップ122に戻り、上
述した手順を再び繰り返す。
FIG. 12 shows this procedure. First, step 121
In step 122, the consequent part yi=B starts from the first rule when the variable i related to the fitness is 0.
The total number of rules belonging to the group j (i) P(
It is determined whether the rule number k is larger than i, j). As a result, the rule number k is the total number of rules P(i,
j), in step 123 the consequent part yi=
The minimum fitness value u min (i, j,
k) is larger than the variable r. If the minimum value u min (i, j, 10 is larger than the variable r, the minimum value u m1n (
i, j, k) and the variable r are equal to each other, the process proceeds to step 125, and conversely, the minimum value u min
If (i, j, lc) is smaller than the variable r, then
The process directly proceeds to step 125 without passing through step 124. In step 125, the rules are numbered from k to 1 (+
On the condition that the number increases to 1, the process returns to step 122 and the above-described procedure is repeated again.

そして、ステップ122でルールの番号l(がルールの
総数P(i、j)よりも大きい場合、不要ルールの判定
を行なう。すなわち、第13図に示すように、まずステ
ップ131で第1番目のルルからスタートし、ステップ
132て後件部yi=Bj  (i)のグループに属し
ているルールの総数P(i、j)よりもルールの番号k
が大きいか否かを判断し、ルールの番号I(がルールの
総数P(i、j)よりも太きけれは、第11図のステッ
プ116に移り、ルールの番号がjからj+1に増える
ことを条件としてステップ114に移る。
Then, in step 122, if the rule number l (is larger than the total number of rules P(i, j), it is determined whether the rule is unnecessary. In other words, as shown in FIG. 13, first, in step 131, the first Starting from Lulu, in step 132, the rule number k is larger than the total number of rules P(i, j) belonging to the group with the consequent part yi=Bj (i).
If the rule number I (is larger than the total number of rules P(i, j), the process moves to step 116 in FIG. 11, and the rule number is increased from j to j+1. As a condition, the process moves to step 114.

一方、ルールの番号1(がルールの総数P (i。On the other hand, rule number 1 (is the total number of rules P (i.

j)よりも小さけれは、ステップ133で変数rが適合
度の最大値u  max (i、  j、  k)より
も大きいか否かを判断する。その結果、変数rが適合度
の最大値u  max (i、  j、  k)よりも
大きければ、後件部yi=Bj  (i)のグループに
関するl(番目のルールは、その後件部に関して必要で
ないと判定する(ステップ135)。そして、このに番
目のルールナンバーを判定結果バッファ部6に記憶しく
ステップ136)、そのあと、ステップ134に進む。
j), it is determined in step 133 whether the variable r is larger than the maximum value u max (i, j, k) of fitness. As a result, if the variable r is larger than the maximum fitness value u max (i, j, k), then the l(th rule for the group of consequents yi = Bj (i) is not necessary for the consequents). The next rule number is then stored in the determination result buffer section 6 (step 136), and the process then proceeds to step 134.

また、上記ステップ133で変数rが最大値u  ma
x (i、  j、  Ic)よりも小さけれは、ステ
ップ135.136を絆ることなく直接ステップ134
に進む。このステップ134では、ルールの番号がkか
らに+1に増えることを条件としてステップ132に戻
り、」−述したことと同様の手順を再び繰り返す。
Further, in step 133 above, the variable r is set to the maximum value u ma
If x is smaller than (i, j, Ic), directly perform step 134 without passing steps 135 and 136.
Proceed to. In this step 134, on the condition that the rule number increases from k to +1, the process returns to step 132 and repeats the same procedure as described above.

以上のように、この実施例に係るファジィ推論システム
では、まず推論制御部1て各ルールについての適合度を
すべて出力し、適合度バッファ部2にこれを記憶し、さ
らに各ルールごとに適合度の最大値、最小値を最大最小
バッファ部3に記憶する。次に、この適合度の最大値、
最小値をグループ分は決定ブロック部4に人力し、後件
部による適合度の最大値、最小値のグループ分けを行な
う。そして、このグループ分けの結果を不要ルル判定ブ
ロック部5に人力して、不要なルールナンバーを判定結
果バッファ部6に記憶する。これにより、ファジィ推論
を行なう際に、不要なルールを削除できるため、この削
除針だけ推論時間を短縮して推論速度を高めることがで
きる。
As described above, in the fuzzy inference system according to this embodiment, the inference control section 1 first outputs all the degrees of suitability for each rule, stores this in the suitability buffer section 2, and then calculates the suitability for each rule. The maximum and minimum values of are stored in the maximum/minimum buffer section 3. Then, the maximum value of this fitness,
The minimum value for each group is manually input to the decision block section 4, and the maximum value and minimum value of the degree of fitness are grouped according to the consequent part. Then, the result of this grouping is manually input to the unnecessary rule determination block section 5, and unnecessary rule numbers are stored in the determination result buffer section 6. As a result, when performing fuzzy inference, unnecessary rules can be deleted, so that the inference time can be shortened by the number of deleted rules, and the inference speed can be increased.

(発明の効果) 以上説明したように、この発明によれば、その構成をフ
ァジィ推論がなされたときのルール適合度をすべて出力
し、これらの適合度の最大値と最小値を用いることによ
り、複数のルールのうちで不要な部分を判定するように
したので、ソフトウェアまたはハードウェアによるファ
ジィ推論において、不要なルールの分たけ推論時間を縮
小して推論速度の向上を図ることができるという効果を
有する。
(Effects of the Invention) As explained above, according to the present invention, by outputting all the degrees of conformance to rules when fuzzy inference is performed on the configuration, and using the maximum and minimum values of these degrees of conformity, Since unnecessary parts of multiple rules are determined, in fuzzy inference using software or hardware, it is possible to improve the inference speed by dividing the unnecessary rules and reducing the inference time. have

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

第1図はこの発明に係るファジィ推論システムの一実施
例を示すブロック図、第2図は適合度の最大値、最小値
が格納された状態を示す説明図、第3図はルール1.2
の適合度が変化した状態を示す説明図、第4図は後件部
の最大値、最小値が変化した状態を示す説明図、第5図
は推論制御部および適合度バッファ部でのアルゴリズム
を示スフローチャート、第6図は最大最小バッファ部で
のアルゴリズムを示すフローチャート、第7図は最大最
小バッファ部における情報の格納状態を示す説明図、第
8図、第9図はそれぞれグループ分は決定ブロック部で
のアルゴリズムを示すフローチャート、第10図はグル
ープ分は決定ブロック部におけるクループ分は状態を示
す説明図、第11図、第12図および第13図はそれぞ
れ不要ルル決定ブロック部および判定結果バッファ部で
のアルゴリズムを示すフローチャートである。 1・・・推論制御部(適合度出力部) 2・・・適合度バッファ部 3・・・最大最小バッファ部 4・・・グループ分は決定ブロック部 5・・・不要ルール判定ブロック部
Fig. 1 is a block diagram showing an embodiment of the fuzzy inference system according to the present invention, Fig. 2 is an explanatory diagram showing a state in which the maximum and minimum values of fitness are stored, and Fig. 3 is a rule 1.2.
4 is an explanatory diagram showing a state in which the fitness of 6 is a flowchart showing the algorithm in the maximum/minimum buffer section, FIG. 7 is an explanatory diagram showing the storage state of information in the maximum/minimum buffer section, and FIGS. 8 and 9 are for determining the groups, respectively. A flowchart showing the algorithm in the block section, FIG. 10 is an explanatory diagram showing the state of the group section in the decision block section, and FIGS. 11, 12, and 13 are the unnecessary decision block section and the judgment results, respectively. 3 is a flowchart showing an algorithm in a buffer unit. 1... Inference control section (fitness output section) 2... Suitability buffer section 3... Maximum/minimum buffer section 4... Decision block section for groups 5... Unnecessary rule judgment block section

Claims (1)

【特許請求の範囲】[Claims] 1.各ルールの適合度をすべて出力する適合度出力部と
、 この適合度出力部からの出力を受けて各ルールの適合度
の最大値と最小値を記憶するバッファ部と、 上記適合度の最大値と最小値に基づいて不要なルールを
判定する不要ルール判定ブロック部と、を備えることを
特徴とするファジィ推論システム。
1. a suitability output unit that outputs all the suitability of each rule; a buffer unit that receives the output from the suitability output unit and stores the maximum and minimum suitability values of each rule; and the maximum suitability value. and an unnecessary rule determination block unit that determines unnecessary rules based on the minimum value.
JP11403390A 1990-04-27 1990-04-27 Fuzzy inference system Pending JPH0410133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11403390A JPH0410133A (en) 1990-04-27 1990-04-27 Fuzzy inference system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11403390A JPH0410133A (en) 1990-04-27 1990-04-27 Fuzzy inference system

Publications (1)

Publication Number Publication Date
JPH0410133A true JPH0410133A (en) 1992-01-14

Family

ID=14627351

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11403390A Pending JPH0410133A (en) 1990-04-27 1990-04-27 Fuzzy inference system

Country Status (1)

Country Link
JP (1) JPH0410133A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6114277A (en) * 1997-02-04 2000-09-05 Showa Denko K.K. Process for preparing cyano group-containing aromatic methylamines

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6114277A (en) * 1997-02-04 2000-09-05 Showa Denko K.K. Process for preparing cyano group-containing aromatic methylamines

Similar Documents

Publication Publication Date Title
US5566274A (en) Method and apparatus for setting membership functions, and method and apparatus for analyzing same
JPH04233634A (en) Fuzzy inference system
US5440672A (en) Apparatus for automatically generating and adjusting fuzzy reasoning rules based on reasoning error and method therefor
KR20220121568A (en) Scheduling apparatus and method of production process using reinforcement learning
US5495558A (en) Development supporting system and method for fuzzy inference devices
US5347615A (en) Rule generating and verifying apparatus for fuzzy control using temporary exclusion of a selected rule
Anderson et al. Reinforcement learning with modular neural networks for control
JPH0410133A (en) Fuzzy inference system
US5574826A (en) Memory organization method for a fuzzy logic controller and corresponding device
EP0513829B1 (en) Fuzzy reasoning processor and method, and rule setting apparatus and method
US5586217A (en) Min/max computing circuit for fuzzy inference
EP0660228B1 (en) An adaptation degree operation method and apparatus of membership function data
EP0355716A2 (en) Rule generating apparatus and method of generating rules for fuzzy inference
EP0628903A1 (en) Memory organization method for a fuzzy logic controller, and corresponding device
US20030109940A1 (en) Device, storage medium and a method for detecting objects strongly resembling a given object
JP2549441B2 (en) Membership function processor
US5841948A (en) Defuzzifying method in fuzzy inference system
EP0515209B1 (en) Method and apparatus for regulating membership functions and fuzzy inference system
EP0472921B1 (en) Fuzzy inference system
JP3211240B2 (en) Approximate inference device
JPH02260040A (en) fuzzy inference device
US4933893A (en) Arithmetic processing method and apparatus for performing arithmetic or logical operations within a minimum number of operation cycles
Hall et al. Scheduling and lot streaming in two‐machine open shops with no‐wait in process
EP0635152A1 (en) Neural network/fuzzy conversion device
Vanthienen et al. Restructuring and simplifying rule bases