31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Tutorial<br />

Overview<br />

The point of fuzzy logic is to map an input space to an output space, and the<br />

primary mechanism for doing this is a list of if-then statements called rules.<br />

All rules are evaluated in parallel, and the order of the rules is unimportant.<br />

The rules themselves are useful because they refer to variables and the<br />

adjectives that describe those variables. Before you can build a system that<br />

interprets rules, you must define all the terms you plan on using and the<br />

adjectives that describe them. To say that the water is hot, you need to define<br />

the range that the water’s temperature can be expected to vary as well as<br />

what we mean by the word hot. The following diagram provides a roadmap for<br />

the fuzzy inference process. It shows the general description of a fuzzy system<br />

on the left and a specific fuzzy system (the tipping example from Chapter 1,<br />

“Getting Started”) on the right.<br />

The General Case<br />

A Specific Example<br />

Input<br />

Output<br />

service<br />

tip<br />

Rules<br />

if service is poor then tip is cheap<br />

if service is good then tip is average<br />

if service is excellent then tip is generous<br />

Input<br />

terms<br />

(interpret)<br />

Output<br />

terms<br />

(assign)<br />

service<br />

is interpreted as<br />

{poor,<br />

good,<br />

excellent}<br />

tip<br />

is assigned to be<br />

{cheap,<br />

average,<br />

generous}<br />

To summarize the concept of fuzzy inference depicted in this figure, fuzzy<br />

inference is a method that interprets the values in the input vector and, based<br />

on some set of rules, assigns values to the output vector.<br />

This section is designed to guide you through the fuzzy logic process step by<br />

step by providing an introduction to the theory and practice of fuzzy logic. The<br />

first three sections of this section are the most important—they move from<br />

general to specific, first introducing underlying ideas and then discussing<br />

implementation details specific to the toolbox.<br />

These three areas are as follows:<br />

2-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!