Presentation is loading. Please wait.

Presentation is loading. Please wait.

Efficient Decomposition of Large Fuzzy Functions and Relations.

Similar presentations


Presentation on theme: "Efficient Decomposition of Large Fuzzy Functions and Relations."— Presentation transcript:

1 Efficient Decomposition of Large Fuzzy Functions and Relations

2 Minimization of Fuzzy Functions Fuzzy functions are realized in: –analog hardware –software Why to minimize fuzzy logic functions? –Smaller area –Lower Power –Simpler and faster program –Better learning, Occam Razor - not covered here

3 Minimization Approaches to Fuzzy Functions Two level minimization (Siy,Kandel, Mukaidono, Lee, Rovatti et al) Algebraic factorization (Wielgus) Genetic algorithms (Thrift, Bonarini, many authors) Fuzzy decision diagrams (Moraga, Perkowski) Functional decomposition (Kandel, Kandel and Francioni)

4 Graphical Representations Fuzzy Maps Lattice of variables The Subsumption rule Kandel’s methods to decompose Fuzzy Functions

5 Identities The identities for fuzzy algebra are: Idempotency: X + X = X, X * X = X Commutativity: X + Y = Y + X, X * Y = Y * X Associativity: (X + Y) + Z = X + (Y + Z), (X * Y) * Z = X * (Y* Z) Absorption: X + (X * Y) = X, X * (X + Y) = X Distributivity: X + (Y * Z) = (X + Y) * (X + Z), X * (Y + Z) = (X * Y) + (X * Z) Complement: X’’ = X DeMorgan's Laws: (X + Y)’ = X’ * Y’, (X * Y)’ = X’ + Y’

6 Transformations Some transformations of fuzzy sets with examples follow: x’b + xb = (x + x’)b  b xb + xx’b = xb(1 + x’) = xb x’b + xx’b = x’b(1 + x) = x’b a + xa = a(1 + x) = a a + x’a = a(1 + x’) = a a + xx’a = a a + 0 = a x + 0 = x x * 0 = 0 x + 1 = 1 x * 1 = xExamples: a + xa + x’b + xx’b = a(1 + x) + x’b(1 + x) = a + x’b a + xa + x’a + xx’a = a(1 + x + x’ + xx’) = a

7 Differences Between Boolean Logic and Fuzzy Logic Boolean logic the value of a variable and its inverse are always disjoint (X * X’ = 0) and (X + X’ = 1) because the values are either zero or one. Fuzzy logic membership functions can be either disjoint or non-disjoint. Example of a fuzzy non-linear and linear membership function X is shown (a) with its inverse membership function shown in (b). We first discuss a simplified logic with few literals

8 Fuzzy Intersection and Union From the membership functions shown in the top in (a), and complement X’ (b) the intersection of fuzzy variable X and its complement X’ is shown bottom in (a). From the membership functions shown in the top in (a), and complement X’ (b) the union of fuzzy variable X and its complement X’ is shown bottom in (b).

9 APPROACHES TO FUZZY LOGIC DECOMPOSITION Kandel's and Francioni's Approach based on graphical representations: –Requires subsumption-based reduction to canonical form –Graphical: uses S-Maps and Fuzzy Maps –Decomposition Implicant Pattern (DIP) –Variable Matching DIP’s Table –non-algorithmic –not scalable to larger functions –no software Fuzzy to Multiple-valued Function Conversion Approach and use of Generalized Ashenhurst-Curtis Decomposition Our new approach

10 Short Introduction: multiple-valued logic {0,1} - binary logic (a special case) {0,1,2} - a ternary logic {0,1,2,3} - a quaternary logic, etc Signals can have values from some set, for instance {0,1,2}, or {0,1,2,3} Minimal value MINMIN MAXMAX 2 Maximal value 1 2 1 2 3 3 3

11 New Approach: Fuzzy to Multiple- valued Function Conversion and A/C Decomposition Fuzzy Function Ternary Map Fuzzy Function to Three-valued Function Conversion: –The MAX operation forms the result –The result from the canonical form is the same as from the non-canonical form Thus time consuming reduction to canonical form is not necessary

12 Fuzzy Function Ternary Map This shows the mapping between the fuzzy terms and terms in the ternary map.

13 Conversion Fuzzy Function to Three-valued Function Conversion Example Conversion of the Fuzzy function terms: x 2 x’ 2 x’ 1 x 2 x 1 x’ 2 x 1 x’ 1 x’ 2 In non- canonical form using the MIN operation as shown for f = x 2 x’ 2 +x’ 1 x 2 +x 1 x’ 2 + x 1 x’ 1 x’ 2 x 2 x’ 2 x’ 1 x 2 x 1 x’ 2 x 1 x’ 1 x’ 2 Non-canonical

14 The MAX operation forms the result Combining the three-valued term functions into a single three-valued function is performed using the MAX Operation

15 The result from the canonical form is the same as from the non-canonical form F = x 2 x’ 2 +x’ 1 x 2 +x 1 x’ 2 + x 1 x’ 1 x’ 2 conversion is equal to F(x 1 x 2 ) =x’ 1 x 2 +x 1 x’ 2 canonical Non-canonical

16 F(x,y,z) = xz + x’y’zz’ + yz Entire flow of our method Initial non-canonical expression Decomposed Function Generalized Ashenhurst- Curtis Decomposition Fuzzy to Ternary Conversion decomposed expression H(x,y) = Gz + zz’. G(x,y) = x+y

17 F(x,y,z) = xz + x’y’zz’ + yz Entire flow of our method Initial non-canonical expression Decomposition is based on finding patterns in this table 0 1 0 0 1 1 0 1 2 Only three patterns This way, the table is rewritten to the table from the next page

18 0 1 0 0 1 1 0 1 2

19 Multiple-valued function minimized and converted to fuzzy circuit Two solutions are obtained in this case G(x,y) = x+y, H(x,y) = Gz+zz’ Fuzzy terms Gz, G’zz’ and zz’ of H are shown. G(x,y) = x+y, H(x,y) = Gz+G’zz’

20 Generalization of the Ashenhurst- Curtis decomposition model

21 This kind of tables known from Rough Sets, Decision Trees, etc Data Mining

22 Decomposition is hierarchical At every step many decompositions exist

23 Ashenhurst Functional Decomposition Evaluates the data function and attempts to decompose into simpler functions. if A  B = , it is disjoint decomposition if A  B  , it is non-disjoint decomposition X B - bound set A - free set F(X) = H( G(B), A ), X = A  B

24 A Standard Map of function ‘z’ Bound Set Free Set a b \ c z Columns 0 and 1 and columns 0 and 2 are compatible column compatibility = 2 Explain the concept of generalized don’t cares

25 NEW Decomposition of Multi-Valued Relations if A  B = , it is disjoint decomposition if A  B  , it is non-disjoint decomposition F(X) = H( G(B), A ), X = A  B Relation A B X

26 Forming a CCG from a K-Map z Bound Set Free Set a b \ c Columns 0 and 1 and columns 0 and 2 are compatible column compatibility index = 2 C1C1 C2C2 C0C0 Column Compatibility Graph

27 Forming a CIG from a K-Map Columns 1 and 2 are incompatible chromatic number = 2 z a b \ c C1C1 C2C2 C0C0 Column Incompatibility Graph

28 CCG and CIG are complementary C1C1 C2C2 C0C0 Column Incompatibility Graph C1C1 C2C2 C0C0 Column Compatibility Graph Maximal clique covering clique partitioning Graph coloring graph multi- coloring

29 clique partitioning example.

30 Maximal clique covering example.

31 G \ c g = a high pass filter whose acceptance threshold begins at c > 1 Map of relation G G \ c From CIG After induction

32 Cost Function Decomposed Function Cardinality is the total cost of all blocks. Cost is defined for a single block in terms of the block’s n inputs and m outputs Cost := m * 2 n

33 Example of DFC calculation B1 B2 B3 Cost(B3) =2 2 *1=4 Cost(B1) =2 4 *1=16 Cost(B2) =2 3 *2=16 Total DFC = 16 + 16 + 4 = 36 Other cost functions

34 Decomposition Algorithm Find a set of partitions (A i, B i ) of input variables (X) into free variables (A) and bound variables (B) For each partitioning, find decomposition F(X) = H i (G i (B i ), A i ) such that column multiplicity is minimal, and calculate DFC Repeat the process for all partitioning until the decomposition with minimum DFC is found.

35 Algorithm Requirements Since the process is iterative, it is of high importance that minimization of the column multiplicity index is done as fast as possible. absolute minimumAt the same time, for a given partitioning, it is important that the value of the column multiplicity is as close to the absolute minimum value

36 Column Multiplicity 3 2 1 4 Bound Set Free Set

37 Column Multiplicity-other example 3 2 1 4 Bound Set 1 2 3 4 Free Set AB CD D C 0 1 0 1 0 0 1 1 X=G(C,D) X=C in this case But how to calculate function H?

38 relation Decomposition of multiple-valued relation Karnaugh Map Compatibility Graph for columns compatible Kmap of block G Kmap of block H One level of decomposition

39 Compatibility of columns for Relations is not transitive ! This is an important difference between decomposing functions and relations

40 Decomposition of Relations Now H is a relation which can be either decomposed or minimized directly in a sum-of- products fashion

41 Variable ordering But how to select good partitions of variables?

42 Vacuous variables removing Variables b and d reduce uncertainty o f y to 0 which means they provide all the information necessary for determination of the output y Variables a and c are vacuous

43 Example of removing inessential variables (a) original function (b) variable a removed (c) variable b removed, variable c is no longer inessential.

44 Discovering new concepts purchasing a carDiscovering concepts useful for purchasing a car

45 OTHER APPROACHES TO FUZZY LOGIC MINIMIZATION Graphical Representations Fuzzy to Multiple-valued Function Conversion Approach Fuzzy Logic Decision Diagrams Approach Fuzzy Logic Multiplexer

46 Fuzzy map may be regarded as an extension of the Veitch diagram, which forms also the basis for the Karnauph map. The functions shown in (a) and (b) are equivalent to f(x 1, x 2 ) = x’ 1 x 2 + x 1 x’ 1 x’ 2 = x 1 x’ 1 Fuzzy Maps (b) f(x 1, x 2 ) = x 1 x’ 1 (a) f(x 1, x 2 ) =x 1 x’ 1 x 2 + x 1 x’ 1 x’ 2

47 (b) f(x 1, x 2 ) = x 1 x’ 1 (a) f(x 1, x 2 ) =x 1 x’ 1 x 2 + x 1 x’ 1 x’ 2 x 2 =0.3x 2 ’ =0.7 (a) f(x 1, x 2 ) =min(x 1, x’ 1, 0.3) max min(x 1, x’ 1, 07) = min(0.5, 0.3) max min (0.5, 0.7) = 0.3 max 0.5 = 0.5 = x 1 x’ 1 Assuming max value of x1 x’1 Please check other values

48 Lattice of Two Variables Shows the relationship of all the possible terms. Shows which two terms can be reduced to a single term.

49  x i x’ I  +  ’ x i x’ I  = x i x’ I   x i x’ I  +  ’ x i x’ I  = x i x’ I  The Subsumption Rule Used to reduce a fuzzy logic function. Operations on two variable map are shown with I subsuming i.

50 Used to reduce a fuzzy logic function. The subsumption rule is:  x i x’ I  +  ’ x i x’ I  = x i x’ I  Operations on two variable map are shown with I subsuming i. The Subsumption Rule

51 Form Needed to Decompose Fuzzy Functions Form requirements: 1.Sum-of-products 2.Canonical Figures show the function x 2 x’ 2 + x’ 1 x 2 + x 1 x’ 2 + x 1 x’ 1 x’ 2 before using the subsuming rules in (a) and after in (d) x’ 1 x 2 + x 1 x’ 2. x1

52 x 1 x’ 2 + x 1 x’ 1 x’ 2 x 2 x’ 2 + x’ 1 x 2 + x 1 x’ 2 + x 1 x’ 1 x’ 2 x 1 x’ 2 = x 2 x’ 2 + x’ 1 x 2 + x 1 x’ 2 (1+ x’ 1 ) x 1 x’ 2 = x 2 x’ 2 + x’ 1 x 2 + x 1 x’ 2 x 1 x’ 2 = x’ 1 x 2 + x 1 x’ 2.  x i x’ I  +  ’ x i x’ I  = x i x’ I   x i x’ I  +  ’ x i x’ I  = x i x’ I  subsumption Let us use subsumption to verify:

53 Graphical Representations Fuzzy Maps Lattice of two variables The Subsumption rule Form to Decompose a Fuzzy Functions

54 APPROACHES TO FUZZY LOGIC DECOMPOSITION Graphical Representations Fuzzy Logic Decision Diagrams Approach Fuzzy Logic Multiplexer

55 Fuzzy Logic Decision Diagrams Approach w w’(z + x’ z z’ + xz) + w’ (x’z z’ + xz) + w(z+xz)+ xz

56 Result of Example using (FLDD) (w+x)z + (w+x)’ z’z = wz + xz + w’x’z’z + w w’z + w w’ x’ z z’

57 Fuzzy Logic Multiplexer d 3 xx’

58 Fuzzy Logic Circuit Implemented using Multiplexers


Download ppt "Efficient Decomposition of Large Fuzzy Functions and Relations."

Similar presentations


Ads by Google