SlideShare a Scribd company logo
FUZZY CONTROL
Example:
Consider a dynamic system of first order dynamics and delay
with a transfer function
G s
e
s
s
( )
.
=
+
−
12
10 1
The reference signal is a unit step. Develop a fuzzy PI(D)
type of controller for it and study its performance.
Solution:
The Simulink diagram of the system is shown below It is built
in Simulink in the usual fashion by first opening Simulink
with the command
» simulink
and then proceeding to use blocks in the appropriate block
libraries.
How to cope with steady-state error? To reduce it to zero
requires PI type of fuzzy controller. The integral part of the
controller, drives the error to zero. If only two membership
functions are used, the rule base becomes
• PI type FLC (velocity algorithm)
– If e(k) is positive and ∆e(k) is positive, then ∆u(k) is positive
– If e(k) is positive and ∆e(k) is negative, then ∆u(k) is zero
– If e(k) is negative and ∆e(k) is positive, then ∆u(k) is zero
– If e(k) is negative and ∆e(k) is negative, then ∆u(k) is
negative
At this point one has to observe that in the simulation we are
going to mix a continuous process and a discrete controller.
In practice this requires A/D and D/A-conversions. Simulink
has so-called Zero-order hold block to handle the situation.
For laymen it is also possible to skip this practical problem
completely, because Simulink will, by default, allow to mix
discrete and continuous signals.
The fuzzy controller uses error e(k) and change in ∆e = e(k)-
e(k-1) going into Fuzzy Logic Controller block. In the latter
case, we need the appropriate transfer function block from
Simulink block library. A simple calculation produces the
following
1
( ) ( 1) (1 ) ( )e e k e k z e k−
∆ = − − = −
Since the input to the block is e(k), the transfer function we
want is
1( )
(1 )
( )
e k
z
e k
−∆
= − .
Observe that the output is ∆u=u(k)-u(k-1). The appropriate
transfer function has ∆u as the output and u as the input.
1 1
( ) ( 1) ( ) ( ) (1 ) ( )u u k u k u k z u k z u k− −
∆ = − − = − = −
or
1
1
(1 )
u
u z−
=
∆ −
To design the fuzzy controller we open the Fuzzy Logic
Toolbox GUI in the usual fashion by typing
fuzzy
Set up a fuzzy system with two outputs and one output. For
simplicity, use two, triangular membership functions at the
input and three at the output. The resulting system is shown
in the following figures.
In order to transmit the knowledge of the fuzzy system to
Simulink, save the FIS to workspace. Call it FPI.
Next go to Simulink and configure the overall system shown
below.
The two discrete filters are formed by changing Numerator
and Denominator parameters appropriately.
Remember that the Fuzzy Logic Controller needs two inputs,
but can accept only one. Therefore introduce a multiplexer,
Mux.
The fuzzy controller block library is found either by typing
Fuzblock or opening first Blocksets & Toolboxes and then
Fuzzy Logic Toolbox
Once you move this block to the system configuration, you
have to click it open and call it FPI.
Now you can start simulation, but first adjust parameters as
follows:
Open Parameters and change Stop time to 50 s.
Now start the simulation. The result is seen from the scope.
If a better response is needed, many ways can be tried. The
gains can be changed, more membership functions may be
added and their positions hanged.

More Related Content

What's hot

Block diagram representation of DT systems
Block diagram representation of DT systemsBlock diagram representation of DT systems
Block diagram representation of DT systems
Dr.SHANTHI K.G
 
Parallel algorithm in linear algebra
Parallel algorithm in linear algebraParallel algorithm in linear algebra
Parallel algorithm in linear algebra
Harshana Madusanka Jayamaha
 
Deadbeat Response Design _8th lecture
Deadbeat Response Design _8th lectureDeadbeat Response Design _8th lecture
Deadbeat Response Design _8th lecture
Khalaf Gaeid Alshammery
 
Forelasning4
Forelasning4Forelasning4
Forelasning4
Memo Love
 
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault ToleranceParallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
University of Technology - Iraq
 
Introduction to simulink (1)
Introduction to simulink (1)Introduction to simulink (1)
Introduction to simulink (1)
Memo Love
 
Parallel quicksort cz. 1
Parallel quicksort cz. 1Parallel quicksort cz. 1
Parallel quicksort cz. 1
Mikołaj Olszewski
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
guest084d20
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
Ameen San
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
Danish Javed
 
Block diagrams
Block diagramsBlock diagrams
Block diagrams
Damion Lawrence
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming project
Assignmentpedia
 
linear algebra in control systems
linear algebra in control systemslinear algebra in control systems
linear algebra in control systems
Ganesh Bhat
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
guest084d20
 
Block diagram representation 3
Block diagram representation 3Block diagram representation 3
Block diagram representation 3
Syed Saeed
 
Pertemuan 05. SFG (Signal Flow Graph)
Pertemuan 05. SFG (Signal Flow Graph)Pertemuan 05. SFG (Signal Flow Graph)
Pertemuan 05. SFG (Signal Flow Graph)
Aprianti Putri
 
Modern control system
Modern control systemModern control system
Modern control system
Pourya Parsa
 
Lec15
Lec15Lec15
control system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functionscontrol system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functions
nalan karunanayake
 
Discrete state space model 9th &10th lecture
Discrete  state space model   9th  &10th  lectureDiscrete  state space model   9th  &10th  lecture
Discrete state space model 9th &10th lecture
Khalaf Gaeid Alshammery
 

What's hot (20)

Block diagram representation of DT systems
Block diagram representation of DT systemsBlock diagram representation of DT systems
Block diagram representation of DT systems
 
Parallel algorithm in linear algebra
Parallel algorithm in linear algebraParallel algorithm in linear algebra
Parallel algorithm in linear algebra
 
Deadbeat Response Design _8th lecture
Deadbeat Response Design _8th lectureDeadbeat Response Design _8th lecture
Deadbeat Response Design _8th lecture
 
Forelasning4
Forelasning4Forelasning4
Forelasning4
 
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault ToleranceParallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
 
Introduction to simulink (1)
Introduction to simulink (1)Introduction to simulink (1)
Introduction to simulink (1)
 
Parallel quicksort cz. 1
Parallel quicksort cz. 1Parallel quicksort cz. 1
Parallel quicksort cz. 1
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Block diagrams
Block diagramsBlock diagrams
Block diagrams
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming project
 
linear algebra in control systems
linear algebra in control systemslinear algebra in control systems
linear algebra in control systems
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithms
 
Block diagram representation 3
Block diagram representation 3Block diagram representation 3
Block diagram representation 3
 
Pertemuan 05. SFG (Signal Flow Graph)
Pertemuan 05. SFG (Signal Flow Graph)Pertemuan 05. SFG (Signal Flow Graph)
Pertemuan 05. SFG (Signal Flow Graph)
 
Modern control system
Modern control systemModern control system
Modern control system
 
Lec15
Lec15Lec15
Lec15
 
control system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functionscontrol system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functions
 
Discrete state space model 9th &10th lecture
Discrete  state space model   9th  &10th  lectureDiscrete  state space model   9th  &10th  lecture
Discrete state space model 9th &10th lecture
 

Similar to Fuzzy control design_tutorial

Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond Brunkow
 
Chapter10
Chapter10Chapter10
Chapter10
Kiya Alemayehu
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller Assignment
Isham Rashik
 
Simulink 1.pdf
Simulink 1.pdfSimulink 1.pdf
Simulink 1.pdf
ssuser1dfd371
 
Control engineering module 3 part-A
Control engineering  module 3 part-AControl engineering  module 3 part-A
Control engineering module 3 part-A
Mohammed Imran
 
Mechatronics (2016) Unit II.pptx
Mechatronics (2016) Unit II.pptxMechatronics (2016) Unit II.pptx
Mechatronics (2016) Unit II.pptx
nitcse
 
1.[1 5]implementation of pre compensation fuzzy for a cascade pid controller ...
1.[1 5]implementation of pre compensation fuzzy for a cascade pid controller ...1.[1 5]implementation of pre compensation fuzzy for a cascade pid controller ...
1.[1 5]implementation of pre compensation fuzzy for a cascade pid controller ...
Alexander Decker
 
Lectures upto block diagram reduction
Lectures upto block diagram reductionLectures upto block diagram reduction
Lectures upto block diagram reduction
UthsoNandy
 
Ece 415 control systems, fall 2021 computer project 1
Ece 415 control systems, fall 2021 computer project  1 Ece 415 control systems, fall 2021 computer project  1
Ece 415 control systems, fall 2021 computer project 1
ronak56
 
Lab03
Lab03Lab03
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
shivamverma394
 
Control tutorials for matlab and simulink introduction pid controller desig...
Control tutorials for matlab and simulink   introduction pid controller desig...Control tutorials for matlab and simulink   introduction pid controller desig...
Control tutorials for matlab and simulink introduction pid controller desig...
ssuser27c61e
 
control system lab 02 - PID tuning
control system lab 02 - PID tuning control system lab 02 - PID tuning
control system lab 02 - PID tuning
nalan karunanayake
 
New controllers efficient model based design method
New controllers efficient model based design methodNew controllers efficient model based design method
New controllers efficient model based design method
Alexander Decker
 
reduc_inclass.pdf
reduc_inclass.pdfreduc_inclass.pdf
reduc_inclass.pdf
Mahamad Jawhar
 
TRANSFER FUNCTION (4).pptx
TRANSFER FUNCTION (4).pptxTRANSFER FUNCTION (4).pptx
TRANSFER FUNCTION (4).pptx
ankit317032
 
control_5.pptx
control_5.pptxcontrol_5.pptx
control_5.pptx
ewnetukassa2
 
Block Diagram For Control Systems.
Block Diagram For Control Systems.Block Diagram For Control Systems.
Block Diagram For Control Systems.
Suleyman Demirel University
 
Simulink
SimulinkSimulink
Simulink
Al Mtdrs
 
Adaptive neural network controller Presentation
Adaptive neural network controller PresentationAdaptive neural network controller Presentation
Adaptive neural network controller Presentation
Nguyen Cong Dan
 

Similar to Fuzzy control design_tutorial (20)

Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
 
Chapter10
Chapter10Chapter10
Chapter10
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller Assignment
 
Simulink 1.pdf
Simulink 1.pdfSimulink 1.pdf
Simulink 1.pdf
 
Control engineering module 3 part-A
Control engineering  module 3 part-AControl engineering  module 3 part-A
Control engineering module 3 part-A
 
Mechatronics (2016) Unit II.pptx
Mechatronics (2016) Unit II.pptxMechatronics (2016) Unit II.pptx
Mechatronics (2016) Unit II.pptx
 
1.[1 5]implementation of pre compensation fuzzy for a cascade pid controller ...
1.[1 5]implementation of pre compensation fuzzy for a cascade pid controller ...1.[1 5]implementation of pre compensation fuzzy for a cascade pid controller ...
1.[1 5]implementation of pre compensation fuzzy for a cascade pid controller ...
 
Lectures upto block diagram reduction
Lectures upto block diagram reductionLectures upto block diagram reduction
Lectures upto block diagram reduction
 
Ece 415 control systems, fall 2021 computer project 1
Ece 415 control systems, fall 2021 computer project  1 Ece 415 control systems, fall 2021 computer project  1
Ece 415 control systems, fall 2021 computer project 1
 
Lab03
Lab03Lab03
Lab03
 
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
MODELLING, ANALYSIS AND SIMULATION OF DYNAMIC SYSTEMS USING CONTROL TECHNIQUE...
 
Control tutorials for matlab and simulink introduction pid controller desig...
Control tutorials for matlab and simulink   introduction pid controller desig...Control tutorials for matlab and simulink   introduction pid controller desig...
Control tutorials for matlab and simulink introduction pid controller desig...
 
control system lab 02 - PID tuning
control system lab 02 - PID tuning control system lab 02 - PID tuning
control system lab 02 - PID tuning
 
New controllers efficient model based design method
New controllers efficient model based design methodNew controllers efficient model based design method
New controllers efficient model based design method
 
reduc_inclass.pdf
reduc_inclass.pdfreduc_inclass.pdf
reduc_inclass.pdf
 
TRANSFER FUNCTION (4).pptx
TRANSFER FUNCTION (4).pptxTRANSFER FUNCTION (4).pptx
TRANSFER FUNCTION (4).pptx
 
control_5.pptx
control_5.pptxcontrol_5.pptx
control_5.pptx
 
Block Diagram For Control Systems.
Block Diagram For Control Systems.Block Diagram For Control Systems.
Block Diagram For Control Systems.
 
Simulink
SimulinkSimulink
Simulink
 
Adaptive neural network controller Presentation
Adaptive neural network controller PresentationAdaptive neural network controller Presentation
Adaptive neural network controller Presentation
 

Recently uploaded

Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
PriyankaKilaniya
 
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdfSri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
Balvir Singh
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
sydezfe
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
Atif Razi
 
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUESAN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
drshikhapandey2022
 
Supermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdfSupermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdf
Kamal Acharya
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
upoux
 
309475979-Creativity-Innovation-notes-IV-Sem-2016-pdf.pdf
309475979-Creativity-Innovation-notes-IV-Sem-2016-pdf.pdf309475979-Creativity-Innovation-notes-IV-Sem-2016-pdf.pdf
309475979-Creativity-Innovation-notes-IV-Sem-2016-pdf.pdf
Sou Tibon
 
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Transcat
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
Kamal Acharya
 
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASICINTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
GOKULKANNANMMECLECTC
 
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
DharmaBanothu
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
upoux
 
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
SELENIUM CONF -PALLAVI SHARMA - 2024.pdfSELENIUM CONF -PALLAVI SHARMA - 2024.pdf
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
Pallavi Sharma
 
Beckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview PresentationBeckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview Presentation
VanTuDuong1
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
Dwarkadas J Sanghvi College of Engineering
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
Kamal Acharya
 
Ericsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.pptEricsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.ppt
wafawafa52
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
MuhammadJazib15
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
b0754201
 

Recently uploaded (20)

Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
 
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdfSri Guru Hargobind Ji - Bandi Chor Guru.pdf
Sri Guru Hargobind Ji - Bandi Chor Guru.pdf
 
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
一比一原版(uoft毕业证书)加拿大多伦多大学毕业证如何办理
 
Applications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdfApplications of artificial Intelligence in Mechanical Engineering.pdf
Applications of artificial Intelligence in Mechanical Engineering.pdf
 
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUESAN INTRODUCTION OF AI & SEARCHING TECHIQUES
AN INTRODUCTION OF AI & SEARCHING TECHIQUES
 
Supermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdfSupermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdf
 
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
一比一原版(uofo毕业证书)美国俄勒冈大学毕业证如何办理
 
309475979-Creativity-Innovation-notes-IV-Sem-2016-pdf.pdf
309475979-Creativity-Innovation-notes-IV-Sem-2016-pdf.pdf309475979-Creativity-Innovation-notes-IV-Sem-2016-pdf.pdf
309475979-Creativity-Innovation-notes-IV-Sem-2016-pdf.pdf
 
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
 
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASICINTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
INTRODUCTION TO ARTIFICIAL INTELLIGENCE BASIC
 
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
 
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
SELENIUM CONF -PALLAVI SHARMA - 2024.pdfSELENIUM CONF -PALLAVI SHARMA - 2024.pdf
SELENIUM CONF -PALLAVI SHARMA - 2024.pdf
 
Beckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview PresentationBeckhoff Programmable Logic Control Overview Presentation
Beckhoff Programmable Logic Control Overview Presentation
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
 
Ericsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.pptEricsson LTE Throughput Troubleshooting Techniques.ppt
Ericsson LTE Throughput Troubleshooting Techniques.ppt
 
Impartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 StandardImpartiality as per ISO /IEC 17025:2017 Standard
Impartiality as per ISO /IEC 17025:2017 Standard
 
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptxSENTIMENT ANALYSIS ON PPT AND Project template_.pptx
SENTIMENT ANALYSIS ON PPT AND Project template_.pptx
 

Fuzzy control design_tutorial

  • 2. Example: Consider a dynamic system of first order dynamics and delay with a transfer function G s e s s ( ) . = + − 12 10 1 The reference signal is a unit step. Develop a fuzzy PI(D) type of controller for it and study its performance. Solution: The Simulink diagram of the system is shown below It is built in Simulink in the usual fashion by first opening Simulink with the command » simulink and then proceeding to use blocks in the appropriate block libraries. How to cope with steady-state error? To reduce it to zero requires PI type of fuzzy controller. The integral part of the controller, drives the error to zero. If only two membership functions are used, the rule base becomes • PI type FLC (velocity algorithm) – If e(k) is positive and ∆e(k) is positive, then ∆u(k) is positive – If e(k) is positive and ∆e(k) is negative, then ∆u(k) is zero – If e(k) is negative and ∆e(k) is positive, then ∆u(k) is zero – If e(k) is negative and ∆e(k) is negative, then ∆u(k) is negative At this point one has to observe that in the simulation we are going to mix a continuous process and a discrete controller. In practice this requires A/D and D/A-conversions. Simulink
  • 3. has so-called Zero-order hold block to handle the situation. For laymen it is also possible to skip this practical problem completely, because Simulink will, by default, allow to mix discrete and continuous signals. The fuzzy controller uses error e(k) and change in ∆e = e(k)- e(k-1) going into Fuzzy Logic Controller block. In the latter case, we need the appropriate transfer function block from Simulink block library. A simple calculation produces the following 1 ( ) ( 1) (1 ) ( )e e k e k z e k− ∆ = − − = − Since the input to the block is e(k), the transfer function we want is 1( ) (1 ) ( ) e k z e k −∆ = − . Observe that the output is ∆u=u(k)-u(k-1). The appropriate transfer function has ∆u as the output and u as the input. 1 1 ( ) ( 1) ( ) ( ) (1 ) ( )u u k u k u k z u k z u k− − ∆ = − − = − = − or 1 1 (1 ) u u z− = ∆ − To design the fuzzy controller we open the Fuzzy Logic Toolbox GUI in the usual fashion by typing fuzzy
  • 4. Set up a fuzzy system with two outputs and one output. For simplicity, use two, triangular membership functions at the input and three at the output. The resulting system is shown in the following figures.
  • 5.
  • 6. In order to transmit the knowledge of the fuzzy system to Simulink, save the FIS to workspace. Call it FPI. Next go to Simulink and configure the overall system shown below.
  • 7. The two discrete filters are formed by changing Numerator and Denominator parameters appropriately.
  • 8. Remember that the Fuzzy Logic Controller needs two inputs, but can accept only one. Therefore introduce a multiplexer, Mux. The fuzzy controller block library is found either by typing Fuzblock or opening first Blocksets & Toolboxes and then Fuzzy Logic Toolbox Once you move this block to the system configuration, you have to click it open and call it FPI.
  • 9. Now you can start simulation, but first adjust parameters as follows: Open Parameters and change Stop time to 50 s.
  • 10. Now start the simulation. The result is seen from the scope. If a better response is needed, many ways can be tried. The gains can be changed, more membership functions may be added and their positions hanged.