Documentos de Académico
Documentos de Profesional
Documentos de Cultura
B
(y) =
f (A)
(y) =
y=f (x)
A
(x)
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 9 / 62
Functions Applied to Intervals
x
y
I
f(I)
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 10 / 62
Functions Applied to Intervals - Example I
Consider the Universe X = {2, 1, 0, 1, 2}
Consider the set A = {0, 1}
Using the Zadeh notation A = {
0
2
+
0
1
+
1
0
+
1
1
+
0
2
}
Consider the mapping y = |4x| + 2
What is the resulting set B on the Universe Y = {2, 6, 10}
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 11 / 62
Functions Applied to Intervals - Example II
Using
B
(y) =
f (A)
(y) =
y=f (x)
A
(x)
and y = |4x| + 2.
B
(2) = {
A
(0)} = 1.
B
(6) = {
A
(1),
A
(1)} = {0, 1} = 1.
B
(10) = {
A
(2),
A
(2)} = {0, 0} = 0.
B = {
1
2
+
1
6
+
0
10
} or B = {2, 10}.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 12 / 62
Using Relations
It is possible to achieve the results using a relation that express the
mapping y = |4x| + 2.
Lets X = {2, 1, 0, 1, 2}.
Lets Y = {0, 1, 2, . . . , 9, 10}
The relation
R =
0 1 2 3 4 5 6 7 8 9 10
2
1
0
1
2
0 0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 1 0 0 0 0
0 0 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 1
B = A R
A = {
0
2
+
0
1
+
1
0
+
1
1
+
0
2
} or more conveniently A = {0, 0, 1, 1, 0}
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 13 / 62
Applying the Relation
Using
B
(y) =
xX
(
A
(x)
R
(x, y))
we nd
B
(y) =
1, for y = 2, 6
0, otherwise
.
Or
B =
0
0
+
0
1
+
1
2
+
0
3
+
0
4
+
0
5
+
1
6
+
0
7
+
0
8
+
0
9
+
0
10
B
(y) =
f (A)
(y) =
y=f (x)
A
(x)
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 17 / 62
Simplifying the Notation
Fuzzy vector is a convenient shorthand for calculations that use
matrix relations.
Fuzzy vector is a vector containing only the fuzzy membership values.
Consider the fuzzy set:
B =
0
0
+
0.2
1
+
0.3
2
+
0.5
3
+
0.7
4
+
0.9
5
+
1
6
+
0
7
+
0
8
+
0
9
+
0
10
, y
Y.
The membership degree at y = y is the maximum of the
membership degrees at x
1
and x
2
more generally, we have
B
(y
) = max
y=f (x
i
)
A
(x)
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 20 / 62
Monotonic Continuous Functions
For each point in the interval:
Compute the image of the interval.
The membership degrees are carried through.
x
y
A
B
(x)
B
(x)
A
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 21 / 62
Monotonic Continuous Functions Ex.
Function: y = f (x) = 0.6 x + 4.
Input: Fuzzy number - around-5.
around 5 = {
0.3
3
+
1.0
5
+
0.3
7
}.
f (around 5) = {
0.3
f (3)
+
1
f (5)
+
0.3
f (7)
}.
f (around 5) = {
0.3
0.63+4
+
1
0.65+4
+
0.3
0.67+4
}.
f (around 5) = {
0.3
5.8
+
1
7
+
0.3
8.2
}.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 22 / 62
Monotonic Continuous Functions Ex.
x y
(
x
)
B
(x)
A
x
3 5 4 7 6 2 1
1
2
3
4
5
6
7
8
(x)
A
3 5 4 7 6
0.3
1.0
x
2 1
7
0
.
3
1
.
0
x
8
.
2
5
.
8
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 23 / 62
Non-Monotonic Continuous Functions Ex.
Function: y = f (x) = x
2
6 x + 11.
Input: Fuzzy number - around-4.
around 4 = {
0.3
2
+
0.6
3
+
1
4
+
0.6
5
+
0.3
6
}.
f (around 4) = {
0.3
f (2)
+
0.6
f (3)
+
1
f (4)
+
0.6
f (5)
+
0.3
f (6)
}.
f (around 4) = {
0.3
3
+
0.6
2
+
1
3
+
0.6
6
+
0.3
11
}.
f (around 4) = {
0.31
3
+
0.6
2
+
0.6
6
+
0.3
11
}.
f (around 4) = {
0.6
2
+
1
3
+
0.6
6
+
0.3
11
}.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 24 / 62
Generalizing
Suppose the input universe is composed of the Cartesian product of
many universes.
The mapping f is dened on the power set of this universe as
f : P(X
1
X
2
X
n
) P(Y).
Let the fuzzy sets A
1
, A
2
, . . . , A
n
be dened on X
1
, X
2
, . . . , X
n
then B = f (A
1
, A
2
, . . . , A
n
).
The membership function of B is dened as
B
(y) = max
y=f (x
1
,x
2
,...,x
n
)
{min [
A
1
(x
1
),
A
2
(x
2
), . . . ,
A
n
(x
n
)]}
This equation is usually called the Zadehs extension principle.
If the function f is a continous-valued expression, the max operator is
replaced by the sup (supremum) which is the least upper bound.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 25 / 62
Example
Inputs: A = {
0.2
1
+
1
2
+
0.7
4
} and B = {
0.5
1
+
1
2
}
Output: f (A, B) = A B (arithmetic product).
A B =
min(0.2, 0.5)
1
+
max[min(0.2, 1), min(0.5, 1)]
2
+
max[min(0.7, 0.5), min(1, 1)]
4
+
min(0.7, 1)
8
0.2
1
+
0.5
2
+
1
4
+
0.7
8
r
11
r
12
. . . r
1j
. . . r
1m
r
21
r
22
. . . r
2j
. . . r
2m
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
r
i 1
r
i 2
. . . r
ij
. . . r
im
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
r
n1
r
n2
. . . r
nj
. . . r
nm
B
i
(y
j
) = r
ij
or in fuzzy vector notation
b
i
= {r
i 1
, r
i 2
, . . . , r
im
}.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 28 / 62
Fuzzy Transform Generalized
For a particular fuzzy input set A its fuzzy image is B = f (A)
B
(y) =
xX
(
A
(x)
R
(x, y))
b = a R.
b
j
= max
i
(min(a
i
, r
ij
))
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 29 / 62
Section Summary
1 Introduction
2 Crisp Functions, Mappings and Relations
3 Functions of Fuzzy Sets
4 Fuzzy Arithmetic
5
Interval Analysis in Arithmetic
6 Approximate Methods of Extension
Vertex Method
DSW Algorithm
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 30 / 62
Fuzzy Numbers
A fuzzy number is fuzzy subset of the universe of a numerical number.
A fuzzy real number is a fuzzy subset of the domain of real numbers.
A fuzzy integer number is a fuzzy subset of the domain of integers.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 31 / 62
Examples of Fuzzy Numbers
1 2 3 4 5 6 7 8 9 10
1.0
( x)
x
1 2 3 4 5 6 7 8 9 10
1.0
( x)
x
Fuzzy Real Number 5
Fuzzy Integer Number 5
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 32 / 62
Fuzzy Arithmetic
Applying the extension principle to arithmetic operations it is possible
to dene fuzzy arithmetic operations
Let x and y be the operands, z the result.
Let A, B and C denote the fuzzy sets that represent the operands x,
y and z respectively.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 33 / 62
Fuzzy Arithmetic
Using the extension principle a fuzzy arithmetic operation denoted by
{+, , , } is dened as
C
(z) = max
z=xy
{min [
A
(x),
B
(y)]}
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 34 / 62
Example of Problem
We will calculate the product of two fuzzy sets dened as:
X =
0
1
+
0.33
2
+
0.66
3
+
1
4
+
0.66
5
+
0.33
6
+
0
7
Y =
0
2
+
0.33
3
+
0.66
4
+
1
5
+
0.66
6
+
0.33
7
+
0
8
0
2
+
0
3
+
0
4
+
0
5
+
0.33
6
+
0.33
8
+
0.33
9
+
0.33
10
+
0.66
12
+
0.33
14
+
0.66
15
+
0.33
16
+
0.66
18
+
1
20
+
0.33
21
+
0.66
24
+
0.66
25
+
0.33
28
+
0.66
30
+
0
32
+
0.33
35
+
0.33
36
+
0
40
+
0.33
42
+
0
48
+
0
49
+
0
56
(
X
)
0 1 2 3 4 5 6 7 8 9
0
0.5
1
Y
(
Y
)
0 10 20 30 40 50 60
0
0.5
1
X Y
(
X
Y
)
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 36 / 62
Section Summary
1 Introduction
2 Crisp Functions, Mappings and Relations
3 Functions of Fuzzy Sets
4 Fuzzy Arithmetic
5
Interval Analysis in Arithmetic
6 Approximate Methods of Extension
Vertex Method
DSW Algorithm
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 37 / 62
Denitions I
Let I
1
and I
2
two interval numbers dened ordered pair of real
numbers with lower and upper bounds.
I
1
= [a, b] where a b and I
2
= [c, d] where c d.
I
1
I
2
= [a, b] [c, d] where {+, , , } is another interval.
When adding or multiplying two intervals we are performing these
operations on the innite number of combinations of pairs from each
of the two intervals.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 38 / 62
Denitions II
[a, b] + [c, d] =[a + c, b + d]
[a, b] [c, d] =[a d, b c]
[a, b] [c, d] =[min(ac, ad, bc, bd), max(ac, ad, bc, bd)]
[a, b] [c, d] =[a, b]
1
d
,
1
c
since 0 / [c, d]
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 39 / 62
Conclusions
When adding or multiplying two intervals we are performing these
operations on the innite number of combinations of pairs from each
of the two intervals.
We only need to nd the endpoints of the intervals to nd the
endpoints of the solutions.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 40 / 62
Section Summary
1 Introduction
2 Crisp Functions, Mappings and Relations
3 Functions of Fuzzy Sets
4 Fuzzy Arithmetic
5
Interval Analysis in Arithmetic
6 Approximate Methods of Extension
Vertex Method
DSW Algorithm
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 41 / 62
Vertex Method
The method is based on a combination of the -cut and standard
interval analysis [Dong and Shah, 1987].
The algorithm is easy to implement and can be computationally
ecient.
1
a b x
0
A
) is
B
= f (I
=f (I
1
, I
2
, . . . , I
n
) (1)
B
min
j
(f (c
j
)), max
j
(f (c
j
))
, j = 1, 2, . . . , N (2)
where c
j
is the coordinate of the jth vertex representing the
n-dimensional Cartesian region.
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 44 / 62
Vertex Algorithm for n-inputs
The method is accurate only when the conditions of continuity and
no extreme points are satised.
An extreme point is a point of maximum or minimum.
Extreme points should be treated as additional vertices E
k
.
B
min
j ,k
(f (c
j
), f (E
k
)), max
j ,k
(f (c
j
), f (E
k
))
,
j = 1, 2, . . . , N and k = 1, 2, . . . , m
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 45 / 62
Example of Problem
We will use Vertex Method to determine the output of the function
y = x(2 x) to an input fuzzy set A = (x).
We will use the three -cuts: = 0
+
, 0.5, 1.0
The corresponding intervals are: I
0
+ = [0.5, 2], I
0.5
= [0.75, 1.5],
I
1
= [1, 1].
The extreme point x = 1, y = 1 can be calculated by derivatives.
0 0.5 1 1.5 2 2.5
0
0.5
1
y=f(x)
x
y
0 0.5 1 1.5 2 2.5
0
0.5
1
A
x
(
x
)
0.75
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 46 / 62
Calculating
I
0
+ = [0.5, 2] c
1
= 0.5, c
2
= 2, E
1
= 1
f (c
1
) = 0.75, f (c
2
) = 0, f (E
1
) = 1
B
0
+ = [min(0.75, 0, 1), max(0.75, 0, 1)] = [0, 1]
I
0.5
= [0.75, 1.5] c
1
= 0.75, c
2
= 1.5, E
1
= 1
f (c
1
) = 0.9375, f (c
2
) = 0.75, f (E
1
) = 1
B
0.5
= [min(0.9375, 0.75, 1), max(0.9375, 0.75, 1)] = [0.75, 1]
I
1
= [1, 1] c
1
= 1, c
2
= 1, E
1
= 1
f (c
1
) = f (c
2
) = f (E
1
) = 1
B
1
= [min(1, 1, 1), max(1, 1, 1)] = [1, 1]
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 47 / 62
Results
0 0.5 1 1.5 2 2.5
0
0.5
1
y=f(x)
x
y
0 0.5 1 1.5 2 2.5
0
0.5
1
A
x
y
=
(
x
)
0.75
0 0.5 1 1.5 2 2.5
0
0.5
1
B
y
(
y
)
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 48 / 62
Another Example of Problem
We will use Vertex Method to calculate the product of two fuzzy sets
dened as:
X =
0
1
+
0.33
2
+
0.66
3
+
1
4
+
0.66
5
+
0.33
6
+
0
7
Y =
0
2
+
0.33
3
+
0.66
4
+
1
5
+
0.66
6
+
0.33
7
+
0
8
20 30 40 50 60
0.66
0.33
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 54 / 62
DSW Algorithm
It uses -cut and standard interval analysis [Dong, Shah and Wong,
1985].
The algorithm:
Repeat for dierent values of where 0 1:
Find the interval(s) in the input membership function(s) that
correspond to this ;
Using standard binary interval operations, compute the interval for the
output membership function for the selected ;
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 55 / 62
Example of Problem
We will use DSW Method to determine the output of the function
y = x(2 + x) to an input fuzzy set A = (x).
We will use the three -cuts: = 0
+
, 0.5, 1.0
The corresponding intervals are: I
0
+ = [0.5, 2], I
0.5
= [0.75, 1.5],
I
1
= [1, 1].
0 0.5 1 1.5 2 2.5
0
2
4
6
8
y=f(x)
x
y
0 0.5 1 1.5 2 2.5
0
0.5
1
A
x
(
x
)
0.75
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 56 / 62
Calculating
I
0
+ = [0.5, 2]
B
0
+ = 2 [0.2, 2] + [0.5
2
, 2
2
] = [1, 4] + [0.25, 4] = [1.25, 8]
I
0.5
= [0.75, 1.5]
B
0.5
= 2 [0.75, 1.5] + [0.75
2
, 1.5
2
] = [1.5, 3] + [0.5625, 2.25] =
[2.0625, 5.25]
I
1
= [1, 1]
B
1
= 2 [1, 1] + [1
2
, 1
2
] = [2, 2] + [1, 1] = [3, 3] = 3
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 57 / 62
Results
0 0.5 1 1.5 2 2.5
0
5
y=f(x)
x
y
0 0.5 1 1.5 2 2.5
0
0.5
1
A
x
(
x
)
0.75
0 1 2 3 4 5 6 7 8 9
0
0.5
1
B
y
(
y
)
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 58 / 62
Another Example of Problem
We will use DSW Method to calculate the product of two fuzzy sets
dened as:
X =
0
1
+
0.33
2
+
0.66
3
+
1
4
+
0.66
5
+
0.33
6
+
0
7
Y =
0
2
+
0.33
3
+
0.66
4
+
1
5
+
0.66
6
+
0.33
7
+
0
8
20 30 40 50 60
0.66
0.33
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 61 / 62
The End
Adriano Cruz, adriano@nce.ufrj.br (PPGI-UFRJ) Extension Principle September 2011 62 / 62