Introduction to Fuzzy Logic. James K. Peckol
as you learn and develop your skills and as the technology evolves. My approach has been augmented by the views and approaches of many very creative engineers, scientists, mathematicians, and philosophers dating back centuries.
We see here the two main themes that will be interwoven through each of the chapters ahead. With each new design, our first look should be from the outside. What are we designing? How will people use it – what is its behavior? What effect will it have on its operating environment – what are the outputs? What will be the effect of its operating environment on it – what are its inputs? How well do we have to do the job – what are the constraints?
We want to look at the high‐level details first and then go on to the lower. We can borrow the idea of the public interface (an outside view) to our system from our colleagues working on object‐centered designs. Our first view should be of the public interface to our system – we should view it from the outside and then move to the details inside.
I.3 Starting to Think Fuzzy – Fuzzy Logic Q&A
We'll open this book by introducing fuzzy logic. Along our path, we use, design, and develop tools, techniques, and knowledge from just about every other discipline in electrical engineering and computing science.
OK, let's start. Other than an interesting name, exactly what is fuzzy logic? Many people have heard something about fuzzy logic but are not quite sure what it is, what it means, or what's fuzzy about it. Let's try to answer those questions and several of the other more common ones.
Despite its amusing and seemingly contradictory name, fuzzy logic is not a logic that is fuzzy. Exactly the opposite is true. It is a way of capturing the vagueness and imprecision that are so common in our everyday languages and thinking. Capturing and representing such vagueness and imprecision in terms that a computer or learning system can understand and work with becomes the challenge.
Fuzzy logic can represent statements that are completely true or false, and it can also represent those that are partially true and/or partially false. Classical crisp logic lives in a black‐and‐white, “yes” and “no” world. Fuzzy logic admits shades of gray. Such an ability to represent degrees of truth using what are called hedges and linguistic variables makes fuzzy logic very powerful for representing vague or imprecise ideas.
I.4 Is Fuzzy Logic a Relatively New Technology?
Not really. Although fuzzy logic has been generating a lot of interest in this country recently, it is far from new. Lotfi Zadeh (1965), of the University of California at Berkeley, proposed many of the original ideas when he published his first famous research paper on fuzzy sets in 1965. Japanese companies have been using fuzzy logic for over 50 years. They have been granted over 2000 patents and have designed fuzzy logic into hundreds of products ranging from elevator and traffic control systems to video cameras and refrigerators.
One frequently cited example is a one‐button washing machine. This machine senses the size of the load of clothes, the amount and type of dirt and then selects the proper quantity of soap, water level, water temperature, and washing time. Fuzzy logic has also been applied to the classic driverless truck‐backer‐upper problem and automatic flight control for helicopters.
I.5 Who Is Using Fuzzy Logic in the United States?
Companies in the United States utilizing fuzzy logic in contemporary designs include Eaton Industrial Controls, Motorola, NCR, Intel, Rockwell, Togai InfraLogic, NASA, Gensym, Allen‐Bradley Co., General Electric, and General Motors. Some of the fields using fuzzy logic–related technologies include linear and nonlinear control, data analysis, pattern recognition, operations research, and financial systems.
The list of companies outside of the United States becoming involved in developing products that use fuzzy logic or in producing tools for designing fuzzy logic systems is growing at rapid rate.
I.6 What Are Some Advantages of Fuzzy Logic?
Fuzzy logic works very well in conjunction with other technologies. In particular, it provides accurate responses to ambiguous, imprecise, or vague data. Because fuzzy logic allows ideas to be expressed in linguistic terms, it offers a formal mathematical system for representing problems using familiar words.
As a result, fuzzy logic has proven to be a powerful and effective tool for modeling systems with uncertainties in their inputs or outputs or for use when precise models of a system are either unknown or extremely complex.
I.7 Can I Use Fuzzy Logic to Solve All My Design Problems?
Perhaps, however, you should not use fuzzy logic in those systems for which you already have a good or optimal solution using traditional methods. If there is a simple and clearly defined mathematical model for the system, use it. Fuzzy logic, like any other tool, must be used properly and carefully.
Fuzzy logic has been found to give excellent results in several general areas. The most common usage today is in systems for which complete or adequate models are difficult to define or develop and in systems or tasks that use human observations as input, control rules, or decision rules.
The Hitachi's control system for the Sendai subway near Tokyo and Matsushita's one‐button washing machine are very good examples. A fuzzy logic approach also works well in systems that are continuous and complex and that have a nonlinear transfer function or in which vagueness is common.
I.8 What's Wrong with the Tools I'm Using Now?
Nothing. Fuzzy logic does not replace your existing tools; it gives you an additional one. Fuzzy logic simplifies the task of representing and working with vague, imprecise, or ambiguous information often common in human speech, ideas, or reasoning. It provides a means for solving a set of problems that have been difficult or impossible to solve using traditional methods. Consider working examples such as automatic flight control for a helicopter, or the precise management of the freezing of fish in a home freezer.
I.9 Should I Implement My Fuzzy System in Hardware or Software?
Either one. Good tools and solutions are available for hardware and software. However, today fuzzy logic is essentially a “software type” technology and should probably be considered and evaluated that way. This is good news to us as designers. It means that we should be able to take advantage of all that we've learned about developing good software and hardware systems and apply it to developing good fuzzy logic solutions.
As with software, continuous technological improvements will ensure a migration of fuzzy logic into hardware. Hardware solutions may certainly run faster, but software solutions are more flexible and do offer a hedge against the possible unavailability of parts. Such systems, as we'll see, also have the ability to learn. Whichever approach is finally selected, one still needs to go through the rigorous process of analyzing the product under development, making the same trade‐offs we have always made, and thoroughly testing the resulting design and product for safety and reliability.
I.10 Introducing Threshold Logic
As we now move forward, we introduce and explore two tools that build on and extend the knowledge gained from crisp and fuzzy logic. These tools are called threshold logic and perceptrons. Threshold logic builds on and extends the capability of the traditional combinational logic gates. The incorporated features ultimately make important contributions to the foundation of advanced tools called neural networks, machine learning, and artificial intelligence.
I.11 Moving to Perceptron Logic
We move next to a very fascinating device called a perceptron.