FUZZY CONTROL APPARATUS CAPABLE OF CHANGING RULE AND ITS OPERATION METHOD, AND CONTROL SYSTEM SWITCH-CONTROLLED BY FUZZY INFERENCE AND ITS CONTROL METHOD

Abstract: In a fuzzy control apparatus capable of changing the rule during its operation, a sample-and-hold circuit (13) stores the fuzzy inference output of a fuzzy control circuit (10) immediately before the rule change; and an output switching circuit (20) synthesizes a fuzzy control output from the fuzzy inference output stored immediately before the rule change and the fuzzy inference output after the rule change so that the ratio of the fuzzy inference output immediately before the rule change to the fuzzy control output may decrease with the lapse of time from the rule change, in other words, the ratio of the fuzzy inference output after the rule change to the fuzzy control output may increase, and outputs only the fuzzy inference output after the rule change as the fuzzy control output after a predetermined period of time from the rule change. In this manner, the drastic change of the output at the time of the rule change can be prevented and smooth switching can be made.

Description: Technical Field This invention relates to a fuzzy control apparatus, and to a method of operating the same, in which rules are capable of being changed during execution (operation) of fuzzy reasoning. Background Art A fuzzy control apparatus is provided with an input of a controlled variable from a controlled object, executes so-called modus ponens reasoning, and outputs a manipulated variable (a fuzzy-control output) to be applied to the controlled object. Fuzzy reasoning often is expressed by control rules ("If..., then..." rules) in an "If..., then..." format. A fuzzy control apparatus is available in which the control rules can be changed by a manual or remote operation during execution (operation) of fuzzy reasoning. In a fuzzy control apparatus of this kind, there is the possibility that the fuzzy-control output will vary suddenly according to the content of a changed rule. When a fuzzy-control output undergoes a sudden change, there is the danger that the controlled object will be adversely affected. From GB-A-2 211 324 a recurrent type inference apparatus is known in which a synthesized membership function is synthesized by combining weighted membership functions with a previously-synthesized membership function synthesized in a previous iteration cycle. From EP-A-0 268 182 a fuzzy computer including a fuzzy inference engine having a fuzzy membership-function generating circuit using a switch matrix is known. Disclosure of the Invention An object of the present invention is to provide a fuzzy control apparatus, and a method of operating the same, in which a fuzzy-control output can be varied smoothly even in a case where a rule is changed during operation. Another object of the present invention is to provide a fuzzy control apparatus and a method of operating the same, in which a rule is capable of being changed only under a condition that a control output may not be suddenlv varied. A control apparatus according to the invention is as defined in claims 1 and 5. A corresponding method of operating a control apparatus is as defined in claims 3 and 7. In accordance with the present invention as defined in claims 1 and 3, when a rule in the fuzzy control apparatus is changed, the fuzzy reasoning output prevailing just prior to the rule change and the fuzzy reasoning output prevailing following the rule change are combined. In the resulting combination, the percentage of the fuzzy reasoning output prevailing following the rule change gradually increases, while the percentage of the fuzzy reasoning output prevailing just prior to the rule change gradually decreases. As a result, the fuzzy-control output varies smoothly from the value immediately preceding the rule change to the value following the rule change, and therefore a sudden variation is avoided. Accordingly, the controlled object is not adversely affected. Further, since the output of fuzzy reasoning is processed, the foregoing can be accomplished irrespective of the number of rules and the number of inputs. Accordingly, it is unnecessary to modify the construction of the fuzzy reasoning means and therefore the fuzzy control apparatus does not become more complicated in construction. In accordance with the present invention as defined in claims 5 and 7, when a command for changing a rule in the fuzzy control apparatus is applied, it is determined whether the suitability of an input signal with respect to the membership function of an antecedent falls within allowable limits for a rule change. The rule change is carried out only if the suitability falls within the allowable limit, i.e., only when it is determined that the fuzzy reasoning output will not vary suddenly even if the rule change is made. As a consequence, the controlled object is prevented from being adversely affected by a sudden variation in the control output due to the rule change. If a new rule to be changed is set, it is determined automatically whether a sudden variation will not be produced in the fuzzy reasoning output even when the rule is changed. If this condition is satisfied, the rule change is executed. As a result, troublesome monitoring and checking are no longer necessary, and the time required for a rule change can be shortened. Brief Description of the Drawings Figs. 1 through 3 illustrate a first embodiment of a fuzzy control apparatus, in accordance with the present invention, in which a rule is capable of being changed, wherein ; Fig. 1 is a block diagram illustrating the electrical construction of the fuzzy control apparatus ; Fig. 2 is a timing chart illustrating the operation of each circuit in Fig. 1 ; and Fig. 3 is a flowchart, which illustrates an embodiment wherein the present invention is realized by software, showing the processing procedure of operation control of the fuzzy control apparatus ; Figs. 4 through 10 illustrate a second embodiment of a fuzzy control apparatus, in accordance with the present invention, in which a rule is capable of being changed, wherein : Fig. 4 is a block diagram illustrating the electrical construction of the fuzzy control apparatus ; Fig. 5 is a circuit diagram illustrating some of the circuits contained in an inference unit, shown in Fig. 4, as well as the mutual relationship among these circuits ; Fig. 6 is a circuit diagram showing the concrete construction of a membership-function circuit ; Fig. 7 is a graph showing input/output characteristics of the membership-function circuit ; Fig. 8 is a circuit diagram showing a fuzzy membership-function generating circuit realized using a switch matrix ; Fig. 9 illustrates the concrete construction of a symbol in Fig. 8; and Fig. 10 is a flowchart, which illustrates an embodiment wherein the present invention is realized by software, showing the processing procedure of operation control of the fuzzy control apparatus; Best Mode for Carrying Out the Invention First Embodiment Fig. 1, which illustrates an embodiment of a fuzzy control apparatus, in accordance with the present invention, in which a rule is capable of being changed, is a block diagram sowing the electrical construction of the fuzzy control apparatus. Fig. 2 is a timing chart for describing the operation of each circuit in Fig. 1. A fuzzy control circuit 10, which is referred to also as a fuzzy controller or fuzzy reasoning unit, etc., executes fuzzy reasoning in accordance with a predetermined rule ("If..., then..." rule). The fuzzy control circuit 10 includes not only special-purpose devices (either of analog or digital type) for fuzzy reasoning (for example, see "Nikkei Electronics", July 27, 1987, pp. 148 - 152, published by Nikkei McGraw-Hill), but also binary-type computers and processors programmed so as to execute fuzzy reasoning. The fuzzy control circuit 10 performs fuzzy reasoning, in accordance with a set rule, in dependence upon a given control input (a controlled variable or an offset between a target value and a controlled variable), and generates a fuzzy reasoning output which is the result of this reasoning. The fuzzy reasoning output is applied to a sample/hold circuit 13 and to a coefficient unit (or amplifier circuit) 22 of an output changeover circuit 20, described below. The sample/hold circuit 13 comprises a switch circuit 14, a capacitor 15 and a buffer amplifier 16. The input terminal of the buffer amplifier 16 is connected to the output terminal of the fuzzy control circuit 10 via a switch circuit 14, and to the capacitor 15, one end of which is grounded. The switch circuit 14 is on/off controlled by a control signal provided by a timing control circuit 12, described later. The output of the sample/hold circuit 13 is applied to a coefficient unit (or amplifier circuit) 21 of the output changeover circuit 20. A control rule for fuzzy reasoning in the fuzzy control circuit 10 is set by a rule-setting switch unit 11. The rule set by the rule-setting switch unit 11 is read in the fuzzy control circuit 10 when a switch Sw is turned on. Changing the control rule also is possible as by switch changeover within the rule-setting switch unit 11. The switch Sw is turned on by a setting read-in signal outputted by the timing control circuit 12. The output changeover circuit 20 comprises a function generating circuit 23, the aforementioned coefficient units 21, 22, and an adder 25 which adds the outputs of the coefficient units 21, 22. The function generating circuit 23 outputs a function signal which rises sharply in synchronism with a trigger signal provided by the timing control circuit 12, and which then gradually diminishes in level with the passage of time (e.g., a signal which declines linearly, exponentially or in a step-like manner). The function signal outputted by the function generating circuit 23 is applied to the coefficient units 21 and 22, whose coefficients (or gains) α and 1-α are changed by the function signal, and also applied to the timing control circuit 12. The coefficient α takes on values range from 1 to 0 and varies in the same manner as the above-mentioned function signal. The function generating circuit 23 is provided with a variable resistor 24 for adjusting the time constant of the outputted function signal. As a result, the rate of the decrease in the function value with respect to elapsed time can be determined in suitable fashion. The output of the adder 25 is the control output (manipulated variable) applied to the controlled object. When the control rule is changed during the operation of the fuzzy control circuit 10, the operator changes over the switch in the rule-setting switch unit 11 in such a manner that the desired rule is set. A modification trigger signal is applied to the timing control circuit 12 at the moment the rule is to be changed. The timing control circuit 12 applies a control signal to the switch circuit 14 of the sample/hold circuit 13 in synchronism with the leading edge of the modification trigger signal. As a result, the switch circuit 14 is turned off. Accordingly, the fuzzy reasoning output (voltage) of the fuzzy control circuit 10 prevailing just prior to turn-off of the switch circuit 14 (i.e., just prior to the rule change) is held in the capacitor 15. Next, the setting read-in signal is applied to the switch Sw in synchronism with the trailing edge of the modification trigger signal. As a result, the switch Sw is turned on temporarily and the new rule set in the rule-setting switch unit 11 is accepted by the fuzzy control circuit 10. From this point onward, the fuzzy control circuit 10 executes fuzzy reasoning in accordance with the newly set rule. Further, the timing control circuit 12 applies a trigger signal to the function generating circuit 23 at the trailing edge of the modification trigger signal. The circuit 23 generates the function signal, which rises instantaneously (at which time the coefficient α becomes 1) and then gradually decays. The fuzzy-control output which prevailed just prior to the rule change, and which is being held in the sample/hold circuit 13, is applied to the coefficient unit 21. The fuzzy reasoning output (the output following the rule change) of the fuzzy control circuit 10 is applied to the coefficient unit 22. The coefficient unit 21 delivers the fuzzy reasoning output, which prevailed just prior to the rule change, upon multiplying it by the coefficient α. The coefficient unit 22 delivers the fuzzy reasoning output, which prevails following the rule change, upon multiplying it by the coefficient (1-α). The outputs of the coefficient units 21 and 22 are applied to the adder 25, which adds these outputs and delivers the sum as the fuzzy-control output. The coefficient α decreases monotonously with the passage of time, as shown in Fig. 2. Consequently, when a rule is changed, the percentage of the control output from the output changeover circuit 20 that is occupied by the fuzzy reasoning output prevailing just prior to the rule change gradually diminishes with the passage of time, while the percentage of the control output that is occupied by the fuzzy reasoning output following the rule change gradually increases with the passage of time. Accordingly, the control output does not vary suddenly with a change in the rule but instead varies smoothly from the value just prior to the rule change to the value following the rule change. When the function signal (coefficient α) falls below a predetermined threshold level at elapse of a fixed time from the moment of the rule change, the control signal which the timing control circuit 12 is applying to the switch circuit 14 of the sample/hold circuit 13 is terminated, and therefore the switch 14 is turned on. As a result, the fuzzy reasoning output of the fuzzy control circuit 10 is applied to the sample/hold circuit 13 at all times. Further, since the coefficient α becomes zero or almost zero, the fuzzy reasoning output of the fuzzy control circuit 10 which prevails following the rule change is delivered as the fuzzy-control output through the coefficient unit 22 and adder 25. Fig. 3 is a flowchart illustrating an example of the procedure of the operation of the fuzzy control apparatus in a case where the present invention is realized by software in a computer system. In this case, the fuzzy reasoning also is realized by the software of the computer system. First, a parameter α, which decides the combining ratio (the percentage or weighting for adding of the fuzzy reasoning output just prior to the rule change to the fuzzy reasoning output following the rule change, is cleared (step 31). Next, it is determined (step 32) whether the rule of fuzzy reasoning is to be changed (i.e., whether there is an input of a rule-change command). When the rule is to be changed (YES at step 32), the parameter α is set at 1 and a fuzzy reasoning value O H prevailing just prior to the rule change is stored (steps 33, 34). The rule is then changed (step 35). In a case where there is no rule-change command (inclusive also of a case where a rule change has already been made) (NO at step 32), fuzzy reasoning is carried out in dependence upon the input value, and this reasoning value O F is stored (step 36). Next, the value of the fuzzy-control output is calculated in accordance with the equation α·O H + (1-α)·O F using the parameter α, the stored reasoning value O H prevailing just prior to the rule change, and the current reasoning value O F , and the calculated value is delivered as the control output (step 37). Next, it is determined whether the parameter α is 0 (step 38). If the parameter α is not 0 (NO at step 38), then minute quantity Δα a (0<Δα<1) is subtracted from the current parameter α and the result of the subtraction operation is set as a new parameter α (step 39). It is then determined whether the new parameter α is negative (step 40). If the parameter α is positive (NO at step 40), the program returns to step 32 and the processing of steps 36 - 39 is repeated. As a result, the parameter α gradually decreases with the passage of time. Therefore, in the fuzzy-control output, there is a decrease in the percentage of the fuzzy reasoning output prevailing just prior to the rule change and an increase in the percentage of the fuzzy reasoning output which follows the rule change. When the new parameter α becomes negative, α is forcibly set to 0 (step 41). In a case where the parameter α is 0 (YES at step 38), processing for updating the parameter α is not carried out and the program returns to step 32 so that the processing of steps 36, 37 is repeated. In this case, the fuzzy reasoning value O F prevailing after the rule change becomes the fuzzy-control output, which is delivered. In accordance with the processing procedure of the flowchart shown in Fig. 3, the parameter α gradually decreases incrementally at the fixed value Δα. However, this does impose a limitation upon the invention, for it will suffice if the parameter decreases monotonously. Accordingly, it goes without saying that an arrangement may be adopted in which the parameter α gradually decreases exponentially, by way of example. Second Embodiment Another embodiment of a fuzzy control apparatus in which a rule is capable of being changed according to the present invention will now be described. This embodiment relates to a fuzzy controller of the type in which a membership function is expressed by a voltage distribution which appears on a plurality of signal lines. Here the invention is applied to an arrangement which performs fuzzy reasoning by a MIN/MAX operation. Fig. 4 is a block diagram illustrating the fuzzy control apparatus of this embodiment. N-number of inference units 61 -6n, which correspond to the number of set control rules, are provided. Each inference unit 6i (i = 1 - n) is equipped with membership function circuits (hereinafter referred to as MFCs) 70a, 70b, 70c, the number of which (three in this embodiment) is equal to the number of types of input variables x a , x b , x c . These MFCs 70a - 70c, which represent fuzzy sets described by the antecedent in a control rule, output membership-function values (degrees of suitability) with regard to the input variables. The outputs of the MFCs 70a - 70c enter a MIN circuit 71, which subjects these signals to a MIN operation. A circuit (hereinafter referred to as an MFG) 110, which generates a membership function representing a fuzzy set described by the consequent in a control rule, is provided. The MFG 110 outputs a membership function represented by voltages distributed on a plurality (m; for example, 25) outputs lines. The membership function is applied to a MIN circuit (a truncation circuit) 72. The MIN circuit 72 executes a MIN operation between each output value representing the membership function provided by the MFG 110, and the result of the MIN operation outputted by the MIN circuit 71, and outputs a membership function, which represents the results of reasoning, in the form of voltage signals distributed on the m-number of lines (output A i : i = 1 - n). The results of reasoning A1 - An outputted by the inference units 61 - 6n are applied to a MAX circuit 120. After these results are subjected to a MAX operation, final results of reasoning B are obtained as voltage signals similarly distributed on m-number of lines. A center-of-gravity circuit 130 is provided in order to obtain a definite output (a non-fuzzy output) from the results of reasoning B. In each inference unit 6i, the membership functions in the MFCs 70a - 70c and MFG 110 are set to predetermined shapes and at predetermined positions in dependence upon the control rule. The shape and position of a membership function are capable of being changed. The rule change is realized by changing either the shape or position of a membership function, or both. The positions of the membership functions of the MFCs 70a - 70c are decided by a label voltage V LA , which is outputted by each of label-voltage generating circuits 90a, 90b, 90c. It is possible to change a control rule even during execution of fuzzy reasoning. The three membership functions of the antecedent are set or changed by setting in setting digital switch units 75a, 75b, 75c codes (referred to as labels) of membership functions to be set (or of new membership functions to be changed). These rule codes are latched in a latch circuit 80 at a timing allowed by a rule-change inhibiting control circuit 100, whence they are applied to corresponding label-voltage generating circuit 90a, 90b, 90c, respectively. The setting of the code of the membership function of the consequent is carried out using a digital switch unit 75d. Under the control of the control circuit 100, the code set in the digital switch unit 75d is applied to the MFG 110 after being similarly latched in the latch circuit 80, and the change in the consequent membership function for changing the control rule is carried out. Fig. 5 illustrates a concrete example of the arrangement of, as well as the relationship among, the digital switch unit 75a, the data latch circuit 80, the label-voltage generating circuit 90a, the rule-change inhibiting control circuit 100, and the MFG 110. The code of an antecedent membership function is represented by four bits, and therefore the digital switch unit 75a includes four switches Sw1 - Sw4. The same is true for the other digital switch units 75b, 75c. One ends of the switches Sw1 - Sw4 are connected together and grounded. The other ends of the switches Sw1 - Sw4 are connected to D-input terminals of respective D-type flip-flops 80a - 80d contained in the data latch circuit 80. The other ends of the switches Sw1 - Sw4 are further connected to positive voltage terminals via pull-up resistors R1 - R4, respectively. As a result, in conformity with the on/off states of the switches Sw1 - Sw4, L-, H-level input signals are applied to the D-input terminals of the D-type flip-flops 80a - 80d. The inference unit 61 includes the rule-change inhibiting control circuit 100. The rule-change inhibiting control circuit 100 applies a new rule, which has been set in the digital switch unit 75a, etc. during execution of fuzzy reasoning, to the MFCs 70a - 70c and MFG 110, etc., under conditions in which a sudden fluctuation will not be produced in the control output, and forbids a change in the rule of the MFCs and MFG in a case where the control output will experience a sudden fluctuation. The rule-change inhibiting control circuit 100 is constituted by a comparator 101 and a reference-voltage circuit 102. A voltage representing the result of the MIN operation outputted by the MIN circuit 71 is applied to a positive input terminal of the comparator 101, and a reference voltage outputted by the reference-voltage circuit 102 enters a negative input terminal of the comparator. The output of the comparator 101 is applied to a timing input terminal G of each of the D-type flip-flops 80a - 80d via an inverter 85. When the result of the MIN operation outputted by the MIN circuit 71 is higher than the reference voltage, the rule change by the digital switch unit 75a, etc., causes the fuzzy-control output to vary in a sudden manner. Therefore, in order to prevent this, the H-level output signal of the comparator 101 is applied as an L-level signal to each G input terminal of the D-type flip-flops 80a - 80d via the inverter 85. Accordingly, the flip-flops 80a - 80d will not operate. In a case where the result of the MIN operation outputted by the MIN circuit 71 is lower than the reference voltage, it is judged that the rule change by the digital switch unit 75a, etc., will not cause a sudden variation in the fuzzy-control output. At such time, the output of the comparator 101 is the L level, and therefore an H-level timing signal is applied to the flip-flops 80a - 80d. The flip-flops 80a - 80d latch the code set in the digital switch unit 75a and apply the code L 1 - L 4 to the label-voltage generating circuit 90a. The rule codes set in the other digital switch units 75b, 75c also are similarly applied to the corresponding label-voltage generating circuits 90b, 90c, respectively, through the latch circuit 80 only in a case where the rule change is allowed by the control circuit 100. The membership function of the consequent is represented by a code of three bits, and therefore the digital switch unit 75d includes three switches. The code that has been set in the digital switch unit 75d also is inputted to the MFG 110 as codes C 1 , C 2 , C 3 through the latch circuit 80 only in a case where the rule change is allowed by the control circuit 100. The label-voltage generating circuit 90a is constructed by a decoder 91, a switch array 92 and a reference-voltage generating circuit 93. A selecting circuit is constructed by the decoder 91 and the switch array 92. The reference-voltage generating circuit 93 generates seven types of predetermined label voltages (reference voltages) -E 3 through E 3 and outputs these voltages on respective ones of seven different lines. These label voltages enter the switch array 92. The output voltage of an analog biasing circuit (an arbitrary-voltage generating circuit) 76 which outputs an arbitrary voltage (though a voltage between -E 3 and E 3 ) also enters the switch array 92. The four-bit digital code L 3 , L 2 , L 1 , L 0 is applied to the decoder 91, as mentioned above. The decoder 91 decodes the code and controls the switch array 92. Specifically, among the eight types of input voltages inclusive of the output voltage of the analog biasing circuit 76 inputted to the switch array 92, that designated by the digital code L 3 - L 0 is outputted from the switch array 92 as the label voltage V LA . The label voltage V LA is supplied to the MFC 70a. Basically, in accordance with a triangular membership function having a peak at the position of the applied label voltage V LA , the MFC 70a generates an output voltage V OUT representing the corresponding membership-function value when an input voltage (a voltage representing an input variable) V IN is applied. A concrete example of the construction of this MFC 70a is illustrated in Fig. 6. The other MFCs 70b and 70c are similarly constructed. The MFC 70a includes a current source 59 of a current I 0 and a multiple-output current mirror 53 driven by this current source 59. The multiple-output current mirror 53 includes transistors Q 6 , Q 7 , Q 8 , Q 9 and Q 10 . Accordingly, a current I 0 equal to the current of the current source 59 flows into the transistors Q 7 , Q 8 , Q 9 and Q 10 so that these transistors Q 7 - Q 10 act as current sources. The MFC 70a includes two differential circuits 51 and 52. The differential circuit 51 will be described first. The differential circuit 51 includes two transistors Q 1 and Q 2 between the emitters of which a resistor R 1 is connected. An input voltage V IN , namely the input variable x a , is applied to the base of the one transistor Q 1 , and the label voltage V LA is applied to the base of the other transistor Q 2 . The current I 0 is supplied to the emitters of both transistors Q 1 , Q 2 by the transistor Q 8 serving as the current source. Let I 1 represent the current which flows into the transistor Q 1 and I 2 the current which flows into the transistor Q 2 . When V IN < V LA holds, a current I 2 = I 0 flows into the transistor Q 2 and no current (I 1 = 0) flows into the transistor Q 2 . When the input voltage V IN exceeds the label voltage V LA , the current I 2 of transistor Q 2 diminishes linearly with an increase in the input voltage V IN , and the current I 1 which flows into the transistor Q 1 increases linearly from zero. When the relation V IN = V LA + R 1 I 0 is attained, the relations I 2 = 0, I 1 = I 0 are established. This state is maintained in a region of V IN greater than the foregoing. A current mirror 55 is provided and is driven by the current I 2 which flows into the transistor Q 2 . A resistor R L is connected to the output side of the current mirror 55. Let the voltage developed across the resistor R L be a voltage V 1 . Since the voltage V 1 is given by V 1 = I 2 R L , it is constant up to a prescribed input voltage with respect to an increase in the input voltage V IN and then changes so as to attain the zero level after decreasing in linear fashion. The slope of the portion at which the voltage V 1 decreases linearly is given by -R L /R 1 . This slope can be changed by changing the value of the resistor R 1 . The other differential circuit 52 has the same construction as that of the differential circuit 51. Let R 2 represent the resistor connected between the emitters of two transistors Q 3 and Q 4 , and let I 3 , I 4 represent the currents which flow into the transistors Q 3 , Q 4 . The differential circuit 52 is driven by the transistor Q 7 serving as a current source. A current mirror 54 is driven by the current I 3 which flows into the transistor Q 3 . Since the current I 3 flows into the resistor R L connected to the output side of the current mirror 54, a voltage V 2 dropped across the resistor R L is represented by V 2 = I 3 R L . With regard to a change in the input voltage V IN , the voltage V 2 is at the zero level up to a prescribed input voltage, then increases linearly and attains a constant level. The slope of the portion at which the voltage V 2 increases linearly is given by R L /R 2 . The MFC 70a is further provided with a two-input MIN circuit. The two-input MIN circuit outputs whichever of its two input voltages is lower. The two-input MIN circuit comprises a comparator and a compensator. The comparator is constituted by transistors Q 11 , Q 12 whose emitters are connected together, and a current mirror 56 which acts as a current source for driving these transistors. The current mirror 56 is driven by the transistor Q 9 . Since the aforesaid voltages V 1 and V 2 are applied to the bases of the transistors Q 11 and Q 12 , respectively, the transistor having the smaller voltage (here represented by V min ) of these voltages V 1 and V 2 applied to its base is rendered conductive, and the other transistor is cut off. Accordingly, a voltage (V min + V EB ), which is obtained by adding the emitter/base voltage V EB of the conductive transistor to the voltage V min , appears at the emitters. This voltage is applied to the base of a transistor Q 13 . The compensator, which is constituted by the transistor Q 13 and the transistor Q 10 that is for current-driving this transistor, compensates the voltage V BE that appears as a computation error at the output of the comparator. As a result of reducing the voltage V EB at the transistor Q 13 , V min appears as the output voltage V OUT at the emitter thereof. This output voltage is shown in Fig. 7. Thus, a membership function whose peak position is the label voltage V LA is set in the MFC 70a, and an output voltage V OUT , which represents the membership-function value conforming to the input V IN , is obtained, as shown in Fig. 7. Figs. 8 and 9 illustrate an example of the membership-function generating circuit (MFG) 110 using a switch matrix as the switch array. In Fig. 8, seven types of membership functions, which are outputted from 25 output terminals, numbered 0 through 24, of the membership-function generating circuit, are illustrated below these output terminals. The values of these outputted membership functions are quantified to four levels for the sake of simplification. These four levels correspond to voltages 0, 1.7, 3.3 and 5.0, respectively. The four levels are stipulated by a voltage-distribution generating circuit 114A. The circuit 114A is provided with three fuzzy truth-value voltage sources 114a, 114b and 114c of voltages 1.7, 3.3 and 5.0 V. Five voltage lines VL drawn diagonally in Fig. 8 are led out from the circuit 114A. The central line is connected to the voltage source 114c, the lines on either side of the central line are connected to the voltage source 114b, and the two outermost lines are connected to the voltage source 114a. A decoder 116A is a 1-of-8 decoder. The three-bit (C 1 , C 2 , C 3 ) binary signal representing a label provided by the data latch circuit 80 enters the decoder 116A. The decoder 116A outputs an H-level signal at any of its eight output terminals in conformity with the code represented by this input signal. The eight output terminals correspond to no designation and to seven types of babels. For example, an H-level signal is outputted at the no-designation output terminal when the input code signal is 000, and at an NL output terminal when the input code signal is 001. Signal lines SL indicated by the horizontal lines in Fig. 8 are led out from these output terminals, with the exception of the no-designation output terminal. In a switch matrix 115A, output lines OL are led out to the 25 output terminals from prescribed points of intersection between the voltage lines VL and the signal lines SL. A symbol 115a, which is indicated by a small square at each of these points of intersection, is a switch provided between the voltage line VL and output line OL and on/off-controlled by the voltage on the signal line SL. By way of example, the switch is constructed by a MOS FET. It is of course permissible to provide two or more of the switches 115a on one output line OL. All the output lines are grounded via a register 115b at their output terminal sides. When the three-bit binary signal (C 1 , C 2 , C 3 ) representing the label from the data latch circuit 80 is applied to the decoder 116A in the above-described arrangement, an H-level signal appears at whichever of the signal lines SL corresponds to this label, and the switches 115a provided on this signal line are turned on. As a result, each voltage of the voltage-distribution generating circuit 114A appears at the corresponding output terminal via the output lines OL through the switches 115a that have been turned on, and therefore a voltage distribution representing the membership function is outputted. In the above-described embodiment, the rule change is carried out in accordance with the setting by the digital switch units 75a - 75d. However, it goes without saying that the present invention is applicable also to a fuzzy control apparatus in which the rule change can be performed not only by a manual operation but also by remote control. Further, the invention can be applied also to a fuzzy control apparatus realized by a binary computer. Fig. 10 is a flowchart illustrating an example of a procedure of the operation of a fuzzy control apparatus in a case where the present invention is realized by software in a computer system. In this case, fuzzy reasoning also is realized by the software of a computer system. First, the number of rule to be changed is inputted by the operator (step 120). The particulars of the rule change are inputted from rule-change input means (a keyboard or the like) (step 121). Thereafter, a counter is cleared (step 122). When the result of the MIN operation of an antecedent is outside allowable limits, the counter measures suspension standby time for temporarily suspending the rule change in order to prevent a sudden variation in the control output. When the counter is cleared, it is determined whether the value of the MIN operation indicative of the degree of suitability of the antecedent membership function is within the allowable limits (step 123). If the value is not within the allowable limits (NO at step 123), the counter is incremented and it is determined whether the suspension standby time has arrived (steps 124, 125). The processing of steps 123 through 125 continues up to attainment of the standby time so long as a NO answer is obtained at step 123. When the standby time elapses, a display to this effect is presented (step 126). If the result of the MIN operation is within the allowable limits (YES at step 123), then the control output will not change suddenly owing to a rule change. Accordingly, the contents of the rule are changed and a display to the effect that the change has been completed is presented (steps 127, 128). Industrial Applicability The fuzzy control apparatus in which a rule is capable of being changed, the method of operating the same, the control system in which changeover is controlled by fuzzy reasoning, and the control method of this system, which are in accordance with the present invention, are well suited for use in automatic control of temperature, velocity and may other quantities.

Claims: A control apparatus for supplying a manipulated variable to a controlled object, characterized in that the control apparatus comprises: control means (10) in which a manner of control is capable of being changed during operation; storage means (13) for storing a control output which prevails immediately prior to a change of the manner of control; synthesizing output means (21, 22, 25) for combining, and outputting as a synthesized control output, the stored control output which prevailed immediately prior to the change of the manner of control and a control output which prevails following the change of the manner of control, the synthesized control output representing the manipulated variable; and means (23, 24) for altering a combining ratio of said synthesizing output means in such a manner that, with passage of time from a moment at which the manner of control is changed, there is a gradual decrease in a percentage of the control output which prevailed immediately prior to the change of the manner of control, and a gradual increase in a percentage of the control output which prevails following the change of the manner of control, in the synthesized control output of said synthesizing output means, and for outputting, as the synthesized control output, upon passage of a predetermined time from the moment at which the manner of control is changed, the control output which prevails following the change of the manner of control. The control apparatus according to claim 1 characterized in that: said control means (10) is fuzzy reasoning means in which a rule is capable of being changed during operation; said storage means (13) is storage means for storing a fuzzy reasoning output which prevails immediately prior to a rule change; said synthesizing output means (21, 22, 25) is synthesizing output means for combining, and outputting as a fuzzy-control output, the stored fuzzy reasoning output which prevailed immediately prior to the rule change and a fuzzy reasoning output which prevails following the rule change, the fuzzy-control output representing the manipulated variable; and said combining ratio altering means (23, 24) is means for altering a combining ratio of said synthesizing output means in such a manner that, with passage of time from a moment at which the rule change is made, there is a gradual decrease in a percentage of the fuzzy reasoning output which prevailed immediately prior to the rule change, and a gradual increase in a percentage of the fuzzy reasoning output which prevails following the rule change, in the fuzzy-control output of said synthesizing output means, and for outputting, as the fuzzy-control output, upon passage of a predetermined time from the moment at which the rule change is made, the fuzzy reasoning output which prevails following the rule change. A method of operating a control apparatus for supplying a manipulated variable to a controlled object and including a control means (10) for producing a control output in which a manner of control is capable of being changed during operation, characterized in that the method comprises the steps of: storing (34) a control output which prevails immediately prior to a change of a manner of control, when the manner of control is changed; generating (36, 37, 38, 39) a synthesized control output which represents the manipulated variable by combining, after the change of the manner of control, the stored control output which prevailed immediately prior to the change of the manner of control and a control output which prevails following the change of the manner of control, and altering a combining ratio in such a manner that, with passage of time from a moment at which the manner of control is changed, there is a gradual decrease in a percentage of the control output which prevailed immediately prior to the change of the manner of control, and a gradual increase in a percentage of the control output which prevails following the change of the manner of control, in the synthesized control output; and outputting (36, 37, 38, 41), as the synthesized control output, upon passage of a predetermined time from the moment at which the manner of control is changed, the control output which prevails following the change of the manner of control. The method according to claim 3 characterized in that the method is for operating a fuzzy control apparatus including fuzzy reasoning means (10) for producing a fuzzy reasoning output in which a rule is capable of being changed during operation, and comprises the steps of: storing (34) a fuzzy reasoning output which prevails immediately prior to a rule change when a rule change is made; generating (36, 37, 38, 39) a fuzzy-control output which represents the manipulated variable by combining, after the rule change, the stored fuzzy reasoning output which prevailed immediately prior to the rule change and a fuzzy reasoning output which prevails following the rule change, and altering a combining ratio in such a manner that, with passage of time from a moment at which the rule change is made, there is a gradual decrease in a percentage of the fuzzy reasoning output which prevailed immediately prior to the rule change, and a gradual increase in a percentage of the fuzzy reasoning output which prevails following the rule change, in the fuzzy-control output; and outputting (36, 37, 38, 41), as the fuzzy-control output, upon passage of a predetermined time from the moment at which the rule change is made, the fuzzy reasoning output which prevails following the rule change. A control apparatus for supplying a manipulated variable to a controlled object, characterized in that the control apparatus comprises: control means (70a, 70b, 70c, 71, 72, 110) which outputs a control output representing the manipulated variable and in which a manner of control is capable of being changed during operation; holding means (75a, 75b, 75c, 75d) for holding a code which represents a new manner of control to be changed; means (100) for determining whether a value relating to the control output falls within allowable limits for a change of a manner of control; and means (80, 100) for applying the code held in said holding means to said control means when it is determined that the value relating to the control output falls within said allowable limits, and for forbidding application of the code to said control means when it is determined that the value falls outside said allowable limits. The control apparatus according to claim 5 characterized in that: said control means (70a, 70b, 70c, 71, 72, 110) is fuzzy reasoning means in which a rule is capable of being changed during operation; said holding means (75a, 75b, 75c, 75d) is rule holding means for holding a code which represents a new rule to be changed; said determining means (100) is means for determining whether degree of membership of an input signal with respect to a membership function of an antecedent in said fuzzy reasoning means falls within allowable limits for a rule change; and said applying means (80, 100) is control means for applying the code of the new rule held in said rule holding means to said fuzzy reasoning means when it is determined that the degree of membership of the input signal falls within said allowable limits, and for forbidding application of the code of the new rule to said fuzzy reasoning means when it is determined that the degree of membership of the input signal falls outside said allowable limits. A method of operating a control apparatus for supplying a manipulated variable to a controlled object and including a control means (70a, 70b, 70c, 71, 72, 110) which outputs a control output representing the manipulated variable and in which a manner of control is capable of being changed during operation, characterized in that the method comprises the steps of: holding (120, 121) a code, which represents a new manner of control to be changed, when the code has been applied; determining (123), when a command for changing a manner of control has been applied, whether a value relating to the control output falls within allowable limits for a change of manner of control; applying (123, 127) the held code of the new manner of control to said control means when it is determined that the value relating to the control output falls within said allowable limits, and forbidding application of the code to said control means when it is determined that the value falls outside said allowable limits. The method according to claim 7 characterized in that the method is for operating a fuzzy control apparatus including fuzzy reasoning means (70a, 70b, 70c, 71, 72, 110) in which a rule is capable of being changed during operation, and comprises the steps of: holding (120, 121) a code, which represents a new rule to be changed, when the code has been applied; determining (123), when a rule-change command has been applied, whether degree of membership of an input signal with respect to a membership function of an antecedent in said fuzzy reasoning means falls within allowable limits for a rule change; applying (123, 127) the held code of the new rule to said fuzzy reasoning means when it is determined that the degree of membership of the input signal falls within said allowable limits, and forbidding application of the code of the new rule to said fuzzy reasoning means when it is determined that the degree of membership of the input signal falls outside said allowable limits.

Inventors: MATSUNAGA NOBUTOMO, NISHIDAI HAJIME, MATSUNAGA, NOBUTOMO, NISHIDAI, HAJIME, MATSUNAGA, NOBUTOMO C/O OMRON CORPORATION, NISHIDAI, HAJIME C/O OMRON CORPORATION
Applicants: OMRON TATEISI ELECTRONICS CO, OMRON CORPORATION
Application year: 1990
Main classification: G05B13
IPC codes: G06N7, G06N5, G05B13