SlideShare a Scribd company logo
1 of 37
Download to read offline
Objectives…Objectives…Objectives…Objectives…Objectives…Objectives…Objectives…Objectives…
IntroductionIntroduction..
ApproachApproach..
ApplicationApplication..
9/12/2013 Mahesh J. vadhavaniya 1
ApplicationApplication..
SummarySummary..
DemoDemo..
IntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroduction
FuzzyFuzzy LogicLogic definesdefines thethe controlcontrol strategystrategy onon aa LinguisticLinguistic
levellevel..
ProblemProblem--solvingsolving controlcontrol systemsystem methodologymethodology..
What is Fuzzy Logic ?
9/12/2013 Mahesh J. vadhavaniya 2
ProblemProblem--solvingsolving controlcontrol systemsystem methodologymethodology..
LinguisticLinguistic oror “Fuzzy"“Fuzzy" variablesvariables
ExampleExample::
IFIF (process(process isis tootoo hot)hot)
ANDAND (process(process isis heatingheating rapidly)rapidly)
THENTHEN (cool(cool thethe processprocess quickly)quickly)
IntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroduction
DescribeDescribe thethe valuevalue ofof variablesvariables
Apparatus of Fuzzy logic is built on :
Fuzzy sets :
QualitativelyQualitatively andand quantitativelyquantitativelyLinguistic
9/12/2013 Mahesh J. vadhavaniya 3
QualitativelyQualitatively andand quantitativelyquantitatively
describeddescribed byby fuzzyfuzzy setssets
Linguistic
Variables :
AA knowledgeknowledgeFuzzy if -
then rules :
LinguisticLinguistic valuesvalues toto numericalnumerical valuesvaluesDefuzzification :
IntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroduction
Basic Elements of a Fuzzy logic system :
3.Defuzzyfication
Linguistic
level
Command Variables
(Linguistic Values)
Measured Variables
(Linguistic Values)
1.Fuzzyfication
2. Fuzzy Inference
9/12/2013 Mahesh J. vadhavaniya 4
Defuzzyfication
level
Numerical
level
Measured Variables
(Numerical Values)
Command Variables
(Numerical Values)
1.Fuzzyfication
ApproachApproachApproachApproachApproachApproachApproachApproach
Preliminary Evaluation :
Problem Analysis before Project start !
EvaluationEvaluation CriteriaCriteria :
AssessmentAssessment asas toto whetherwhether FuzzyFuzzy logiclogic isis applicableapplicable forfor
thethe givengiven applicationapplication..
9/12/2013 Mahesh J. vadhavaniya 5
HasHas fuzzyfuzzy logiclogic beenbeen previouslypreviously appliedapplied toto aa similarsimilar applicationapplication
WithWith success?success?
IsIs itit aa multimulti--variablevariable typetype controlcontrol problem?problem?
DoDo operatorsoperators andand engineersengineers possesspossess knowledgeknowledge aboutabout anyany relevantrelevant
interdependenciesinterdependencies ofof thethe processprocess variables?variables?
CanCan furtherfurther knowledgeknowledge aboutabout thethe processprocess behaviorbehavior bebe gainedgained byby
observationobservation oror experiments?experiments?
IsIs itit difficultdifficult toto obtainobtain aa mathematicalmathematical modelmodel fromfrom thethe process?process?
UsageUsageUsageUsage
1.1. Define the control objectives and criteriaDefine the control objectives and criteria
What am I trying to control?What am I trying to control?
What do I have to do to control the system?What do I have to do to control the system?
What kind of response do I need?What kind of response do I need?
What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?
ApproachApproachApproachApproachApproachApproachApproachApproach
What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?
2.2. Determine the input and output relationshipsDetermine the input and output relationships
Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the
FL engineFL engine
3.3. Use the ruleUse the rule--based structure of FLbased structure of FL
Break the control problem down into a series of rulesBreak the control problem down into a series of rules
4.4. Create FL membership functionsCreate FL membership functions
Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used
in the rulesin the rules
5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest
9/12/2013 Mahesh J. vadhavaniya 6
The Rule MatrixThe Rule Matrix
Error (Columns)Error (Columns)
ErrorError--dot (Rows)dot (Rows)
Input conditionsInput conditions
ApproachApproachApproachApproachApproachApproachApproachApproach
--veve
ErrorError
ZeroZero
ErrorError
+ve+ve
ErrorError
--veve
ErrorError--
dotdotInput conditionsInput conditions
(Error and Error(Error and Error--
dot)dot)
Output ResponseOutput Response
ConclusionConclusion
(Intersection of Row(Intersection of Row
and Column)and Column)
dotdot
ZeroZero
ErrorError--
dotdot
NoNo
changechange
+ve+ve
ErrorError--
dotdot
Rule MatrixRule Matrix
9/12/2013 Mahesh J. vadhavaniya 7
ComponentsComponents
An electric heating elementAn electric heating element
VariableVariable--speed cooling fanspeed cooling fan
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
SimpleSimple ProportionalProportional TemperatureTemperature ControllerController :
VariableVariable--speed cooling fanspeed cooling fan
FunctionalityFunctionality
Positive signal output: 0Positive signal output: 0--100% heat100% heat
Negative signal output: 0Negative signal output: 0--100% cooling100% cooling
9/12/2013 Mahesh J. vadhavaniya 8
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
Block Diagram of the Control System
9/12/2013 Mahesh J. vadhavaniya 9
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
WorkingWorking
Establish a meaningful system for representing theEstablish a meaningful system for representing the
linguistic variables in the Rule Matrixlinguistic variables in the Rule Matrix
"N" = "negative" error/ error"N" = "negative" error/ error--dot input leveldot input level"N" = "negative" error/ error"N" = "negative" error/ error--dot input leveldot input level
"Z" = "zero" error/ error"Z" = "zero" error/ error--dot input leveldot input level
"P" = "positive" error/ error"P" = "positive" error/ error--dot input leveldot input level
"H" = "Heat" output response"H" = "Heat" output response
""--" = "No Change" to current output" = "No Change" to current output
"C" = "Cool" output response"C" = "Cool" output response
9/12/2013 Mahesh J. vadhavaniya 10
ApproachApproachApproachApproachApproachApproachApproachApproach
UsageUsageUsageUsage
1.1. Define the control objectives and criteriaDefine the control objectives and criteria
What am I trying to control?What am I trying to control?
What do I have to do to control the system?What do I have to do to control the system?
What kind of response do I need?What kind of response do I need?
What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?
2.2. Determine the input and output relationshipsDetermine the input and output relationships
Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the
FL engineFL engine
3.3. Use the ruleUse the rule--based structure of FLbased structure of FL
Break the control problem down into a series of rulesBreak the control problem down into a series of rules
4.4. Create FL membership functionsCreate FL membership functions
Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used
in the rulesin the rules
5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest
9/12/2013 Mahesh J. vadhavaniya 11
1.1. Define the control objectives and criteriaDefine the control objectives and criteria
What am I trying to control?What am I trying to control?
System temperatureSystem temperature
What do I have to do to control the system?What do I have to do to control the system?
Proper balance and control of the functional devicesProper balance and control of the functional devices
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
Proper balance and control of the functional devicesProper balance and control of the functional devices
What kind of response do I need?What kind of response do I need?
Stable Environment temperatureStable Environment temperature
What are the possible (probable) system failureWhat are the possible (probable) system failure
modes?modes?
The lack of the “No change” regionThe lack of the “No change” region
9/12/2013 Mahesh J. vadhavaniya 12
What is being controlled and how?What is being controlled and how?
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
Typical control system responseTypical control system response
9/12/2013 Mahesh J. vadhavaniya 13
ApproachApproachApproachApproachApproachApproachApproachApproach
UsageUsageUsageUsage
1.1. Define the control objectives and criteriaDefine the control objectives and criteria
What am I trying to control?What am I trying to control?
What do I have to do to control the system?What do I have to do to control the system?
What kind of response do I need?What kind of response do I need?
What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?
2.2. Determine the input and output relationshipsDetermine the input and output relationships
Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the
FL engineFL engine
3.3. Use the ruleUse the rule--based structure of FLbased structure of FL
Break the control problem down into a series of rulesBreak the control problem down into a series of rules
4.4. Create FL membership functionsCreate FL membership functions
Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used
in the rulesin the rules
5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest
9/12/2013 Mahesh J. vadhavaniya 14
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
2.2. Determine the input and output relationshipsDetermine the input and output relationships2.2. Determine the input and output relationshipsDetermine the input and output relationships
Define the minimum number of possible input productDefine the minimum number of possible input product
combinations and corresponding output responsecombinations and corresponding output response
conclusionsconclusions
INPUT#1: ("Error", positive (P), zero (Z), negative (N))
INPUT#2: ("Error-dot", positive (P), zero (Z), negative (N))
CONCLUSION: ("Output", Heat (H), No Change (-), Cool (C))CONCLUSION: ("Output", Heat (H), No Change (-), Cool (C))
INPUT#1 System Status
Error = Command-Feedback
P=Too cold, Z=Just right, N=Too hot
INPUT#2 System Status
Error-dot = d(Error)/dt
P=Getting hotter Z=Not changing N=Getting colder
OUTPUT Conclusion & System Response
Output H = Call for heating - = Don't change anything C = Call for cooling
9/12/2013 Mahesh J. vadhavaniya 15
ApproachApproachApproachApproachApproachApproachApproachApproach
UsageUsageUsageUsage
1.1. Define the control objectives and criteriaDefine the control objectives and criteria
What am I trying to control?What am I trying to control?
What do I have to do to control the system?What do I have to do to control the system?
What kind of response do I need?What kind of response do I need?
What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?
2.2. Determine the input and output relationshipsDetermine the input and output relationships
Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the
FL engineFL engine
3.3. Use the ruleUse the rule--based structure of FLbased structure of FL
Break the control problem down into a series of rulesBreak the control problem down into a series of rules
4.4. Create FL membership functionsCreate FL membership functions
Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used
in the rulesin the rules
5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest
9/12/2013 Mahesh J. vadhavaniya 16
APPLICATION (Contd.)
3.3. Use the ruleUse the rule--based structure of FLbased structure of FL
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
9/12/2013 Mahesh J. vadhavaniya 17
ApproachApproachApproachApproachApproachApproachApproachApproach
UsageUsageUsageUsage
1.1. Define the control objectives and criteriaDefine the control objectives and criteria
What am I trying to control?What am I trying to control?
What do I have to do to control the system?What do I have to do to control the system?
What kind of response do I need?What kind of response do I need?
What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?
2.2. Determine the input and output relationshipsDetermine the input and output relationships
Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the
FL engineFL engine
3.3. Use the ruleUse the rule--based structure of FLbased structure of FL
Break the control problem down into a series of rulesBreak the control problem down into a series of rules
4.4. Create FL membership functionsCreate FL membership functions
Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used
in the rulesin the rules
5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest
9/12/2013 Mahesh J. vadhavaniya 18
4.4. CreateCreate FLFL membershipmembership functionsfunctions thatthat definedefine thethe
meaningmeaning (values)(values) ofof Input/OutputInput/Output termsterms usedused inin thethe
rulesrules
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
9/12/2013 Mahesh J. vadhavaniya 19
A sample caseA sample case
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
9/12/2013 Mahesh J. vadhavaniya 20
ApproachApproachApproachApproachApproachApproachApproachApproach
UsageUsageUsageUsage
1.1. Define the control objectives and criteriaDefine the control objectives and criteria
What am I trying to control?What am I trying to control?
What do I have to do to control the system?What do I have to do to control the system?
What kind of response do I need?What kind of response do I need?
What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?
2.2. Determine the input and output relationshipsDetermine the input and output relationships
Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the
FL engineFL engine
3.3. Use the ruleUse the rule--based structure of FLbased structure of FL
Break the control problem down into a series of rulesBreak the control problem down into a series of rules
4.4. Create FL membership functionsCreate FL membership functions
Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used
in the rulesin the rules
5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest
9/12/2013 Mahesh J. vadhavaniya 21
Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…
Loading dock (Loading dock ( XXff ,, YYff ))
RearRear
( X( X , Y, Y ))
9/12/2013 Mahesh J. vadhavaniya 22
FrontFront
ɸɸ
ϴϴ
Diagram of Truck and Loading zoneDiagram of Truck and Loading zone
Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…
TheThe goalgoal isis toto makemake thethe trucktruck arrivearrive atat thethe loadingloading dockdock
atat aa rightright angleangle ((ɸɸff==9090)) andand toto alignalign thethe positionposition (x,(x, y)y) ofof
thethe trucktruck withwith thethe desireddesired loadingloading dockdock (( XXff ,, YYff ))..
TheThe trucktruck movesmoves backwardbackward byby somesome fixedfixed distancedistance atat
Goal ?
9/12/2013 Mahesh J. vadhavaniya 23
TheThe trucktruck movesmoves backwardbackward byby somesome fixedfixed distancedistance atat
everyevery stagestage..
TheThe loadingloading zonezone correspondscorresponds toto planeplane [[00,,100100]] XX
[[100100,,00]] andand (( XfXf ,, YfYf )) equaledequaled ((5050,,100100))
AtAt everyevery stagestage thethe FuzzyFuzzy controllercontroller shouldshould produceproduce thethe
steeringsteering angleangle ϴϴ thatthat backsbacks upup thethe trucktruck toto thethe loadingloading
dockdock fromfrom anyany initialinitial positionposition andand fromfrom anyany angleangle inin thethe
loadingloading zonezone..
Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…
TheThe threethree statestate variablesvariables ɸɸ,, xx andand yy exactlyexactly determinedetermine
thethe trucktruck positionposition..
TheThe coordinatecoordinate pairpair (x,(x, y)y) specifiesspecifies thethe positionposition ofof thethe
rearrear centercenter ofof thethe trucktruck inin thethe planeplane..
ɸɸ specifiesspecifies thethe angleangle ofof thethe trucktruck withwith thethe horizontalhorizontal..
9/12/2013 Mahesh J. vadhavaniya 24
rearrear centercenter ofof thethe trucktruck inin thethe planeplane..
First specify controller’s input and output variables.
TheThe inputinput variablesvariables areare thethe trucktruck angleangle ɸɸ andand xx ––
positionposition coordinatecoordinate xx..
TheThe outputoutput isis steeringsteering angleangle signalsignal ϴϴ..
WeWe assumeassume enoughenough clearanceclearance betweenbetween thethe trucktruck andand thethe loadingloading dockdock soso
wewe cancan ignoreignore thethe yy –– positionposition coordinatecoordinate..
Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…
PositivePositive valuesvalues ofof ϴϴ representsrepresents clockwiseclockwise rotationsrotations..
Next specify Fuzzy set values of input and output
variables.
ɸɸ specifiesspecifies thethe angleangle ofof thethe trucktruck withwith thethe horizontalhorizontal..
NegativeNegative valuesvalues ofof ϴϴ representsrepresents countercounter clockwiseclockwise
rotationsrotations..
9/12/2013 Mahesh J. vadhavaniya 25
AngleAngleAngleAngleAngleAngleAngleAngle ɸɸ
RB Right Below
RU Right Upper
RV Right Vertical
VE Vertical
LV Left Vertical
LU Left Upper
LB Left Below
XXXXXXXX--------position xposition xposition xposition xposition xposition xposition xposition x
LE Left
LC Left Center
CE Center
RC Right Center
RI Right
Steering AngleSteering AngleSteering AngleSteering AngleSteering AngleSteering AngleSteering AngleSteering Angle ϴϴϴϴϴϴϴϴ
NB Negative Big
NM Negative Medium
NS Negative Small
ZE Zero
PS Positive Small
PM Positive Medium
PB Positive Big
Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…
Next specify Fuzzy Membership Functions.
9/12/2013 Mahesh J. vadhavaniya 26
0 ≤ x ≤ 1000 ≤ x ≤ 100
Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…
Next specify Fuzzy Membership Functions.
9/12/2013 Mahesh J. vadhavaniya 27
--90 ≤90 ≤ ɸɸ ≤ 270≤ 270
Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…
Next specify Fuzzy Membership Functions.
9/12/2013 Mahesh J. vadhavaniya 28
--30 ≤30 ≤ ϴϴ ≤ 30≤ 30
Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…
Next specify Fuzzy “rulebase” or bank of FAM rules.
xxxx
LE LC CE RC RI
RB PS PM PM PB PB
9/12/2013 Mahesh J. vadhavaniya 29
ɸɸɸɸɸɸɸɸ
RB PS PM PM PB PB
RU NS PS PM PB PB
RV NM NS PS PM PB
VE NM NM ZE PM PM
LV NB NM NS PS PM
LU NB NB NM NS PS
LB NB NB NM NM NS
Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…
Next Defuzzification.
9/12/2013 Mahesh J. vadhavaniya 30
CorrelationCorrelation –– minimum inference withminimum inference with centroidcentroid
defuzzificationdefuzzification methodmethod
Summary …Summary …Summary …Summary …Summary …Summary …Summary …Summary …
1.1. TheThe plantplant isis observableobservable andand controllablecontrollable :: state,state, inputinput
andand outputoutput variablesvariables areare usuallyusually availableavailable forfor
observationobservation andand measurementmeasurement oror computationcomputation..
Assumptions in a Fuzzy control system design :
2.2. ThereThere existsexists aa bodybody ofof knowledgeknowledge comprisedcomprised ofof aa setset ofof
9/12/2013 Mahesh J. vadhavaniya 31
2.2. ThereThere existsexists aa bodybody ofof knowledgeknowledge comprisedcomprised ofof aa setset ofof
linguisticlinguistic rules,rules, engineeringengineering commoncommon sense,sense, intuition,intuition, oror aa
setset ofof inputinput –– outputoutput measurementsmeasurements datadata fromfrom whichwhich rulesrules
cancan bebe extractedextracted..
3.3. AA solutionsolution existsexists..
4.4. AA controlcontrol engineerengineer isis lookinglooking forfor aa “good“good enough”enough”
solution,solution, notnot necessarilynecessarily thethe optimumoptimum oneone..
Summary …Summary …Summary …Summary …Summary …Summary …Summary …Summary …
5.5. TheThe controllercontroller willwill bebe designeddesigned withinwithin anan acceptableacceptable
rangerange ofof precisionprecision..
Assumptions in a Fuzzy control system design :
9/12/2013 Mahesh J. vadhavaniya 32
6.6. TheThe problemsproblems ofof stabilitystability andand optimalityoptimality areare notnot
addressedaddressed explicitlyexplicitly ,, suchsuch issuesissues areare stillstill openopen problemsproblems
inin FuzzyFuzzy controllercontroller designdesign..
Summary …Summary …Summary …Summary …Summary …Summary …Summary …Summary …
1.1. IdentifyIdentify thethe variablesvariables (inputs,(inputs, statesstates andand outputs)outputs) ..
The Steps in designing a simple Fuzzy control system :
2.2. PartitionPartition thethe universeuniverse ofof disclosuredisclosure oror thethe intervalinterval
spannedspanned byby eacheach variablevariable intointo aa numbernumber ofof FuzzyFuzzy subsets,subsets,
assigningassigning eacheach aa linguisticlinguistic labellabel (subset(subset includeinclude allall thethe
9/12/2013 Mahesh J. vadhavaniya 33
assigningassigning eacheach aa linguisticlinguistic labellabel (subset(subset includeinclude allall thethe
elementselements inin thethe universe)universe)..
3.3. AssignAssign oror determinedetermine aa membershipmembership functionfunction forfor eacheach
FuzzyFuzzy subsetsubset..
4.4. AssignAssign thethe FuzzyFuzzy relationshipsrelationships betweenbetween thethe inputs’inputs’ oror
states’states’ FuzzyFuzzy subsetssubsets onon thethe oneone handhand andand thethe outputs’outputs’
FuzzyFuzzy subsetssubsets onon thethe otherother hand,hand, thusthus formingforming thethe rulerule––
basebase..
Summary …Summary …Summary …Summary …Summary …Summary …Summary …Summary …
5.5. ChooseChoose appropriateappropriate scalingscaling factorsfactors forfor thethe inputinput andand
outputoutput variablesvariables inin orderorder toto normalizenormalize thethe variablesvariables toto thethe
[[00,, 11]] oror thethe [[--11,, 11]] intervalinterval..
The Steps in designing a simple Fuzzy control system :
6.6. FuzzifyFuzzify thethe inputsinputs toto thethe controllercontroller..6.6. FuzzifyFuzzify thethe inputsinputs toto thethe controllercontroller..
7.7. UseUse FuzzyFuzzy approximateapproximate reasoningreasoning toto inferinfer thethe outputoutput
contributedcontributed fromfrom eacheach rulerule..
8.8. AggregateAggregate thethe FuzzyFuzzy outputsoutputs recommendedrecommended byby eacheach
rulerule..
9.9. ApplyApply defuzzificationdefuzzification toto formform aa crispcrisp outputoutput..
9/12/2013 Mahesh J. vadhavaniya 34
9/12/2013 Mahesh J. Vadhavaniya 35
9/12/2013 Mahesh J. Vadhavaniya 37

More Related Content

What's hot

Fuzzy logic systems
Fuzzy logic systemsFuzzy logic systems
Fuzzy logic systems
Pham Tung
 
33412283 solving-fuzzy-logic-problems-with-matlab
33412283 solving-fuzzy-logic-problems-with-matlab33412283 solving-fuzzy-logic-problems-with-matlab
33412283 solving-fuzzy-logic-problems-with-matlab
sai kumar
 

What's hot (20)

Fuzzy Logic Seminar with Implementation
Fuzzy Logic Seminar with ImplementationFuzzy Logic Seminar with Implementation
Fuzzy Logic Seminar with Implementation
 
Fuzzy+logic
Fuzzy+logicFuzzy+logic
Fuzzy+logic
 
Fuzzy modelling using sciFLT
Fuzzy modelling using sciFLTFuzzy modelling using sciFLT
Fuzzy modelling using sciFLT
 
Intelligence control using fuzzy logic
Intelligence control using fuzzy logicIntelligence control using fuzzy logic
Intelligence control using fuzzy logic
 
Wrapper feature selection method
Wrapper feature selection methodWrapper feature selection method
Wrapper feature selection method
 
DESIGN AND SIMULATION OF FUZZY LOGIC CONTROLLER USING MATLAB
DESIGN AND SIMULATION OF FUZZY LOGIC CONTROLLER USING MATLABDESIGN AND SIMULATION OF FUZZY LOGIC CONTROLLER USING MATLAB
DESIGN AND SIMULATION OF FUZZY LOGIC CONTROLLER USING MATLAB
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Fuzzy Logic
Fuzzy LogicFuzzy Logic
Fuzzy Logic
 
Feature selection
Feature selectionFeature selection
Feature selection
 
FUZZY CONTROL OF A SERVOMECHANISM: PRACTICAL APPROACH USING MAMDANI AND TAKAG...
FUZZY CONTROL OF A SERVOMECHANISM: PRACTICAL APPROACH USING MAMDANI AND TAKAG...FUZZY CONTROL OF A SERVOMECHANISM: PRACTICAL APPROACH USING MAMDANI AND TAKAG...
FUZZY CONTROL OF A SERVOMECHANISM: PRACTICAL APPROACH USING MAMDANI AND TAKAG...
 
Lesson 32
Lesson 32Lesson 32
Lesson 32
 
Fuzzy logic systems
Fuzzy logic systemsFuzzy logic systems
Fuzzy logic systems
 
Lec 5 uncertainty
Lec 5 uncertaintyLec 5 uncertainty
Lec 5 uncertainty
 
Fuzzy logic system
Fuzzy logic systemFuzzy logic system
Fuzzy logic system
 
Ch03 fls
Ch03 flsCh03 fls
Ch03 fls
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
33412283 solving-fuzzy-logic-problems-with-matlab
33412283 solving-fuzzy-logic-problems-with-matlab33412283 solving-fuzzy-logic-problems-with-matlab
33412283 solving-fuzzy-logic-problems-with-matlab
 
Fuzzy Logic ppt
Fuzzy Logic pptFuzzy Logic ppt
Fuzzy Logic ppt
 
AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...
AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...
AN OPTIMUM TIME QUANTUM USING LINGUISTIC SYNTHESIS FOR ROUND ROBIN CPU SCHEDU...
 
Ece478 12es_final_report
Ece478 12es_final_reportEce478 12es_final_report
Ece478 12es_final_report
 

Viewers also liked (6)

Fuzzy Logic in Smart Homes
Fuzzy Logic in Smart HomesFuzzy Logic in Smart Homes
Fuzzy Logic in Smart Homes
 
Fuzzy introduction
Fuzzy introductionFuzzy introduction
Fuzzy introduction
 
Fuzzy logic control of washing m achines
Fuzzy logic control of washing m achinesFuzzy logic control of washing m achines
Fuzzy logic control of washing m achines
 
Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)Fuzzy logic application (aircraft landing)
Fuzzy logic application (aircraft landing)
 
Fuzzy Logic in the Real World
Fuzzy Logic in the Real WorldFuzzy Logic in the Real World
Fuzzy Logic in the Real World
 
Application of fuzzy logic
Application of fuzzy logicApplication of fuzzy logic
Application of fuzzy logic
 

Similar to Fuzzy logic

Software testing overview by subbu
Software testing overview by subbuSoftware testing overview by subbu
Software testing overview by subbu
palla subrahmanyam
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
medsherb
 
Chapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docxChapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docx
keturahhazelhurst
 
Dr.Jonathan Software verification validation.ppt
Dr.Jonathan Software verification validation.pptDr.Jonathan Software verification validation.ppt
Dr.Jonathan Software verification validation.ppt
Phial
 

Similar to Fuzzy logic (20)

Software testing overview by subbu
Software testing overview by subbuSoftware testing overview by subbu
Software testing overview by subbu
 
Software Testing_Overview
Software Testing_OverviewSoftware Testing_Overview
Software Testing_Overview
 
Defying Logic - Business Logic Testing with Automation
Defying Logic - Business Logic Testing with AutomationDefying Logic - Business Logic Testing with Automation
Defying Logic - Business Logic Testing with Automation
 
Application Testing
Application TestingApplication Testing
Application Testing
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
SOFTWARE ENGINEERING UNIT 6 Ch 13
SOFTWARE ENGINEERING UNIT 6 Ch 13SOFTWARE ENGINEERING UNIT 6 Ch 13
SOFTWARE ENGINEERING UNIT 6 Ch 13
 
Process plant troubleshooting
Process plant troubleshootingProcess plant troubleshooting
Process plant troubleshooting
 
12 sdd lesson testing and evaluating
12 sdd lesson testing and evaluating12 sdd lesson testing and evaluating
12 sdd lesson testing and evaluating
 
SE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software TestingSE2018_Lec 19_ Software Testing
SE2018_Lec 19_ Software Testing
 
Testing
TestingTesting
Testing
 
DSR Testing (Part 2)
DSR Testing (Part 2)DSR Testing (Part 2)
DSR Testing (Part 2)
 
Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.
 
Model Driven Testing: requirements, models & test
Model Driven Testing: requirements, models & test Model Driven Testing: requirements, models & test
Model Driven Testing: requirements, models & test
 
Chapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docxChapter 10 Testing and Quality Assurance1Unders.docx
Chapter 10 Testing and Quality Assurance1Unders.docx
 
Performance testing and rpt
Performance testing and rptPerformance testing and rpt
Performance testing and rpt
 
Case Studies in Terrible Testing
Case Studies in Terrible TestingCase Studies in Terrible Testing
Case Studies in Terrible Testing
 
Lecture 11 understanding requirements (3)
Lecture 11   understanding requirements (3)Lecture 11   understanding requirements (3)
Lecture 11 understanding requirements (3)
 
On-line Process Control Lab Access and Use Deminar
On-line Process Control Lab Access and Use DeminarOn-line Process Control Lab Access and Use Deminar
On-line Process Control Lab Access and Use Deminar
 
Dr.Jonathan Software verification validation.ppt
Dr.Jonathan Software verification validation.pptDr.Jonathan Software verification validation.ppt
Dr.Jonathan Software verification validation.ppt
 
Code coverage in theory and in practice form the do178 b perspective
Code coverage in theory and in practice form the do178 b perspectiveCode coverage in theory and in practice form the do178 b perspective
Code coverage in theory and in practice form the do178 b perspective
 

More from Mahesh Vadhavaniya profmjv (7)

PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
 
LED
LEDLED
LED
 
One sided z transform
One sided z transformOne sided z transform
One sided z transform
 
PIC_ARM_AVR
PIC_ARM_AVRPIC_ARM_AVR
PIC_ARM_AVR
 
Thyristor
ThyristorThyristor
Thyristor
 
Pole Placement in Digital Control
Pole Placement in Digital ControlPole Placement in Digital Control
Pole Placement in Digital Control
 
Evolution of Power Electronics Engineering
Evolution of Power Electronics EngineeringEvolution of Power Electronics Engineering
Evolution of Power Electronics Engineering
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 

Fuzzy logic

  • 1.
  • 3. IntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroduction FuzzyFuzzy LogicLogic definesdefines thethe controlcontrol strategystrategy onon aa LinguisticLinguistic levellevel.. ProblemProblem--solvingsolving controlcontrol systemsystem methodologymethodology.. What is Fuzzy Logic ? 9/12/2013 Mahesh J. vadhavaniya 2 ProblemProblem--solvingsolving controlcontrol systemsystem methodologymethodology.. LinguisticLinguistic oror “Fuzzy"“Fuzzy" variablesvariables ExampleExample:: IFIF (process(process isis tootoo hot)hot) ANDAND (process(process isis heatingheating rapidly)rapidly) THENTHEN (cool(cool thethe processprocess quickly)quickly)
  • 4. IntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroduction DescribeDescribe thethe valuevalue ofof variablesvariables Apparatus of Fuzzy logic is built on : Fuzzy sets : QualitativelyQualitatively andand quantitativelyquantitativelyLinguistic 9/12/2013 Mahesh J. vadhavaniya 3 QualitativelyQualitatively andand quantitativelyquantitatively describeddescribed byby fuzzyfuzzy setssets Linguistic Variables : AA knowledgeknowledgeFuzzy if - then rules : LinguisticLinguistic valuesvalues toto numericalnumerical valuesvaluesDefuzzification :
  • 5. IntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroductionIntroduction Basic Elements of a Fuzzy logic system : 3.Defuzzyfication Linguistic level Command Variables (Linguistic Values) Measured Variables (Linguistic Values) 1.Fuzzyfication 2. Fuzzy Inference 9/12/2013 Mahesh J. vadhavaniya 4 Defuzzyfication level Numerical level Measured Variables (Numerical Values) Command Variables (Numerical Values) 1.Fuzzyfication
  • 6. ApproachApproachApproachApproachApproachApproachApproachApproach Preliminary Evaluation : Problem Analysis before Project start ! EvaluationEvaluation CriteriaCriteria : AssessmentAssessment asas toto whetherwhether FuzzyFuzzy logiclogic isis applicableapplicable forfor thethe givengiven applicationapplication.. 9/12/2013 Mahesh J. vadhavaniya 5 HasHas fuzzyfuzzy logiclogic beenbeen previouslypreviously appliedapplied toto aa similarsimilar applicationapplication WithWith success?success? IsIs itit aa multimulti--variablevariable typetype controlcontrol problem?problem? DoDo operatorsoperators andand engineersengineers possesspossess knowledgeknowledge aboutabout anyany relevantrelevant interdependenciesinterdependencies ofof thethe processprocess variables?variables? CanCan furtherfurther knowledgeknowledge aboutabout thethe processprocess behaviorbehavior bebe gainedgained byby observationobservation oror experiments?experiments? IsIs itit difficultdifficult toto obtainobtain aa mathematicalmathematical modelmodel fromfrom thethe process?process?
  • 7. UsageUsageUsageUsage 1.1. Define the control objectives and criteriaDefine the control objectives and criteria What am I trying to control?What am I trying to control? What do I have to do to control the system?What do I have to do to control the system? What kind of response do I need?What kind of response do I need? What are the possible (probable) system failure modes?What are the possible (probable) system failure modes? ApproachApproachApproachApproachApproachApproachApproachApproach What are the possible (probable) system failure modes?What are the possible (probable) system failure modes? 2.2. Determine the input and output relationshipsDetermine the input and output relationships Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the FL engineFL engine 3.3. Use the ruleUse the rule--based structure of FLbased structure of FL Break the control problem down into a series of rulesBreak the control problem down into a series of rules 4.4. Create FL membership functionsCreate FL membership functions Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used in the rulesin the rules 5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest 9/12/2013 Mahesh J. vadhavaniya 6
  • 8. The Rule MatrixThe Rule Matrix Error (Columns)Error (Columns) ErrorError--dot (Rows)dot (Rows) Input conditionsInput conditions ApproachApproachApproachApproachApproachApproachApproachApproach --veve ErrorError ZeroZero ErrorError +ve+ve ErrorError --veve ErrorError-- dotdotInput conditionsInput conditions (Error and Error(Error and Error-- dot)dot) Output ResponseOutput Response ConclusionConclusion (Intersection of Row(Intersection of Row and Column)and Column) dotdot ZeroZero ErrorError-- dotdot NoNo changechange +ve+ve ErrorError-- dotdot Rule MatrixRule Matrix 9/12/2013 Mahesh J. vadhavaniya 7
  • 9. ComponentsComponents An electric heating elementAn electric heating element VariableVariable--speed cooling fanspeed cooling fan ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication SimpleSimple ProportionalProportional TemperatureTemperature ControllerController : VariableVariable--speed cooling fanspeed cooling fan FunctionalityFunctionality Positive signal output: 0Positive signal output: 0--100% heat100% heat Negative signal output: 0Negative signal output: 0--100% cooling100% cooling 9/12/2013 Mahesh J. vadhavaniya 8
  • 11. ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication WorkingWorking Establish a meaningful system for representing theEstablish a meaningful system for representing the linguistic variables in the Rule Matrixlinguistic variables in the Rule Matrix "N" = "negative" error/ error"N" = "negative" error/ error--dot input leveldot input level"N" = "negative" error/ error"N" = "negative" error/ error--dot input leveldot input level "Z" = "zero" error/ error"Z" = "zero" error/ error--dot input leveldot input level "P" = "positive" error/ error"P" = "positive" error/ error--dot input leveldot input level "H" = "Heat" output response"H" = "Heat" output response ""--" = "No Change" to current output" = "No Change" to current output "C" = "Cool" output response"C" = "Cool" output response 9/12/2013 Mahesh J. vadhavaniya 10
  • 12. ApproachApproachApproachApproachApproachApproachApproachApproach UsageUsageUsageUsage 1.1. Define the control objectives and criteriaDefine the control objectives and criteria What am I trying to control?What am I trying to control? What do I have to do to control the system?What do I have to do to control the system? What kind of response do I need?What kind of response do I need? What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes? 2.2. Determine the input and output relationshipsDetermine the input and output relationships Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the FL engineFL engine 3.3. Use the ruleUse the rule--based structure of FLbased structure of FL Break the control problem down into a series of rulesBreak the control problem down into a series of rules 4.4. Create FL membership functionsCreate FL membership functions Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used in the rulesin the rules 5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest 9/12/2013 Mahesh J. vadhavaniya 11
  • 13. 1.1. Define the control objectives and criteriaDefine the control objectives and criteria What am I trying to control?What am I trying to control? System temperatureSystem temperature What do I have to do to control the system?What do I have to do to control the system? Proper balance and control of the functional devicesProper balance and control of the functional devices ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication Proper balance and control of the functional devicesProper balance and control of the functional devices What kind of response do I need?What kind of response do I need? Stable Environment temperatureStable Environment temperature What are the possible (probable) system failureWhat are the possible (probable) system failure modes?modes? The lack of the “No change” regionThe lack of the “No change” region 9/12/2013 Mahesh J. vadhavaniya 12
  • 14. What is being controlled and how?What is being controlled and how? ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication Typical control system responseTypical control system response 9/12/2013 Mahesh J. vadhavaniya 13
  • 15. ApproachApproachApproachApproachApproachApproachApproachApproach UsageUsageUsageUsage 1.1. Define the control objectives and criteriaDefine the control objectives and criteria What am I trying to control?What am I trying to control? What do I have to do to control the system?What do I have to do to control the system? What kind of response do I need?What kind of response do I need? What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes? 2.2. Determine the input and output relationshipsDetermine the input and output relationships Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the FL engineFL engine 3.3. Use the ruleUse the rule--based structure of FLbased structure of FL Break the control problem down into a series of rulesBreak the control problem down into a series of rules 4.4. Create FL membership functionsCreate FL membership functions Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used in the rulesin the rules 5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest 9/12/2013 Mahesh J. vadhavaniya 14
  • 16. ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication 2.2. Determine the input and output relationshipsDetermine the input and output relationships2.2. Determine the input and output relationshipsDetermine the input and output relationships Define the minimum number of possible input productDefine the minimum number of possible input product combinations and corresponding output responsecombinations and corresponding output response conclusionsconclusions INPUT#1: ("Error", positive (P), zero (Z), negative (N)) INPUT#2: ("Error-dot", positive (P), zero (Z), negative (N)) CONCLUSION: ("Output", Heat (H), No Change (-), Cool (C))CONCLUSION: ("Output", Heat (H), No Change (-), Cool (C)) INPUT#1 System Status Error = Command-Feedback P=Too cold, Z=Just right, N=Too hot INPUT#2 System Status Error-dot = d(Error)/dt P=Getting hotter Z=Not changing N=Getting colder OUTPUT Conclusion & System Response Output H = Call for heating - = Don't change anything C = Call for cooling 9/12/2013 Mahesh J. vadhavaniya 15
  • 17. ApproachApproachApproachApproachApproachApproachApproachApproach UsageUsageUsageUsage 1.1. Define the control objectives and criteriaDefine the control objectives and criteria What am I trying to control?What am I trying to control? What do I have to do to control the system?What do I have to do to control the system? What kind of response do I need?What kind of response do I need? What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes? 2.2. Determine the input and output relationshipsDetermine the input and output relationships Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the FL engineFL engine 3.3. Use the ruleUse the rule--based structure of FLbased structure of FL Break the control problem down into a series of rulesBreak the control problem down into a series of rules 4.4. Create FL membership functionsCreate FL membership functions Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used in the rulesin the rules 5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest 9/12/2013 Mahesh J. vadhavaniya 16
  • 18. APPLICATION (Contd.) 3.3. Use the ruleUse the rule--based structure of FLbased structure of FL ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication 9/12/2013 Mahesh J. vadhavaniya 17
  • 19. ApproachApproachApproachApproachApproachApproachApproachApproach UsageUsageUsageUsage 1.1. Define the control objectives and criteriaDefine the control objectives and criteria What am I trying to control?What am I trying to control? What do I have to do to control the system?What do I have to do to control the system? What kind of response do I need?What kind of response do I need? What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes? 2.2. Determine the input and output relationshipsDetermine the input and output relationships Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the FL engineFL engine 3.3. Use the ruleUse the rule--based structure of FLbased structure of FL Break the control problem down into a series of rulesBreak the control problem down into a series of rules 4.4. Create FL membership functionsCreate FL membership functions Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used in the rulesin the rules 5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest 9/12/2013 Mahesh J. vadhavaniya 18
  • 20. 4.4. CreateCreate FLFL membershipmembership functionsfunctions thatthat definedefine thethe meaningmeaning (values)(values) ofof Input/OutputInput/Output termsterms usedused inin thethe rulesrules ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication 9/12/2013 Mahesh J. vadhavaniya 19
  • 21. A sample caseA sample case ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication 9/12/2013 Mahesh J. vadhavaniya 20
  • 22. ApproachApproachApproachApproachApproachApproachApproachApproach UsageUsageUsageUsage 1.1. Define the control objectives and criteriaDefine the control objectives and criteria What am I trying to control?What am I trying to control? What do I have to do to control the system?What do I have to do to control the system? What kind of response do I need?What kind of response do I need? What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes?What are the possible (probable) system failure modes? 2.2. Determine the input and output relationshipsDetermine the input and output relationships Choose a minimum number of variables for input to theChoose a minimum number of variables for input to the FL engineFL engine 3.3. Use the ruleUse the rule--based structure of FLbased structure of FL Break the control problem down into a series of rulesBreak the control problem down into a series of rules 4.4. Create FL membership functionsCreate FL membership functions Define the meaning (values) of Input / Output terms usedDefine the meaning (values) of Input / Output terms used in the rulesin the rules 5.5. Test, evaluate, tune and retestTest, evaluate, tune and retest 9/12/2013 Mahesh J. vadhavaniya 21
  • 23. Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck… Loading dock (Loading dock ( XXff ,, YYff )) RearRear ( X( X , Y, Y )) 9/12/2013 Mahesh J. vadhavaniya 22 FrontFront ɸɸ ϴϴ Diagram of Truck and Loading zoneDiagram of Truck and Loading zone
  • 24. Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck… TheThe goalgoal isis toto makemake thethe trucktruck arrivearrive atat thethe loadingloading dockdock atat aa rightright angleangle ((ɸɸff==9090)) andand toto alignalign thethe positionposition (x,(x, y)y) ofof thethe trucktruck withwith thethe desireddesired loadingloading dockdock (( XXff ,, YYff )).. TheThe trucktruck movesmoves backwardbackward byby somesome fixedfixed distancedistance atat Goal ? 9/12/2013 Mahesh J. vadhavaniya 23 TheThe trucktruck movesmoves backwardbackward byby somesome fixedfixed distancedistance atat everyevery stagestage.. TheThe loadingloading zonezone correspondscorresponds toto planeplane [[00,,100100]] XX [[100100,,00]] andand (( XfXf ,, YfYf )) equaledequaled ((5050,,100100)) AtAt everyevery stagestage thethe FuzzyFuzzy controllercontroller shouldshould produceproduce thethe steeringsteering angleangle ϴϴ thatthat backsbacks upup thethe trucktruck toto thethe loadingloading dockdock fromfrom anyany initialinitial positionposition andand fromfrom anyany angleangle inin thethe loadingloading zonezone..
  • 25. Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck… TheThe threethree statestate variablesvariables ɸɸ,, xx andand yy exactlyexactly determinedetermine thethe trucktruck positionposition.. TheThe coordinatecoordinate pairpair (x,(x, y)y) specifiesspecifies thethe positionposition ofof thethe rearrear centercenter ofof thethe trucktruck inin thethe planeplane.. ɸɸ specifiesspecifies thethe angleangle ofof thethe trucktruck withwith thethe horizontalhorizontal.. 9/12/2013 Mahesh J. vadhavaniya 24 rearrear centercenter ofof thethe trucktruck inin thethe planeplane.. First specify controller’s input and output variables. TheThe inputinput variablesvariables areare thethe trucktruck angleangle ɸɸ andand xx –– positionposition coordinatecoordinate xx.. TheThe outputoutput isis steeringsteering angleangle signalsignal ϴϴ.. WeWe assumeassume enoughenough clearanceclearance betweenbetween thethe trucktruck andand thethe loadingloading dockdock soso wewe cancan ignoreignore thethe yy –– positionposition coordinatecoordinate..
  • 26. Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck… PositivePositive valuesvalues ofof ϴϴ representsrepresents clockwiseclockwise rotationsrotations.. Next specify Fuzzy set values of input and output variables. ɸɸ specifiesspecifies thethe angleangle ofof thethe trucktruck withwith thethe horizontalhorizontal.. NegativeNegative valuesvalues ofof ϴϴ representsrepresents countercounter clockwiseclockwise rotationsrotations.. 9/12/2013 Mahesh J. vadhavaniya 25 AngleAngleAngleAngleAngleAngleAngleAngle ɸɸ RB Right Below RU Right Upper RV Right Vertical VE Vertical LV Left Vertical LU Left Upper LB Left Below XXXXXXXX--------position xposition xposition xposition xposition xposition xposition xposition x LE Left LC Left Center CE Center RC Right Center RI Right Steering AngleSteering AngleSteering AngleSteering AngleSteering AngleSteering AngleSteering AngleSteering Angle ϴϴϴϴϴϴϴϴ NB Negative Big NM Negative Medium NS Negative Small ZE Zero PS Positive Small PM Positive Medium PB Positive Big
  • 27. Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck… Next specify Fuzzy Membership Functions. 9/12/2013 Mahesh J. vadhavaniya 26 0 ≤ x ≤ 1000 ≤ x ≤ 100
  • 28. Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck… Next specify Fuzzy Membership Functions. 9/12/2013 Mahesh J. vadhavaniya 27 --90 ≤90 ≤ ɸɸ ≤ 270≤ 270
  • 29. Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck… Next specify Fuzzy Membership Functions. 9/12/2013 Mahesh J. vadhavaniya 28 --30 ≤30 ≤ ϴϴ ≤ 30≤ 30
  • 30. Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck… Next specify Fuzzy “rulebase” or bank of FAM rules. xxxx LE LC CE RC RI RB PS PM PM PB PB 9/12/2013 Mahesh J. vadhavaniya 29 ɸɸɸɸɸɸɸɸ RB PS PM PM PB PB RU NS PS PM PB PB RV NM NS PS PM PB VE NM NM ZE PM PM LV NB NM NS PS PM LU NB NB NM NS PS LB NB NB NM NM NS
  • 31. Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck…Backing up a Truck… Next Defuzzification. 9/12/2013 Mahesh J. vadhavaniya 30 CorrelationCorrelation –– minimum inference withminimum inference with centroidcentroid defuzzificationdefuzzification methodmethod
  • 32. Summary …Summary …Summary …Summary …Summary …Summary …Summary …Summary … 1.1. TheThe plantplant isis observableobservable andand controllablecontrollable :: state,state, inputinput andand outputoutput variablesvariables areare usuallyusually availableavailable forfor observationobservation andand measurementmeasurement oror computationcomputation.. Assumptions in a Fuzzy control system design : 2.2. ThereThere existsexists aa bodybody ofof knowledgeknowledge comprisedcomprised ofof aa setset ofof 9/12/2013 Mahesh J. vadhavaniya 31 2.2. ThereThere existsexists aa bodybody ofof knowledgeknowledge comprisedcomprised ofof aa setset ofof linguisticlinguistic rules,rules, engineeringengineering commoncommon sense,sense, intuition,intuition, oror aa setset ofof inputinput –– outputoutput measurementsmeasurements datadata fromfrom whichwhich rulesrules cancan bebe extractedextracted.. 3.3. AA solutionsolution existsexists.. 4.4. AA controlcontrol engineerengineer isis lookinglooking forfor aa “good“good enough”enough” solution,solution, notnot necessarilynecessarily thethe optimumoptimum oneone..
  • 33. Summary …Summary …Summary …Summary …Summary …Summary …Summary …Summary … 5.5. TheThe controllercontroller willwill bebe designeddesigned withinwithin anan acceptableacceptable rangerange ofof precisionprecision.. Assumptions in a Fuzzy control system design : 9/12/2013 Mahesh J. vadhavaniya 32 6.6. TheThe problemsproblems ofof stabilitystability andand optimalityoptimality areare notnot addressedaddressed explicitlyexplicitly ,, suchsuch issuesissues areare stillstill openopen problemsproblems inin FuzzyFuzzy controllercontroller designdesign..
  • 34. Summary …Summary …Summary …Summary …Summary …Summary …Summary …Summary … 1.1. IdentifyIdentify thethe variablesvariables (inputs,(inputs, statesstates andand outputs)outputs) .. The Steps in designing a simple Fuzzy control system : 2.2. PartitionPartition thethe universeuniverse ofof disclosuredisclosure oror thethe intervalinterval spannedspanned byby eacheach variablevariable intointo aa numbernumber ofof FuzzyFuzzy subsets,subsets, assigningassigning eacheach aa linguisticlinguistic labellabel (subset(subset includeinclude allall thethe 9/12/2013 Mahesh J. vadhavaniya 33 assigningassigning eacheach aa linguisticlinguistic labellabel (subset(subset includeinclude allall thethe elementselements inin thethe universe)universe).. 3.3. AssignAssign oror determinedetermine aa membershipmembership functionfunction forfor eacheach FuzzyFuzzy subsetsubset.. 4.4. AssignAssign thethe FuzzyFuzzy relationshipsrelationships betweenbetween thethe inputs’inputs’ oror states’states’ FuzzyFuzzy subsetssubsets onon thethe oneone handhand andand thethe outputs’outputs’ FuzzyFuzzy subsetssubsets onon thethe otherother hand,hand, thusthus formingforming thethe rulerule–– basebase..
  • 35. Summary …Summary …Summary …Summary …Summary …Summary …Summary …Summary … 5.5. ChooseChoose appropriateappropriate scalingscaling factorsfactors forfor thethe inputinput andand outputoutput variablesvariables inin orderorder toto normalizenormalize thethe variablesvariables toto thethe [[00,, 11]] oror thethe [[--11,, 11]] intervalinterval.. The Steps in designing a simple Fuzzy control system : 6.6. FuzzifyFuzzify thethe inputsinputs toto thethe controllercontroller..6.6. FuzzifyFuzzify thethe inputsinputs toto thethe controllercontroller.. 7.7. UseUse FuzzyFuzzy approximateapproximate reasoningreasoning toto inferinfer thethe outputoutput contributedcontributed fromfrom eacheach rulerule.. 8.8. AggregateAggregate thethe FuzzyFuzzy outputsoutputs recommendedrecommended byby eacheach rulerule.. 9.9. ApplyApply defuzzificationdefuzzification toto formform aa crispcrisp outputoutput.. 9/12/2013 Mahesh J. vadhavaniya 34
  • 36. 9/12/2013 Mahesh J. Vadhavaniya 35
  • 37. 9/12/2013 Mahesh J. Vadhavaniya 37