How Fuzzy Logic Works ? Let us examine a few applications wherein fuzzy logic has several advantages over the conventional binary logic. In a room heater, the conventional thermostat circuit operates as a simple on/off switch. The cut - off temperature is selected at which the heater is activated when the actual ambient temperature fails below that level. Fig. (1) illustrates the operation with the cut-off temperature set at 20°C. When the temperature reaches this level the heater is turned off. This approach does not take into consideration when the temperature is between, say 15°C and 30°C. This results in the temperature in the room being excessively low or high. There is no setting for values in between these conditions.
Now using fuzzy logic controllers the system works in the grey or fuzzy areas where the definition of cold/cool/warm/hot is less clear and more open to interpretation. Temperature ranges are considered as overlapping - 20°C is described as 60% warm and 20% cool. The crisp input value of 20°C is translated to a truth value of 0.6 in the set ' WARM' and 0.2 in the set 'COOL' ( Fig. (2) ).
During evaluation, the entire set of rules is taken into consideration. The logic controllers sense the ambient temperature of the room and set the device accordingly, resulting in the heating power being progressively varied. A saving of about 20% in the consumption of electricity is obtained.
Take another example. A person who is 2 meters can be considered as 'tall', one who is 1.7 meters as ‘medium’, and a person who is 1.2 meters as ' short'. But how to classify a person who is 1.5 meters ? Using fuzzy logic, the degree of the membership of 'medium' can be evaluated easily. Fig. (3) Represents graphically how this can be achieved. A height of 1.2 meters has a 60% membership in the set 'short', while a height of 2 meters has 55% membership in set 'tall'. The richness of fuzzy logic is in its ability to deal with vague of imprecise value and in its likeness to human thinking.
Design of a fuzzy system need not have well defined set of rules; it can start with a general idea of how system should work. This idea may consist of defining input and output ranges. For example, one might specify that steering angle for a vehicle is to be in the range of +/- 30 degrees. That range would be normalized and mapped to the fuzzy system as range between -1 and 0 to +1. Then, within that range, one has to define what constitutes a small negative, large positive, zero or small positive angle. These are the individual membership functions that assign the values, say for example, -24 degrees is 0.8 of the function negative large and so on.
Fuzzy logic works by turning the hard-edged world of binary logic in to more natural human- like reasoning, since people use rules of inference based on vague concepts and approximate knowledge. For example, when driving a car, one knows when to apply the brakes in the face of an approaching car. We make this judgment based on our power of reasoning. We don't depend on the exact distance when the car in the opposite direction approaches, nor is it possible. In technical terms, we must calculate the value of the control variable (the pressure on the brakes) from the data or input variable (the speed of the car and the head - way distance). We must do this almost continuously to account for input changes and so ensure effective control. Fuzzy logic provides us with a method of carrying out these calculations with ease.
One of the main advantages in developing the translation controllers is that the engineers need not construct a detailed mathematical model of the system in advance. Performance is perfected through simulation and experience.
In space research, NASA has found that the results of simulation have been encouraging, especially in terms of fuel efficiency. In holding position with respect to another spacecraft, the fuzzy controllers required significantly less acceleration - that is smaller increments of position change than did the human controlled simulation. In overall maneuvers, the fuzzy controller has shown 20 to 70% better fuel efficiency than the currently used auto pilot and the best simulation runs of human pilots.
One of the reasons for the increasing popularity of fuzzy logic is that it offers a very simple, intuitive way for engineers to describe a complex problem using the design methodology of fuzzy set theory. Designers are turning to the fuzzy methodology as design complexity is simplified. It typically takes only a few rules to describe systems that may require complex mathematical and software routines.
The adoption of fuzzy logic has given many companies a competitive edge in terms of time to market for products. One estimate claimed that by the year 2000 more than 90% of the embedded control market would employ fuzzy logic in one form or the other.