SlideShare a Scribd company logo
1 of 17
Fuzzy control, overview 
Olivier Teytaud 
Essentially mathematics free methodology 
Not widely used in Europe or Us 
Very frequent in Asia 
A pragmatic solution for control & human expertise 
olivier.teytaud@gmail.com
Control : maximizing reward 
At each time step, the agent 
● receives a description of the world (state) 
● makes a decision, 
● gets a reward
Control : example 
● Observation = temperature 
● Temperature control : 
– If temperature < 16°C, switch on heater 
– If temperature > 20°C, switch off heater 
– If temperature > 26°C, switch on air cond. 
– If temperature < 24°C, switch off air cond. 
● Reward 
– reward = comfort reward – cost penalty 
– comfort reward = 1 if 20 < temp < 24 (0 otherwise) 
– Penalty = 0.2 per appliance switched on
Tools for control 
● Dynamic programming (Bellman) 
● Model Predictive Control 
– build a model and a predictor 
– optimize the decisions so that the predicted reward 
is maximal over the next H time steps 
● Direct Policy Search : 
– define a parametric control function 
– optimize the parameters on simulations 
● Reinforcement learning (many different things, 
close to DP or close to DPS or combining both)
Direct Policy Search 
● Expert temperature control : 
– If temperature < 16°C, switch on heater 
– If temperature > 20°C, switch off heater 
– If temperature > 26°C, switch on air cond. 
– If temperature < 24°C, switch off air cond. 
● DPS: replace constants with parameters 
– If temperature < x1°C, switch on heater 
– If temperature > x2°C, switch off heater 
– If temperature > x3°C, switch on air cond. 
– If temperature < x4°C, switch off air cond.
Direct Policy Search 
● DPS: replace constants with parameters 
– If temperature < x1°C, switch on heater 
– If temperature > x2°C, switch off heater 
– If temperature > x3°C, switch on air cond. 
– If temperature < x4°C, switch off air cond. 
● Then define a simulator depending on 
x=(x1,x2,x3,x4): 
– simulator(x) = average cost over 1000 simulations 
– x* = argmax simulator(x) <== here you need an 
optimization algorithm (not detailed today)
Direct Policy Search 
● Simple, pragmatic, efficient 
● Define a parametric policy : 
– Either parameter-free (neural network, sum of 
Gaussian) 
– Or parametric/generic (e.g. PID) 
– Or parametric/specific (human expertise) 
● Fuzzy control : 
– A form of parametric DPS 
– Oriented toward human readability
Fuzzy control : convert rules into 
fuzzy rules 
If temperature > 26°C then switch on AC 
becomes 
switch on AC with power 
– 100% if T > 27°C 
– 0% if T < 25°C 
– 50(T-25)% if 25<T<27
Fuzzy control : convert rules into 
fuzzy rules 
Optionally, 
● replace constants with parameters 
● optimize parameters 
switch on AC with power 
– 100% if T > A°C 
– 0% if T < B°C 
– 100(T-B)/(A-B)% if B<T<A
Fuzzy control : convert rules into 
fuzzy rules 
● switch on AC with power 
– 100% if T > A°C 
– 0% if T < B°C 
– 100(T-B)/(A-B)% if B<T<A 
– 
– In fuzzy terminonolgy, 
– « membership » = this percentage.
Multidimensional set 
● Membership for « if A and B then ... » 
– Minimum : ms(AandB) = min(msA,msB) 
– Or do whatever you want (product...) 
● Membership for « if A or B then ... » 
– Maximum : ms(AorB) = max(msA,msB) 
– Or do whatever you want
Smooth fuzzy and other 
membership functions 
Thanks !
Smooth fuzzy and other 
membership functions 
Thanks !
Natural language & fuzzy 
« If the temperature is hot then switch on AC at 
100% » 
● Define linguistic terms : hot, cool, cold, warm, 
comfortable 
● One rule for each term 
● You might lose readability if at the end of the 
optimization of parameters you have « cold » 
which is hotter than « hot ».
Defuzzification 
● When you have several rules, maybe several of 
them will have positive membership and distinct 
recommendations. 
● Which one should we apply ? 
– Max: choose the rule with maximum membership 
– Weighted: weighted average by membership
Fuzzy control in short 
● Nothing complicated (maybe some people don't 
like it due to that) 
● Very convenient 
– Human expertise can be introduced 
– Parameter optimization possibly on complex 
simulations 
– Readable 
● Widely used in Asia 
L. Zadeh
Thanks !

More Related Content

Viewers also liked

Combining games artificial intelligences & improving random seeds
Combining games artificial intelligences & improving random seedsCombining games artificial intelligences & improving random seeds
Combining games artificial intelligences & improving random seedsOlivier Teytaud
 
Artificial intelligence for power systems
Artificial intelligence for power systemsArtificial intelligence for power systems
Artificial intelligence for power systemsOlivier Teytaud
 
Planning for power systems
Planning for power systemsPlanning for power systems
Planning for power systemsOlivier Teytaud
 
Réseaux neuronaux profonds & intelligence artificielle
Réseaux neuronaux profonds & intelligence artificielleRéseaux neuronaux profonds & intelligence artificielle
Réseaux neuronaux profonds & intelligence artificielleOlivier Teytaud
 
Examples of operational research
Examples of operational researchExamples of operational research
Examples of operational researchOlivier Teytaud
 
Bias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniquesBias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniquesOlivier Teytaud
 

Viewers also liked (9)

Direct policy search
Direct policy searchDirect policy search
Direct policy search
 
Combining games artificial intelligences & improving random seeds
Combining games artificial intelligences & improving random seedsCombining games artificial intelligences & improving random seeds
Combining games artificial intelligences & improving random seeds
 
Artificial intelligence for power systems
Artificial intelligence for power systemsArtificial intelligence for power systems
Artificial intelligence for power systems
 
Planning for power systems
Planning for power systemsPlanning for power systems
Planning for power systems
 
Réseaux neuronaux profonds & intelligence artificielle
Réseaux neuronaux profonds & intelligence artificielleRéseaux neuronaux profonds & intelligence artificielle
Réseaux neuronaux profonds & intelligence artificielle
 
Examples of operational research
Examples of operational researchExamples of operational research
Examples of operational research
 
Debugging
DebuggingDebugging
Debugging
 
Functional programming
Functional programmingFunctional programming
Functional programming
 
Bias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniquesBias correction, and other uncertainty management techniques
Bias correction, and other uncertainty management techniques
 

Similar to Fuzzy control - superfast survey

PPT_Thermal monitoring and adaptive compensation model based on POD and optim...
PPT_Thermal monitoring and adaptive compensation model based on POD and optim...PPT_Thermal monitoring and adaptive compensation model based on POD and optim...
PPT_Thermal monitoring and adaptive compensation model based on POD and optim...ssuserd654f0
 
Uncertainties in large scale power systems
Uncertainties in large scale power systemsUncertainties in large scale power systems
Uncertainties in large scale power systemsOlivier Teytaud
 
Simulated annealing.ppt
Simulated annealing.pptSimulated annealing.ppt
Simulated annealing.pptKaal Nath
 
Techniques in Deep Learning
Techniques in Deep LearningTechniques in Deep Learning
Techniques in Deep LearningSourya Dey
 
Pid controller by Mitesh Kumar
Pid controller by Mitesh KumarPid controller by Mitesh Kumar
Pid controller by Mitesh KumarMitesh Kumar
 
Covering (Rules-based) Algorithm
Covering (Rules-based) AlgorithmCovering (Rules-based) Algorithm
Covering (Rules-based) AlgorithmZHAO Sam
 
Optimum engineering design - Day 6. Classical optimization methods
Optimum engineering design - Day 6. Classical optimization methodsOptimum engineering design - Day 6. Classical optimization methods
Optimum engineering design - Day 6. Classical optimization methodsSantiagoGarridoBulln
 
How to tune pid loops
How to tune pid loopsHow to tune pid loops
How to tune pid loopssaeed shafiei
 
How to tune PID loops
How to tune PID loopsHow to tune PID loops
How to tune PID loopssaeed shafiei
 
Firefly exact MCMC for Big Data
Firefly exact MCMC for Big DataFirefly exact MCMC for Big Data
Firefly exact MCMC for Big DataGianvito Siciliano
 
Tuning presentation v1
Tuning presentation v1Tuning presentation v1
Tuning presentation v1tony arman
 
진동데이터 활용 충돌체 탐지 AI 경진대회 1등
진동데이터 활용 충돌체 탐지 AI 경진대회 1등진동데이터 활용 충돌체 탐지 AI 경진대회 1등
진동데이터 활용 충돌체 탐지 AI 경진대회 1등DACON AI 데이콘
 

Similar to Fuzzy control - superfast survey (20)

PPT_Thermal monitoring and adaptive compensation model based on POD and optim...
PPT_Thermal monitoring and adaptive compensation model based on POD and optim...PPT_Thermal monitoring and adaptive compensation model based on POD and optim...
PPT_Thermal monitoring and adaptive compensation model based on POD and optim...
 
Uncertainties in large scale power systems
Uncertainties in large scale power systemsUncertainties in large scale power systems
Uncertainties in large scale power systems
 
Simulated annealing.ppt
Simulated annealing.pptSimulated annealing.ppt
Simulated annealing.ppt
 
Techniques in Deep Learning
Techniques in Deep LearningTechniques in Deep Learning
Techniques in Deep Learning
 
Pid controller by Mitesh Kumar
Pid controller by Mitesh KumarPid controller by Mitesh Kumar
Pid controller by Mitesh Kumar
 
Covering (Rules-based) Algorithm
Covering (Rules-based) AlgorithmCovering (Rules-based) Algorithm
Covering (Rules-based) Algorithm
 
Selaidechou
SelaidechouSelaidechou
Selaidechou
 
Optimum engineering design - Day 6. Classical optimization methods
Optimum engineering design - Day 6. Classical optimization methodsOptimum engineering design - Day 6. Classical optimization methods
Optimum engineering design - Day 6. Classical optimization methods
 
Reference 1
Reference 1Reference 1
Reference 1
 
How to tune pid loops
How to tune pid loopsHow to tune pid loops
How to tune pid loops
 
How to tune PID loops
How to tune PID loopsHow to tune PID loops
How to tune PID loops
 
Firefly exact MCMC for Big Data
Firefly exact MCMC for Big DataFirefly exact MCMC for Big Data
Firefly exact MCMC for Big Data
 
Dgs co 968-034 digital co sensor module
Dgs co 968-034 digital co sensor moduleDgs co 968-034 digital co sensor module
Dgs co 968-034 digital co sensor module
 
Tuning presentation v1
Tuning presentation v1Tuning presentation v1
Tuning presentation v1
 
PID Control system for Dummies
PID Control system for DummiesPID Control system for Dummies
PID Control system for Dummies
 
4470838.ppt
4470838.ppt4470838.ppt
4470838.ppt
 
Thesis
ThesisThesis
Thesis
 
진동데이터 활용 충돌체 탐지 AI 경진대회 1등
진동데이터 활용 충돌체 탐지 AI 경진대회 1등진동데이터 활용 충돌체 탐지 AI 경진대회 1등
진동데이터 활용 충돌체 탐지 AI 경진대회 1등
 
Quality management 2
Quality management 2Quality management 2
Quality management 2
 
Quality management 2
Quality management 2Quality management 2
Quality management 2
 

Recently uploaded

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
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
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
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
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 

Recently uploaded (20)

DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
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...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
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
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 

Fuzzy control - superfast survey

  • 1. Fuzzy control, overview Olivier Teytaud Essentially mathematics free methodology Not widely used in Europe or Us Very frequent in Asia A pragmatic solution for control & human expertise olivier.teytaud@gmail.com
  • 2. Control : maximizing reward At each time step, the agent ● receives a description of the world (state) ● makes a decision, ● gets a reward
  • 3. Control : example ● Observation = temperature ● Temperature control : – If temperature < 16°C, switch on heater – If temperature > 20°C, switch off heater – If temperature > 26°C, switch on air cond. – If temperature < 24°C, switch off air cond. ● Reward – reward = comfort reward – cost penalty – comfort reward = 1 if 20 < temp < 24 (0 otherwise) – Penalty = 0.2 per appliance switched on
  • 4. Tools for control ● Dynamic programming (Bellman) ● Model Predictive Control – build a model and a predictor – optimize the decisions so that the predicted reward is maximal over the next H time steps ● Direct Policy Search : – define a parametric control function – optimize the parameters on simulations ● Reinforcement learning (many different things, close to DP or close to DPS or combining both)
  • 5. Direct Policy Search ● Expert temperature control : – If temperature < 16°C, switch on heater – If temperature > 20°C, switch off heater – If temperature > 26°C, switch on air cond. – If temperature < 24°C, switch off air cond. ● DPS: replace constants with parameters – If temperature < x1°C, switch on heater – If temperature > x2°C, switch off heater – If temperature > x3°C, switch on air cond. – If temperature < x4°C, switch off air cond.
  • 6. Direct Policy Search ● DPS: replace constants with parameters – If temperature < x1°C, switch on heater – If temperature > x2°C, switch off heater – If temperature > x3°C, switch on air cond. – If temperature < x4°C, switch off air cond. ● Then define a simulator depending on x=(x1,x2,x3,x4): – simulator(x) = average cost over 1000 simulations – x* = argmax simulator(x) <== here you need an optimization algorithm (not detailed today)
  • 7. Direct Policy Search ● Simple, pragmatic, efficient ● Define a parametric policy : – Either parameter-free (neural network, sum of Gaussian) – Or parametric/generic (e.g. PID) – Or parametric/specific (human expertise) ● Fuzzy control : – A form of parametric DPS – Oriented toward human readability
  • 8. Fuzzy control : convert rules into fuzzy rules If temperature > 26°C then switch on AC becomes switch on AC with power – 100% if T > 27°C – 0% if T < 25°C – 50(T-25)% if 25<T<27
  • 9. Fuzzy control : convert rules into fuzzy rules Optionally, ● replace constants with parameters ● optimize parameters switch on AC with power – 100% if T > A°C – 0% if T < B°C – 100(T-B)/(A-B)% if B<T<A
  • 10. Fuzzy control : convert rules into fuzzy rules ● switch on AC with power – 100% if T > A°C – 0% if T < B°C – 100(T-B)/(A-B)% if B<T<A – – In fuzzy terminonolgy, – « membership » = this percentage.
  • 11. Multidimensional set ● Membership for « if A and B then ... » – Minimum : ms(AandB) = min(msA,msB) – Or do whatever you want (product...) ● Membership for « if A or B then ... » – Maximum : ms(AorB) = max(msA,msB) – Or do whatever you want
  • 12. Smooth fuzzy and other membership functions Thanks !
  • 13. Smooth fuzzy and other membership functions Thanks !
  • 14. Natural language & fuzzy « If the temperature is hot then switch on AC at 100% » ● Define linguistic terms : hot, cool, cold, warm, comfortable ● One rule for each term ● You might lose readability if at the end of the optimization of parameters you have « cold » which is hotter than « hot ».
  • 15. Defuzzification ● When you have several rules, maybe several of them will have positive membership and distinct recommendations. ● Which one should we apply ? – Max: choose the rule with maximum membership – Weighted: weighted average by membership
  • 16. Fuzzy control in short ● Nothing complicated (maybe some people don't like it due to that) ● Very convenient – Human expertise can be introduced – Parameter optimization possibly on complex simulations – Readable ● Widely used in Asia L. Zadeh