Professional Documents
Culture Documents
Chapter 2 Soft Computing
Chapter 2 Soft Computing
Chapter 2 Soft Computing
• Soft Computing:-
• In a process control situation, “If the temperature is 45 F and the pressure is 55 N/m2, then turn the knob
ON”
• In a process control situation, “If the temperature is moderate and the pressure is high, then turn the knob
slightly right”
• not many human problems require such precision –
• problems such as parking a car,
• backing up a trailer, navigating a car among others on a freeway,
• washing clothes, controlling traffic at intersections, judging beauty contestants, and a preliminary understanding of a
complex system.
• Works with imprecise statements
• The rules have “Linguistic Variables”, typically adjectives qualified by adverbs.
Chapter 2 Soft Computing 9/23/2023 3
Chapter 2 :Fuzzy logic and Fuzzy systems :- Fuzzy set theory crisp sets Fuzzy set
Crisp relations fuzzy relations fuzzy systems crisp logic predicate logic fuzzy logic fuzzy
rule based system
• Fuzzy Logic:-
• is an approach to variable processing
• Is a superset of Boolean Logic
• is intended to model logical reasoning with vague or imprecise statements
• refers to a family of many-valued logics,
• the truth-values are interpreted as degrees of truth.
• fuzzy set is a degree of membership, a real number from the interval [0,1]
• makes it possible to obtain an array of accurate conclusions.
• Machine learning refers to computational systems that mimic human cognition, by iteratively
adapting algorithms to solve complex problems.
• Fuzzy logic is a set of rules and functions that can operate on imprecise data sets, but the
algorithms still need to be coded by humans.
• An artificial neural network is a computational system designed to imitate the problem-solving
procedures of a human-like nervous system.
• Pros • Cons
• Fuzzy logic is more likely to reflect real- • Fuzzy algorithms require broad validation
world problems than classical logic. and verification.
• Fuzzy logic algorithms have lower hardware • Fuzzy control systems are dependent on
requirements than classical Boolean logic. human expertise and knowledge.
• Fuzzy algorithms can produce accurate
results with imprecise or inaccurate data.
• Commutativity • A∩A=A
• A∪B=B∪A • Identity
• A∩B=B∩A • A ∪∅= A
• Associativity • A∩X=A
• A ∪ (B ∪ C) = (A ∪ B) ∪ C • A ∩∅=∅
• A ∩ (B ∩ C) = (A ∩ B) ∩ C • A∪X=X
• Distributivity • Transitivity
• A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) • If A ⊆ B and B ⊆ C, then A ⊆ C
• A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) • Involution
• Idempotency • =A
• A∪A=A
• Union A ∪ B • Complement 𝐴ҧ
• 𝑋𝐴 A ∪ B = 𝑋𝐴 𝑥 𝑣 𝑋𝐵 𝑥 = max 𝑥𝐴 𝑥 , 𝑥𝐵 𝑥 • 𝑋𝐴ҧ x = 1 − 𝑋𝐴 𝑥
• Intersection A ∩ B • Contentment 𝐴
• 𝑋𝐴 A ∩ B = 𝑋𝐴 𝑥 ∧ 𝑋𝐵 𝑥 = min 𝑥𝐴 𝑥 , 𝑥𝐵 𝑥 • If 𝐴 ⊆ 𝐵 then 𝑥𝐴 𝑥 ≤ 𝑥𝐵 𝑥
• CARTESIAN PRODUCT
• The elements in two sets A and B are given as A = {0, 1} and B = {a, b, c}. Various
Cartesian products of these two sets can be written as shown:
• A × B = {(0, a), (0, b), (0, c), (1, a), (1, b), (1, c)}
• B × A = {(a, 0), (a, 1), (b, 0), (b, 1), (c, 0), (c, 1)}
• A × A = A2 = {(0, 0), (0, 1), (1, 0), (1, 1)}
• B × B = B2 = {(a, a), (a, b), (a, c), (b, a), (b, b), (b, c), (c, a), (c, b), (c, c)}
• The relation between two set is called binary relation, and represented as A1 × A2
• If three, four, or five sets are involved in a subset of the full Cartesian product, the relations are called
ternary, quaternary, and quinary, respectively.
• A subset of the Cartesian product A1 × A2 ×· · ·×Ar is called an r-ary relation over A1,A2, . . . ,Ar
• For us , whenever the term relation is used without qualification, it is taken to mean a binary relation.
• The Cartesian product of two universes X and Y is determined as,
• X × Y = {(x, y) | x ∈ X, y ∈ Y}
• The strength of this relationship between ordered pairs of elements in each universe is measured by the
characteristic function, denoted χ, where
• a value of unity is associated with complete relationship and
• a value of zero is associated with no relationship, i.e.,
1 (x, y) ∈ X × Y
𝑋𝑥𝑋𝑌 𝑥, 𝑦 = ቊ
0 (x, y) ∉ X × Y
Contradiction
• Compound propositions that are always false
• For example, if A is the set of all prime numbers (1, 2, 3, 5, . . .) on the real
line universe, X,
• then the proposition ‘‘Ai is a multiple of 4’’ is a contradiction.
• Some simple contradictions are listed here:
• B∩B
• A ∩ ∅; A ∩ ∅
Chapter 2 (Part 2) Soft Computing 9/23/2023 50
Chapter 2 :Fuzzy logic and Fuzzy systems :- Fuzzy set theory crisp sets Fuzzy set
Crisp relations fuzzy relations fuzzy systems crisp logic predicate logic fuzzy logic fuzzy
rule based system
EQUIVALENCE
• As mentioned, propositions P and Q are equivalent, i.e., P ↔ Q, is true only when both P
and Q are true or when both P and Q are false
• For example, the propositions P: ‘‘triangle is equilateral’’ and Q: ‘‘triangle is equiangular’’ are equivalent
because they are either both true or both false for some triangle. This condition of equivalence is shown
in Fig. 5.4, where the shaded region is the region of equivalence.
The modus ponens deduction is used as a tool for making inferences in rule-based systems.
we have a rule of the form IF A, THEN B
FUZZY LOGIC
•fuzzy logic is to form the theoretical foundation for reasoning about imprecise propositions
•Suppose we have a rule-based format to represent fuzzy information. These rules are expressed in
conventional antecedent-consequent form, such as,
•Rule 1: IF x is A∼, THEN y is B∼, where A∼ and B∼ represent fuzzy propositions (sets).
•Now suppose we introduce a new antecedent, say A’∼, and we consider the following rule:
•Rule 2: IF x is A’∼, THEN y is B’∼ From information derived from Rule 1, is it possible to derive the
consequent in Rule 2, B’∼ ? The answer is yes, and the procedure is fuzzy composition.
•The consequent B∼ can be found from the composition operation ,B∼ =A∼ ◦R∼.
•The two most common forms of the composition operator are the max–min and the max–product
compositions.
•Concentrations.
•For example, by using Eq. (5.26) for the hedge very, a membership
value of 0.9 is reduced by 10% to a value of 0.81
•Dilations
•For example, using Eq. (5.29) for the hedge slightly, a membership
value of 0.81 is increased by 11% to a value of 0.9, whereas a
membership value of 0.01 is increased by an order of magnitude to
0.1.
•Intensification.
•This operation acts in a combination of concentration and dilation.
•It increases the degree of membership of those elements in the set
with original membership values greater than 0.5, and
•it decreases the degree of membership of those elements in the set
with original membership values less than 0.5.
Chapter 2 (Part 2) Soft Computing 9/23/2023 64
Chapter 2 :Fuzzy logic and Fuzzy systems :- Fuzzy set theory crisp sets Fuzzy set
Crisp relations fuzzy relations fuzzy systems crisp logic predicate logic fuzzy logic fuzzy
rule based system
FUZZY SYSTEMS - LINGUISTIC HEDGES
FUZZIFICATION:-
• is the process of making a crisp quantity fuzzy.
• hardware such as a digital voltmeter generates crisp
data, but these data are subject to experimental
error.
• The information shown in Fig. 4.6 shows one
possible range of errors for a typical voltage
reading and the associated membership function
that might represent such imprecision.
FUZZIFICATION:-
• If we agree that anyone older than 60 years
as ‘old’, then the membership value of a
person above 60 years is 1, while that of a
person below 60 years is less than 1. We can
define the membership function of A as
follows
FUZZIFICATION:-
Develop a reasonable membership function for a square, based on the geometric properties of
a rectangle
We take L as the length of the longer side and l as that of the smaller side, If l/L = 1 the
rectangle is a square. We shall use exponential expression for the membership function