SlideShare uma empresa Scribd logo
1 de 10
Baixar para ler offline
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.

Mais conteúdo relacionado

Mais procurados

Block diagram representation of DT systems
Block diagram representation of DT systemsBlock diagram representation of DT systems
Block diagram representation of DT systemsDr.SHANTHI K.G
 
Forelasning4
Forelasning4Forelasning4
Forelasning4Memo 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 ToleranceUniversity of Technology - Iraq
 
Introduction to simulink (1)
Introduction to simulink (1)Introduction to simulink (1)
Introduction to simulink (1)Memo Love
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithmsguest084d20
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introductionAmeen San
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithmsDanish Javed
 
Matlab programming project
Matlab programming projectMatlab programming project
Matlab programming projectAssignmentpedia
 
linear algebra in control systems
linear algebra in control systemslinear algebra in control systems
linear algebra in control systemsGanesh Bhat
 
Parallel algorithms
Parallel algorithmsParallel algorithms
Parallel algorithmsguest084d20
 
Block diagram representation 3
Block diagram representation 3Block diagram representation 3
Block diagram representation 3Syed 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 systemPourya Parsa
 
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 functionsnalan 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 lectureKhalaf Gaeid Alshammery
 

Mais procurados (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
 

Semelhante a 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-Sp15Raymond Brunkow
 
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 AssignmentIsham Rashik
 
Control engineering module 3 part-A
Control engineering  module 3 part-AControl engineering  module 3 part-A
Control engineering module 3 part-AMohammed Imran
 
Mechatronics (2016) Unit II.pptx
Mechatronics (2016) Unit II.pptxMechatronics (2016) Unit II.pptx
Mechatronics (2016) Unit II.pptxnitcse
 
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 reductionUthsoNandy
 
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
 
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 methodAlexander Decker
 
TRANSFER FUNCTION (4).pptx
TRANSFER FUNCTION (4).pptxTRANSFER FUNCTION (4).pptx
TRANSFER FUNCTION (4).pptxankit317032
 
Adaptive neural network controller Presentation
Adaptive neural network controller PresentationAdaptive neural network controller Presentation
Adaptive neural network controller PresentationNguyen Cong Dan
 

Semelhante a 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
 

Último

Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 

Último (20)

(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 

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.