31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Building Systems with <strong>Fuzzy</strong> <strong>Logic</strong> Toolbox Software<br />

The Rule Viewer and the Surface Viewer are used for looking at, as opposed<br />

to editing, the FIS. They are strictly read-only tools. The Rule Viewer is<br />

a MATLAB technical computing environment based display of the fuzzy<br />

inference diagram shown at the end of the last section. Used as a diagnostic, it<br />

can show (for example) which rules are active, or how individual membership<br />

function shapes are influencing the results. The Surface Viewer is used<br />

to display the dependency of one of the outputs on any one or two of the<br />

inputs—that is, it generates and plots an output surface map for the system.<br />

This section began with an illustration similar to the following one describing<br />

the main parts of a fuzzy inference system, only the next one shows how<br />

the three editors fit together. The two viewers examine the behavior of the<br />

entire system.<br />

The General Case...<br />

A Specific Example...<br />

The GUI Editors...<br />

Input<br />

Output<br />

service<br />

tip<br />

The FIS Editor<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 />

The Rule Editor<br />

Input<br />

terms<br />

(interpret)<br />

Output<br />

terms<br />

(assign)<br />

service = tip =<br />

{poor,<br />

good,<br />

excellent}<br />

{cheap,<br />

average,<br />

generous}<br />

The Membership<br />

Function Editor<br />

The five primary GU<strong>Is</strong> can all interact and exchange information. Any one of<br />

them can read and write both to theworkspaceandtoafile (the read-only<br />

viewers can still exchange plots with the workspace and save them to a file).<br />

For any fuzzy inference system, any or all of these five GU<strong>Is</strong> may be open.<br />

If more than one of these editors is open for a single system, the various<br />

GUI windows are aware of the existence of the others, and, if necessary,<br />

updates related windows. Thus, if the names of the membership functions<br />

are changed using the Membership Function Editor, those changes are<br />

reflected in the rules shown in the Rule Editor. The editors for any number<br />

of different FIS systems may be open simultaneously. The FIS Editor, the<br />

Membership Function Editor, and the Rule Editor can all read and modify<br />

the FIS data, but the Rule Viewer and the Surface Viewer do not modify the<br />

FIS data in any way.<br />

2-33

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

Saved successfully!

Ooh no, something went wrong!