Abstract:
An analogical inference apparatus for control system is disclosed in which, in order to be able to generate a control signal to a system, which is to be controlled, even when conditions to be premised are unknown, the degree of similarity between the detected control signal from a sensor incorporated in the system and one of the predetermined control conditions stored in a memory is estimated by estimation means, and then a control value is inferred in accordance with the result of the estimation.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to a control system for use in an automobile, in public systems (such as a water supply system, a sewerage system and a traffic system), in a power supply system, and in a nuclear power plant, and more particularly to an analogical inference apparatus for control of a system suitable for use in a case where a detected control condition is fuzzy and is different from predetermined control conditions. 
     The system control based upon fuzzy control rules has been discussed in an article entitled &#34;Speed Control of Automobile by Fuzzy Logic Controller&#34; by Maeda et al. (Proceeding of 9th system symposium, Aug., 1983, pages 7 to 10). The article describes a simple system control which is achieved by six control rules including a control rule that says &#34;if the control deviation is positive, make the change of the quantity of operation positive&#34;. This control method, however, pays no attention to a case where a control condition corresponding to the condition that &#34;if the control deviation is positive&#34;, is absent. 
     SUMMARY OF THE INVENTION 
     An object of the present invention is to provide an analogical inference apparatus for a control system, in which even when a control precondition (hereinafter referred to as &#34;control condition&#34;) is different from predetermined control conditions, a control operation can be performed by estimating the similarity between the control condition and a predetermined control condition and analogically inferring a cotrol value on the basis of the similarity. 
     In order to attain the above object, according to the present invention, there is provided an analogical inference apparatus control system in which a control condition detected by an operator or sensor is compared with predetermined control conditions, and one of two kinds of operations is performed in accordance with the result of comparison, that is, in a case where the detected control condition is included in the predetermined control conditions, a control operation is performed on the basis of a predetermined control rule, and in a case where the detected control condition is not included in the predetermined control conditions, the degree of similarity between the detected control condition and a predetermined control condition is estimated, and a control value obtained from a predetermined control rule corresponding to the predetermined control condition is modified and inferred in accordance with the degree of similarity. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram showing an embodiment of an analogical inference control system according to the present invention. 
     FIG. 2 is a graph showing examples of fuzzy control rules. 
     FIG. 3 is a graph showing the logical sum of respective operation parts of two fuzzy control rules. 
     FIG. 4 is a graph showing those modified versions of the operation part of a fuzzy control rule which are formed in accordance with modifiers. 
     FIG. 5 is a graph showing those modified versions of the operation part of a fuzzy ccntrol rule which are formed in accordance with a modifier and/or the degree of similarity. 
     FIG. 6 is a flow chart showing the procedure in the system control according to the presen invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     Now, explanation will be made of an embodiment of an analogical inference apparatus for a control system according to the present invention, by reference to FIGS. 1 to 6. 
     FIG. 1 shows the construction of the present embodiment. Referring to FIG. 1, a signal 30 from the environment 10 of a system 20 or from the system 20 itself is detected by a person or detector 40, which sends a signal 50 to a control condition comparing device 60. The device 60 checks whether or not a control condition which is detected by the person or detector 40, and is indicated by the signal 50, is included in predetermined control conditions which are stored in a predetermined condition storing device 80 and which are sent to the comparing device 60 by a signal line 70. In a case where the detected control condition is included in the predetermined control conditions, the detected control condition is sent to a fuzzy controller 150 by a signal 90. While, in a case where the detected control condition is not included in the predetermined control conditions, the detected control condition is sent to a similarity estimation device 110 by a signal line 100. The similarity estimation device 110 estimates the degree of similarity between the detected control condition and an appropriate one of the predetermined control conditions, and sends the degree of similarity to an analogical inference controller 130 by way of a signal line 120. A control rule which is one of a plurality of control rules stored in a control rule storing device 140 and which corresponds to the degree of similarity is sent to the analogical inference controller 130 by a signal line 170. The analogical inference controller 130 infers analogically a control value on the basis of the control rule from the storing device 140 and the degree of similarity, and sends the control value to a controlled device 200 by a signal 180, to operate the device 200. The fuzzy controller 150 calculates a control value on the basis of the detected control condition and a control rule which is sent from the control rule storing device 140 to the fuzzy controller 150 by a signal 160 and which corresponds to the degree of similarity, and sends the control value to the controlled device 200 by a signal 190, to operate the device 200. In other words, the fuzzy controller 150 is provided for a case where the detected control signal is included in the predetermined control conditions, and the analogical inference controller 130 is provided for a case where the detected control condition is not included in the predetermined control conditions. 
     The operation of each part of the present embodiment will be explained below in detail, for a case where the system 20 is an automobile. 
     The environment 10 indicates weather, the condition of a road surface, and other conditions, for example. The signal 30 indicating the state of each of these environmental elements is detected by the detector 40 or a person. For example, weather conditions such as fine weather, a hard rain, a hard snow and a heavy wind are detected, and road conditions such as an asphalted road, a gravel road and a rough road are detected. Further, various conditions of the system 20 (namely, the automobile) such as the velocity, acceleration, inclination and vibration of the automobile and the rotational angle of a handle, are detected. The signal signals 50 indicating the above conditions are sent from the detector 40 to the control condition comparing device 60. 
     The predetermined condition storing device 80 stores predetermined control conditions in the form of IF-THEN rules, for example, the conditional clause of IF-THEN rule that &#34;if the road is a superhighway, then the pressure of an air spring is made as low as 20 atm., to slightly reduce the spring action and to give a comfortable drive&#34;, and the conditional clause of another IF-THEN control rule that &#34;if the rain falls hard, then the speed of the automobile is made as low as 30 km/hr&#34;. In general, the rule is expressed in the form of &#34;if x→A then y→B&#34;. 
     In the control condition comparing device 60, a predetermined control condition which is stored in the predetermined condition storing device 80 and is sent to the control condition comparing device 60 by the signal 70, that is, a predetermined control condition x→A is compared with a detected control condition z→C. 
     When it is judged by the comparing device 60 that x=z and A=C, the detected control condition z→C is sent to the fuzzy controller 150 by the signal line 90. Otherwise, the detected control condition z→C is sent to the similarity estimation device 110 by the signal line 100, to estimate the degree of similarity. 
     Although the degree of similarity may be determined by a person, a method of calculating the degree of similarity from the detected control condition and a predetermined control condition, will be explained below. This method utilizes the overlapping of conceptional structures. For example, the concept of an apple has a dimension which is formed of a plurality of dimensions such as color, shape and taste, and the concept of speed has a dimension which is formed of the dimension of length and the dimension of time. 
     Now, let us calculate the degree of similarity between the speed x and the distance z, by way of example. The degree g(x, z) of similarity between the speed x and the distance z is defined as follows: ##EQU1## here f(i) indicates the sum of the absolute values of the exponents of the dimensions included in the concept i. The dimension of the speed x is given by length divided by time [LT -1  ], and hence f(x) is equal to two (2). Further, f(i, j) in the equation (1) indicates the absolute value of the exponent of the common dimension included in both the concept i and the concept j. In a case where a plurality of common dimensions are included in the concept i and the concept j, the function f(i, j) indicates the sum of the absolute values of exponents of the common dimensions. In the present example, the common dimension is lenght [L], and hence f(x, z) is equal to one (1). Thus, the degree g(x, z) of similarity between the speed x and the distance z is given by the following equation: ##EQU2## 
     The above value &#34;0.5&#34; is sent to the analogical inference controller 130 by the signal line 120. In the analogical inference controller 130, a control value is inferred from the degree of similarity and a control rule, which is stored in the control rule storing device 140, is sent to the analogical inference controller 130 by the signal line 170, for example, a control rule that &#34;if x→A then z→C&#34;. 
     In order to facilitate the understanding of an analogical inference method for a control system, a fuzzy control method will be explained prior to the explanation of the analogical inference method. 
     In fuzzy control, the fuzzy controller 150 carries out the following processing on the basis of the signal on line 90 and the signal on line 160 which indicates a control rule stored in the control rule storing device 140. 
     Now, let us suppose that the control rule storing device 140 stores two control rules shown in FIG. 2, that is, a control rule R1 that &#34;if x→A 1 , then y→B 1  &#34; and another control rule R2 that &#34;if x→A 2  then y→B 2  &#34;. Usually, the terms A 1 , A 2 , B 1  and B 2  are qualitatively expressed. For example, expressions such as &#34;the road is rough&#34; and &#34;the spring action is slightly reduced&#34;, are used. In general, these terms can be expressed by membership functions in the fuzzy set theory, as shown in FIG. 2. 
     Now, let us suppose that the signal on line 90 indicates x=x o . Then, a function B 1   *  (y) for the control rule R1 is calculated by the following equation: 
     
         B.sub.1.sup.* (y)=A.sub.1 (x.sub.o)·B.sub.1 (y)   (2) 
    
     where A 1  (x) indicates a membership function in a fuzzy set A 1  and B 1  (y) indicates a membership function in a fuzzy set B 1 . The function B 1   *  (y) is indicated by a dot-dash line in FIG. 2. 
     In a case where a control rule includes a plurality of conditional clauses &#34;x→A 1  &#34;, &#34;v→G 1  &#34; and so on, a minimum operation A 1  (x o )ΛG 1  (v o )Λ----, namely, an operation for determining a minimum value of A 1  (x o ), G 1  (v o ) and so on, is performed, and then the product of {A(x o )ΛG 1  (v o )Λ----} and B 1  (y) is calculated to obtain the function B 1  (y). 
     A function B 2   *  (y) for the control rule R2 can be calculated in the same manner as the function B 1   *  (y). The function B 2   *  (y) is indicated by another dot-dash line in FIG. 2. 
     Next, a function F=B 1   *  UB 2   *  is determined as indicated by a dot-dash line in FIG. 3. A value Y o  which is sent to the controlled device 200 by the signal line 190 to control the automobile, is given by the following equation: ##EQU3## 
     Now, let us suppose that the signal 50 applied to the control rule comparing device 60 indicates a control condition &#34;z→C&#34; which is different from the predetermined control conditions. Further, let us suppose that only the control rule R1 is stored in the control rule storing device 140 as a control rule which corresponds to the degree of similarity and is sent to the analogical inference controller 130 by the signal 170. In a case where there are a plurality of control rules as those which correspond to the degree of similarity, an appropriate control value can be determined by superposition in the same way as the following inferring method. 
     An analogical inference control operation will be explained for nine cases which are classified by the similarity between x and z and the similarity between A 1  and C. It is to be noted that when it is hard to detect the terms z and C by instruments, these terms are detected by a person to determine the degree of similarity between x and z and the degree of similarity between A 1  and C. 
     CASE (1): A case where the item x is equal to the item z and the state A 1  is equal to the state C. This case corresponds to the fuzzy control, and thus a control value is determined by the fuzzy controller 150. 
     CASE (2): A case where the item x is equal to the item z and the state A 1  is similar to the state C. An example of the above is a case where &#34;x→A.sub. 1 &#34; is a condition that the rain falls hard, and &#34;z→C&#34; is a condition that the rain falls extremely hard. The terms &#34;extremely&#34;, &#34;somewhat&#34;, &#34;fairly&#34;, and so on are generally called a &#34;modifier&#34;. In the above case, the membership function B 1  shown in FIG. 2 is modified by a factor h corresponding to the modifier. FIG. 4 shows examples of a modified membership function (B 1 ) h . In a case where a control rule that if the rain falls hard, then the speed of automobile is reduced, is stored in the control rule storing device 140, and a control condition that the rain falls extremely hard, is detected, the analogical inference controller 130 infers an operation that the speed of automobile is reduced extremely. Thereafter, a control value is determined in the same manner as in the fuzzy control operation. 
     CASE (3): A case where the item x is equal to the item z but the state A 1  bears no similarity to the state C. An example of the above is a case where &#34;x→A 1  &#34; is a condition that the rain falls hard and &#34;z→C&#34; is a condition that a gentle rain falls. In this case, the detected control condition is considered to bear no similarity to the stored control condition, and thus the factor h is made equal to zero. The modified version of the membership function B 1  (y) is given by {B 1  (y)} h  as shown in FIG. 4. In the above case, the equation (3) containing the modified membership function {B 1  (y)} h  becomes indefinite, that is, the value y o  is indefinite. In other words, when the detected control condition is different from the stored control condition, the value y o  cannot be determined, and thus it is impossible to obtain an appropriate result. Accordingly, when the value y o  cannot be determined, the state quantity y is returned to a reference value y s , or is kept at the present value. 
     CASE (4): A case where the item x is similar to the item z and the state A 1  is equal to the state C. An example of the above is a case where &#34;x→A 1  &#34; is a condition that the rain falls hard, and &#34;z→C&#34; is a condition that the sleet falls hard. In this case, the membership function B 1  (y) is converted into {B 1  (y)} g , where g indicates the degree of similarity defined by the equation (1) and satisfies a relation 0≦g≦1. Thus, the operation part (that is, &#34;y→B 1  &#34;) of the control rule becomes fuzzy in accordance with the degree of similarity, as shown in FIG. 5. Thereafter, a control value is determined in the same manner as in the fuzzy control operation. 
     CASE (5): A case where the item x is similar to the item z and the state A 1  is similar to the state C. An example of the above is a case where &#34;x→A 1  &#34; is a condition that the rain falls hard and &#34;z→C&#34; is a condition that the sleet falls fairly hard. In this case, the membership function B 1  (y) is converted into {(B 1  (y)} g ·h, where g indicates the degree of similarity and h is the factor corresponding to a modifier. Thereafter, a control value is determined in the same manner as in the fuzzy control operation. An example of the modified membership function {B 1  (y)} g ·h is shown in FIG. 5. 
     CASE (6): A case where the item x is similar to the item z but the state A 1  bears no similarity to the state C. An example of the above is a case where &#34;x→A 1  &#34; is a condition that the rain falls hard and &#34;z→C&#34; is a condition that a gentle sleet falls. In this case, the factor h is zero, and hence the modified membership function (B 1  (y)} g ·h is equal to one. Accordingly, the value y o  becomes indefinite as in the CASE (3). 
     CASE (7): A case where the item x bears no similarity to the item z but the state A 1  is equal to the state C. An example of the above is a case where &#34;x→A 1  &#34;  is a condition that the rain falls hard and &#34;z→C&#34; is a condition that the wind blows hard. In this case, the degree g of similarity is zero, and hence the value y o  becomes indefinite as in the CASE (3). 
     CASE (8): A case where the item x bears no similarity to the item z but the state A 1  is similar to the state C. In this case, the degree g of similarity is zero, and hence the value y o  becomes indefinite as in the CASE (3). 
     CASE (9): C case where the item x bears no similarity to the item z and the state A 1  bears no similarity to the state C. In this case, the degree g of similarity is zero, and hence the value y o  becomes indefinite as in the CASE (3). 
     FIG. 6 is a flow chart showing an example of the procedure in the analogical inference apparatus for control system according to the present invention. The present embodiment shown in FIG. 1 can perform an analogical inference operation in accordance with the flow chart of FIG. 6. 
     When used for controlling an automobile, the present embodiment can exhibit the following effects. 
     (1) Even in a case where the detected control condition is different from control conditions stored in the predetermined condition storing device, if the detected condition is similar to one of the stored control conditions, the automobile can be controlled on the basis of the detected control condition. 
     (2) It is possible to perform a control operation by analogical inference, and hence the number of control rules stored in the control rule storing device can be made smaller, as compared with a conventional control system. 
     (3) Even when a control condition has fuzziness, it is possible to control the automobile. 
     (4) Even when a control condition includes a fuzzy item such as comfortableness in driving, the automobile can be controlled. 
     In a case where the present embodiment is applied to public systems (such as a water supply system, a sewerage system and a traffic system), a power supply system, and a nuclear power plant, the above-mentioned control rules are prepared in accordance with these systems and plant, and then a control operation is performed in the same manner as in the automobile. 
     As can be seen from the foregoing explanation, the present invention has the following advantages. 
     (a) A control value can be determined by analogical inference on the basis of the degree of similarity, and hence not only the number of control rules used can be reduced but also various situations and complicated problems can be treated. 
     (b) The number of control rules stored in a memory device can be reduced, and hence the memory device is not required to have a large capacity. 
     (c) Only typical control rules are used for performing an analogical inference for control operation, and hence the efficiency in preparing control rules is improved. 
     (d) Even when a detected control condition is different from predetermined control conditions, a necessary control operation can be performed by inference. 
     Thus, the present invention can improve not only the efficiency in designing control rules but als the utilization efficiency of control rules.