Fuzzy modelling using sciFLT
-
Upload
umang-shukla -
Category
Data & Analytics
-
view
286 -
download
13
Transcript of Fuzzy modelling using sciFLT
![Page 1: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/1.jpg)
Hello!INTRODUCTION TO FUZZY LOGIC AND FUZZY
DECISION MAKING SYSTEM USING SCILAB
U11CO015
![Page 2: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/2.jpg)
What is Fuzzy Logic ?
Fuzzy logic is an approach to computing based on "degrees of truth" rather than the usual "true or false" boolean logic
It was first advanced by Dr. Lotfi Zadeh of the University of California
He said any logical system could be fuzzified.
![Page 3: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/3.jpg)
LET’S REVIEW SOME CONCEPTS
Fuzzy Sets
Let X be a non empty set, A fuzzy set A in X is characterized by its membership function µA: X -> [0,1], where µA(x) is
the degree of membership of element x in fuzzy set A for each x ∈ X .
Operations
UnionIntersectionComplementComtainment
Membership Function
They map elements of a fuzzy set to real numbered values in the interval 0
to 1. Example:- Triangular, Trapezoidal, S-
shaped, Sigmoid, Pi-function
Fuzzification
The process of transforming crisp
(bivalued) input values into linguistic values is called
fuzzification
Defuzzification
Defuzzification converts the fuzzy values into crisp (bivalued) value.
Types :- Max-membership method Centroid method Weighted average method
![Page 4: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/4.jpg)
➜ sciFLT is a Fuzzy Logic Toolbox for scilab. The toolbox was written in a mix of C, Fortran, TK/TCL and scilab Code.
➜ sciFLT was fully tested under Windows and Linux, both using Scilab 3.0
➜ sciFLT works with Mamdani and Sugeno fuzzy logic systems (FLS).
sciFLT Tool of Scilab
![Page 5: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/5.jpg)
➜ atomsInstall('sciFLT')
➜ ATOMS Module manager –> Modeling and Control Tools –> Fuzzy Logic Toolbox or use Start the sciFLT graphical user interface with the command “editfls”
➜ GUI editor: Built in editor to change properties, inputs/outputs variables, member functions, rules.
sciFLT Tool of Scilab
![Page 6: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/6.jpg)
STEPS
![Page 7: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/7.jpg)
Mamdani or Sugeno
1.CHOOSE TYPE OF
FLS
![Page 8: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/8.jpg)
Method used to defuzzify, complement, union and
intersection
2.FILL OUT
DESCRIPTION LINK
![Page 9: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/9.jpg)
3.DEFINE INPUTS
![Page 10: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/10.jpg)
4.DEFINE OUTPUTS
![Page 11: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/11.jpg)
5.DEFINE RULES
![Page 12: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/12.jpg)
➜ We can plot it using plotsurf( filename )
➜ We can evaluate it using evalfls([points], filename)
eg y = evalfls([5,5],tipfls)
Important commands
![Page 13: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/13.jpg)
For commandline
people
![Page 14: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/14.jpg)
Seeing input variables
![Page 15: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/15.jpg)
Seeing output variables
![Page 16: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/16.jpg)
Seeing the surface formed
![Page 17: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/17.jpg)
Thanks!Any questions?
![Page 18: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/18.jpg)
Types of Fuzzy Logic systems: At this stage, sciFLT can deal with Takagi-Sugeno Fuzzy and Mamdani fuzzy systems usage.
XCOS support: Member functions, S-Norm, T-Norm, Complement and Fuzzy Logic System (fls) are supported. Also include a palette.
S-Norm Class supported: Dubois-Prade, Yager, Drastic sum, Einstein, sum, Algebraic sum, Maximum.
T-Norm Class supported: Dubois-Prade, Yager, Drastic product, Einstein product, Algebraic product, Minimum
Complement Class supported: One (classic), Yager, Dubois.
Implication method supported: Product, Minimum
Aggregation method supported: Algebraic Sum, Maximum
Defuzzification method supported: Centroide, Bisector, Mean of Maximum, Largest of Maximum, Smallest of Maximu, Weighted Average, Center Average.
Member functions supported: Triangular, Trapezoidal, Gaussian, ExtendedGaussian, Sigmoidal, Product of two Sigmoidal, Difference of two sigmoidal,S-Shaped, Z-Shaped, Pi-Shaped. Linear and Const as output for Takagi-Sugenotype.
Properties ?
![Page 19: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/19.jpg)
The main difference between Mamdani and Sugeno is that the Sugeno output membership functions are either linear or constant.
Advantages of the Sugeno MethodIt is computationally efficient.It works well with linear techniques (e.g., PID control).It works well with optimization and adaptive techniques.It has guaranteed continuity of the output surface.It is well suited to mathematical analysis.
Advantages of the Mamdani MethodIt is intuitive.It has widespread acceptance.It is well suited to human input.
![Page 20: Fuzzy modelling using sciFLT](https://reader030.fdocuments.net/reader030/viewer/2022012305/55ad54881a28ab5f6b8b46df/html5/thumbnails/20.jpg)
This minimum operator is one of the "triangular norms".With the T-norms there are the T-conorms, also called the S-norms.
They model union. The maximum operator is an S-norm. It is the blue line in the picture above.