• Home
  • Textbooks
  • Fuzzy Logic with Engineering Applications
  • Fuzzy Systems Simulation

Fuzzy Logic with Engineering Applications

Timothy Ross

Chapter 8

Fuzzy Systems Simulation - all with Video Answers

Educators


Chapter Questions

Problem 1

A video monitor's CRT has a nonlinear characteristic between the illuminance output and the voltage input. This nonlinear characteristic is $y=x^{2.2}$, where $y$ is the illumination and $x$ is the voltage. The CCD (Charge-Coupled Device) in a video camera has a linear light-in to voltageout characteristic. To compensate for the nonlinear characteristic of the monitor, a "gamma correction"' circuit is usually employed in a CCD camera. This nonlinear circuit has a transfer function of $y=x^{\text {gmma }}$, where the gamma factor is usually 0.45 (i.e., $1 / 2.2$ ) to compensate for the 2.2 gamma characteristic of the monitor. The net result should be a linear response between the light incident on the CCD and the light produced by the monitor. Figure P8.1 shows the nonlinear gamma characteristic of a CCD camera (yntual ). Both the input, $x$, and the output, $y$, have a universe of discourse of $[0,1]$.
Partition the input variable, $x$, into three partitions, say small, S , medium, M , and big, B , and partition the output variable, $y$, into two partitions, say small, SM, and large, L. Using your own few simple rules for the nonlinear function $y=x^{0.45}$ and the crisp inputs $x=0,0.25,0.5$, $0.75,1.0$, determine whether your results produce a solution roughly similar to $y_{\text {fuzzy }}$ in Fig. P8. 1 (which was developed with another fuzzy model [Ross, 1995]). Comment on the form of your solution and why it does or does not conform to the actual result.

Check back soon!

Problem 3

A very widely used component in electrical engineering is the diode. The voltage-current relation is extremely nonlinear and is modeled by the expression

$$
V_f=V_I \ln \left(I_f / I_s\right)
$$

where $\quad V_f=$ forward voltage developed across the diode
$V_l=$ terminal voltage $(\sim 0.026 \mathrm{~V})$
$I_s=$ saturation current of a given diode (assume $\sim 10^{-12} \mathrm{~A}$ )
$I_f=$ forward current flowing through the diode
The resulting exact voltage-current curve is shown in Fig. P8.2 (rotated $90^{\circ}$ ). For this highly nonlinear function discuss the following:
(a) How would you go about partitioning the input space $\left(I_f\right)$ and the output space $\left(V_f\right)$ ?
(b) Propose three to five simple rules to simulate the nonlinearity.

Check back soon!

Problem 3

One of the difficulties with the Gaussian probability distribution is that it has no closed-form integral. Integration of this function must be conducted numerically. Because of this difficulty, approximations to the Gaussian distribution have been developed over the years. One of these approximations is the expression shown in Fig. P8.3a.
This expression provides a reasonably good approximation to the Gaussian except for values of $x$ near zero; as can be seen, the function $G$ has a singularity at $x=0$. Table P8.3 shows the exact values for this approximate function, $G$, and Fig. P8.3a shows the function.

If one uses the partitioning for the input variable, $x$, as shown in Fig. P8.3b, the discrete membership values for each of the quantities $x$ shown in Table P8.3 for the following three fuzzy inputs,
1. $x_1=\mathrm{NB}$ or PB
2. $x_2=\mathrm{Z}$ or PS
3. $x_3=\mathrm{Z}$ or NS
would be

$$
\begin{aligned}
& x_1=[1,0.5,0,0,0,0,0,0.5,1] \\
& x_2=[0,0,0.0 .5,1,0.5,1,0.5,0] \\
& x_3=[0,0.5,1,0.5,1,0.5,0,0.0]
\end{aligned}
$$

The membership functions for $G$ for the first five elements in the table (the function is symmetric) corresponding to the three fuzzy inputs are

$$
\begin{aligned}
G_1 & =\left\{\frac{1}{0}+\frac{0.5}{0.5}+\frac{0}{0.776}+\frac{0}{1.10}+\frac{0}{2}\right\}=[1,0.5,0,0,0] \\
G_2 & =[0,0,0,0.5,1] \\
G_3 & =[0,0.5,1,0.5,1]
\end{aligned}
$$

(a) Develop fuzzy relations (these matrices all will be of size $9 \times 5$ ) between the three fuzzy inputs and outputs using a Cartesian product operation.
(b) Find the overall fuzzy relation by taking the union of the three relations found in part (a).
(c) If the matrix relation in part (b) is replaced by a continuous surface, composition with crisp singleton inputs for $x$ results in the following table of results for the output $G$. Verify some of these results.

Check back soon!
03:31

Problem 4

A constant force, $F$, acts on a body with mass, $m$, moving on a smooth surface at velocity, $v$. The effective power of this force will be $\mathrm{EP}=F(v) \cos \theta$ (Fig. P8.4a). Using the partitioning for the input variable, $\theta$, as shown in Fig. P8.4b, and the partitioning for the output variable, EP, as shown in Fig. P8.4c, and the following three simple rules:
1. IF Z THEN ME (most efficient)
2. IF NS or PS THEN NE (not efficient)
3. IF PB or NB THEN NME (negative most efficient such as braking)
conduct a graphical simulation and plot the results on a graph of EP vs. $\theta$. Show the associated exact solution on this same graph.

Averell Hause
Averell Hause
Carnegie Mellon University
01:31

Problem 5

Psycho-acoustic research has shown that white noise has different effects on people's moods, depending on the average pitch of the tones that make up the noise. Very high and very low pitches make people nervous, whereas midrange noise has a calming effect. The annoyance level of white noise can be approximated by a function of the square of the deviance of the average pitch of the noise from the central pitch of the human hearing range, approximately 10 kHz . As shown in Fig. P8.5a, the human annoyance level can be modeled by the nonlinear function $y=x^2$, where $x=$ deviance (in kHz ) from 10 kHz . The range of $x$ is $[-10,10]$; outside that range pitches are not audible to humans.

The partitions for the input variable, $x$, are the five partitions on the range $[-10,10]$ kHz , as shown in Fig. P8.5b, and the partitions for the output space for $y=x^2$ are shown in Fig. P8.5c. Using the following three simple rules,
1. IF $x=Z$, THEN $y=\mathrm{N}$
2. IF $x=$ NS or PS, THEN $y=\mathrm{S}$
3. IF $x=\mathrm{NB}$ or PB, THEN $y=\mathrm{V}$
show how a similar plot of fuzzy results as shown in Fig. 8.5d is determined.

Victor Salazar
Victor Salazar
Numerade Educator

Problem 6

Let us consider the case of a series motor under the influence of a load and a constant voltage source, as shown in Fig. P8.6a. A series motor should always be operated with some load, otherwise the speed of the motor will become excessively high, resulting in damage to the motor. The speed of the motor, $N$, in rpm , is inversely related to the armature current, $I_{\mathrm{a}}$, in amps, by the expression $N=k / I_a$, where $k$ is the flux. For this problem, we will estimate the flux parameter based on a motor speed of 1500 rpm at an armature current of 5 amps ; hence, $k=5(1500)=7500$ rpm-amps. Suppose we consider the armature current to vary in the range $I_2=[-\infty,+\infty]$, and we partition this universe of discourse as shown in Fig. $8.6 b$ (note that the extremes at $-\infty$ and $+\infty$ are contained in the partitions NB and PB, respectively). Suppose we also partition the output variable, $N$, as shown in Fig. P8.6c. Using the input and output partitioning provided in Figs. P8.6b and P8.6c and the following five rules, conduct a graphical numerical simulation for the crisp inputs $I_{\mathrm{a}}=-8,-2,3,9 \mathrm{~A}$. Plot this response on a graph of $N$ vs. $I_4$.

IF $I_2$ is Z, THEN N is HSC or HSAC
IF $I_2$ is PS, THEN N is HSC
IF $I_4$ is NS, THEN N is HSAC
IF $I_2$ is PB , THEN N is MSC
IF $I_2$ is NB , THEN N is MSAC

Check back soon!

Problem 7

In the field of image processing a limiter function is used to enhance an image when background lighting is too high. The limiter function is shown in Fig. P8.7a.
(a) Using the following rules, construct three matrix relations using the input (see Fig. P8.7b) and output (see Fig. P8.7c) partitions:

Rule 1: IF $x=\mathrm{Z}$, THEN $y=\mathrm{S}$
Rule 2: IF $x=$ PB, THEN $y=$ PM
Rule 3: IF $x=$ NB, THEN $y=$ NM
(b) For crisp input values $x=-1,-0.8,-0.6,-0.4,-0.2$, and 0 , use graphical techniques or max-min composition and centroidal defuzzification to determine the associated fuzzy outputs. Because of symmetry, values for $0 \leq x \leq 1$ are equal to $|x|$ for $-1 \leq x \leq 0$. Verify that these results follow Fig. P8.7d.

Check back soon!
01:52

Problem 8

Do the example problem on the sine curve, Example 8.2, using (a) six rules and (b) eight rules. Does your result look more, or less, like a sine curve than the result in Example 8.2?

Carson Merrill
Carson Merrill
Numerade Educator