Soft Computing Unit-4
Soft Computing Unit-4
Cont…
Features of Membership Function
There are other various types of fuzzy sets, of which a few are
discussed below:
A fuzzy set whose membership function has at least one element x in the
universe whose membership value is unity is called normal fuzzy set.
(A) Convex Normal Fuzzy set (B) Nonconvex normal Fuzzy set Cont…
Fuzzification
Fuzzification is the process of transforming a crisp
set to a fuzzy set or a fuzzy set to a fuzzier set i.e.
crisp quantities are converted to fuzzy quantities.
In real life world, the quantities that we consider
may be thought of as crisp, accurate and
deterministic, but actually they are not so.
Methods of Membership values Assignments
There are several ways to assign membership values to
fuzzy variables in comparison with the probability
density function to random variables.
The methods for assigning membership values are as
follows:
•Intuition
•Inference
•Rank ordering
•Angular fuzzy set
•Neural networks
•Genetic Algorithm
•Inductive Reasoning
Methods of Membership values Assignments
Intuition Method:
•Intuition method is based upon the common intelligence of
human.
•It is the capacity of the human to develop membership functions
on the basis of their own intelligence and understanding capacity.
•Each curve is a membership function corresponding to various
fuzzy (linguistic) variables; such as very light, light, normal, heavy
and very heavy.
•The curves are based on context functions and the human
developing them.
•For example, if the weights are referred to range of thin persons
we get one set of curves, and if they are referred to range of
normal weighing persons we get another set and so on.
•The main characteristics of these curves for their usage in fuzzy
operations are based on their overlapping capacity.
Methods of Membership values Assignments
Intuition Method:
Methods of Membership values Assignments
Inference Method:
•The inference method uses knowledge to perform
deductive reasoning. Deduction achieves conclusion
by means of forward inference.
•Here the knowledge of geometrical shapes and
geometry is used for defining membership values.
•The membership functions may be defined by
various shapes: triangular, trapezoidal, bell-shaped,
Gaussian and so on.
•The inference method here is discussed via
triangular shape.
Methods of Membership values Assignments
Consider a triangle, where X, Y and Z are the angles
Let the linguistic variable High temperature and Low pressure are
given as
THIGH =
{(20, 0.2),(25, 0.4),(30, 0.6),(35, 0.6),(40, 0.7),(45, 0.8),(50, 0.8)}
PLOW =
{(1, 0.8),(2, 0.8),(3, 0.6),(4, 0.4)}
Fuzzy Implication
Then the fuzzy implication
If temperature is High then pressure is Low can be
defined as
Fuzzy Implication
if X is A then Y is B:
R=(AxB)U(A’xY) where Y is Universe
If X is A then Y is B else Y is C
R=(AxB)U(A’xC)
Fuzzy Inference System
Fuzzy Inference System is the key unit of a fuzzy logic
system having decision making as its primary work. It
uses the “IF…THEN” rules along with connectors “OR”
or “AND” for drawing essential decision rules.
Characteristics of Fuzzy Inference System
Following are some characteristics of FIS −
•The output from FIS is always a fuzzy set irrespective of
its input which can be fuzzy or crisp.
•It is necessary to have fuzzy output when it is used as a
controller.
•A defuzzification unit would be there with FIS to
convert fuzzy variables into crisp variables.
Fuzzy Inference System
Functional Blocks of FIS
The following five functional blocks will help you
understand the construction of FIS −
•Rule Base− It contains fuzzy IF-THEN rules.
•Database− It defines the membership functions of
fuzzy sets used in fuzzy rules.
•Decision-making Unit− It performs operation on rules.
•Fuzzification Interface Unit− It converts the crisp
quantities into fuzzy quantities.
•Defuzzification Interface Unit− It converts the fuzzy
quantities into crisp quantities. Following is a block
diagram of fuzzy interference system.
Fuzzy Inference System
Functional Blocks of FIS
Following is a block diagram of fuzzy inference
system.
Fuzzy Inference System
Working of FIS
The working of the FIS consists of the following
steps −
•A fuzzification unit supports the application of
numerous fuzzification methods, and converts the
crisp input into fuzzy input.
•A knowledge base - collection of rule base and
database is formed upon the conversion of crisp
input into fuzzy input.
•The defuzzification unit fuzzy input is finally
converted into crisp output.
Fuzzy Logic control System
Fuzzy logic is applied with great success in various
control application. Almost all the consumer
products have fuzzy control.
Some of the examples include controlling your room
temperature with the help of air-conditioner, anti-
braking system used in vehicles, control on traffic
lights, washing machines, large economic systems,
etc.
Fuzzy Logic control System
Why Use Fuzzy Logic in Control Systems
A control system is an arrangement of physical components
designed to alter another physical system so that this system
exhibits certain desired characteristics. Following are some
reasons of using Fuzzy Logic in Control Systems −
•While applying traditional control, one needs to know about
the model and the objective function formulated in precise
terms. This makes it very difficult to apply in many cases.
•By applying fuzzy logic for control we can utilize the human
expertise and experience for designing a controller.
•The fuzzy control rules, basically the IF-THEN rules, can be
best utilized in designing a controller.
Fuzzy Logic control System
Assumptions in Fuzzy Logic Control (FLC) Design
While designing fuzzy control system, the following six basic assumptions
should be made −
•The plant is observable and controllable − It must be assumed that the
input, output as well as state variables are available for observation and
controlling purpose.
•Existence of a knowledge body − It must be assumed that there exist a
knowledge body having linguistic rules and a set of input-output data set
from which rules can be extracted.
•Existence of solution − It must be assumed that there exists a solution.
•‘Good enough’ solution is enough − The control engineering must look for
‘good enough’ solution rather than an optimum one.
•Range of precision − Fuzzy logic controller must be designed within an
acceptable range of precision.
•Issues regarding stability and optimality − The issues of stability and
optimality must be open in designing Fuzzy logic controller rather than
addressed explicitly.
Fuzzy Logic control System
Architecture of Fuzzy Logic Control
The following diagram shows the architecture of
Fuzzy Logic Control (FLC).
Fuzzy Logic control System
Major Components of FLC
Followings are the major components of the FLC as shown in
the above figure −
•Fuzzifier − The role of fuzzifier is to convert the crisp input
values into fuzzy values.
•Fuzzy Knowledge Base − It stores the knowledge about all the
input-output fuzzy relationships. It also has the membership
function which defines the input variables to the fuzzy rule
base and the output variables to the plant under control.
•Fuzzy Rule Base − It stores the knowledge about the
operation of the process of domain.
•Inference Engine − It acts as a kernel of any FLC. Basically it
simulates human decisions by performing approximate
reasoning.
•Defuzzifier − The role of defuzzifier is to convert the fuzzy
values into crisp values getting from fuzzy inference engine.
Fuzzy Logic control System
Steps in Designing FLC
Following are the steps involved in designing FLC −
•Identification of variables − Here, the input, output and state variables
must be identified of the plant which is under consideration.
•Fuzzy subset configuration − The universe of information is divided into
number of fuzzy subsets and each subset is assigned a linguistic label.
Always make sure that these fuzzy subsets include all the elements of
universe.
•Obtaining membership function − Now obtain the membership function for
each fuzzy subset that we get in the above step.
•Fuzzy rule base configuration − Now formulate the fuzzy rule base by
assigning relationship between fuzzy input and output.
•Fuzzification − The fuzzification process is initiated in this step.
•Combining fuzzy outputs − By applying fuzzy approximate reasoning, locate
the fuzzy output and merge them.
•Defuzzification − Finally, initiate defuzzification process to form a crisp
output.
Fuzzy Logic control System
Advantages of Fuzzy Logic Control
Let us now discuss the advantages of Fuzzy Logic Control.
•Cheaper − Developing a FLC is comparatively cheaper than
developing model based or other controller in terms of
performance.
•Robust − FLCs are more robust than PID controllers because of
their capability to cover a huge range of operating conditions.
•Customizable − FLCs are customizable.
•Emulate human deductive thinking − Basically FLC is designed to
emulate human deductive thinking, the process people use to infer
conclusion from what they know.
•Reliability − FLC is more reliable than conventional control system.
•Efficiency − Fuzzy logic provides more efficiency when applied in
control system.
Fuzzy Logic control System
Disadvantages of Fuzzy Logic Control
We will now discuss what are the disadvantages of
Fuzzy Logic Control.
•Requires lots of data − FLC needs lots of data to be
applied.
•Useful in case of moderate historical data − FLC is not
useful for programs much smaller or larger than
historical data.
•Needs high human expertise − This is one drawback as
the accuracy of the system depends on the knowledge
and expertise of human beings.
•Needs regular updating of rules − The rules must be
updated with time.