Fuzzy Logic Principles and Applications
Fuzzy Logic Principles and Applications
Professor-Researcher
Co-responsable of ESEA field :
Energy, Electrical and Automated Systems
Member of Electric Networks Team (L2EP)
Graduate School of Engineering, Lille
(HEI-Lille, France)
Fuzzy Logic looks at the world in imprecise terms, in much the same way
that our brain takes in information (e.g. temperature is hot, speed is slow),
then responds with precise actions.
Fuzzy logic differs from classical logic in that statements are no longer
black or white, true or false, on or off.
In traditional logic an object takes on a value of either zero or one.
In fuzzy logic, a statement can assume any real value between 0 and 1,
representing the degree to which an element belongs to a given set.
(Computerworld)
A fuzzy system might say that he is partly medium and partly tall.
http://blog.peltarion.com/2006/10/25/fuzzy-math-part-1-the-theory/
obstacle
(obsx, obsy)
(x,y)
menu
Another example: Fuzzy Sets for Robot Navigation
SMALL
MEDIUM
LARGE
NEAR
FAR
VERY FAR
Angle
Speed
Summary of Steps
1. determining a set of fuzzy rules
2. fuzzifying the inputs using the input membership functions,
3. combining the fuzzified inputs according to the fuzzy rules to
establish a rule strength,
4. finding the consequence of the rule by combining the rule
strength and the output membership function (if it’s a
mamdani FIS),
5. combining the consequences to get an output distribution,
and
6. defuzzifying the output distribution (this step applies only if a
crisp output (class) is needed).
IF Rule THEN
Strength
and
xo yo
and
Xo Yo
Fuzzy rules are a collection of linguistic statements that describe how the FIS
should make a decision regarding classifying an input or controlling an output.
30/09/2019 Dhaker ABBES 13
Mamdani FIS
Mamdani-type inference, expects the output membership functions to be fuzzy
sets. After the aggregation process, there is a fuzzy set for each output variable that
needs defuzzification.
http://www.mathworks.com/access/helpdesk/help/toolbox/fuzzy/index.html?/access/helpdesk/help/toolbox/fuzzy/bp78l6_-
1.html&http://www.mathworks.com/cgi-
bin/texis/webinator/search/?db=MSS&prox=page&rorder=750&rprox=750&rdfreq=500&rwfreq=500&rlead=250&sufs=0&order=r&is_summa
ry_on=1&ResultCount=10&query=fuzzy+logic&submitButtonName=Search
http://www.mathworks.com/access/helpdesk/help/toolbox/fuzzy/index.html?/access/helpdesk/help/toolbox/fuzzy/bp78l6_-
1.html&http://www.mathworks.com/cgi-
bin/texis/webinator/search/?db=MSS&prox=page&rorder=750&rprox=750&rdfreq=500&rwfreq=500&rlead=250&sufs=0&order=r&is_summa
ry_on=1&ResultCount=10&query=fuzzy+logic&submitButtonName=Search
In this figure, the flow proceeds up from the inputs in the lower left, then
across each row, or rule, and then down the rule outputs to finish in the lower
right. This compact flow shows everything at once, from linguistic variable
fuzzification all the way through defuzzification of the aggregate output.
30/09/2019 Dhaker ABBES 18
Sugeno FIS
Sugeno FIS is similar to the Mamdani method in many respects. The first two parts of
the fuzzy inference process, fuzzifying the inputs and applying the fuzzy operator, are
exactly the same. The main difference between Mamdani and Sugeno is that the
Sugeno output membership functions are either linear or constant.
For a zero-order Sugeno model, the output level z is a constant (a=b =0).
30/09/2019 Dhaker ABBES 19
Sugeno FIS
It is computationally efficient.
It can be used to model any inference system in
which the output membership functions are either
linear or constant.
It works well with linear techniques (e.g., PID control).
It works well with optimization and adaptive
techniques.
It has guaranteed continuity of the output surface.
It is well suited to mathematical analysis.
Advantages of the Mamdani Method
It is intuitive.
It has widespread acceptance.
It is well suited to human input.
𝐸𝑏 = 𝐾𝜑 𝜔
Torque:
𝑇𝑚 = 𝐾𝜑 𝐼𝑎
𝜔 is the angular velocity (speed) and friction in rotor of motor is very small (can be
neglected) so Bm = 0.
Armature Time Constant:
30/09/2019
Dhaker ABBES 27
Task 3 : example of control
4) Represent membership functions for inputs
and output variables.
Input 1 range: [-1 1]
Input 2 range: [- 1 1]
Output range: [-30 30].
6) What is the inference system type used here? Is there another type?
The fuzzy logic approach has minimum overshoot, minimum transient and steady state
parameters, which shows more effectiveness and efficiency of FLC than conventional
PID controller.
You are given 3 slides taken from a power point presentation done by a PhD student from HEI L2EP in
ELECTRIMACS conference (Spain 2014). Well understand the problematic and the objectives then
respond to the question.
STEP 6
Determination of the fuzzy rules
STEP 7
Determination of indicators to measure
the achievement of objectives
STEP 4
Plocal
0.5
1
Small
-0.8 -0.6 -0.4 -0.2 0
Plocal
Medium
0.2 0.4 0.6 0.8
Big
1
functions
SOC
0.5
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
SOC
Negative-Big Zero Positive-Big
Inputs: 1
0.5
0.5
0
-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1
Psto-ref-sht
ΔPlocal| is PB or Z
STEP 5 Psto_ref_lgt is NB Psto_ref_lgt is PB Psto_ref_lgt is NB Psto_ref_lgt is PB
| |
graphs - |
ΔPlocal is NB N1.1
•
CMDPS kt P 2
( x) five tariff time periods T
tT xX t
excess
• α=0.3584€/kW
• kt (%) is a power coefficient for each time tariff period t
Pexcess Pgrid Psubscribed • Xt represents the index set x belonging to each time class t).
Energy indicator (ratio between the locally consumed energy of RES and the
produced one)
Power(p.u.)
To reduce the electricity bill
Predictive Psto_ref_lgt
PRES_forecast
mode
Electricity cost Long-term 0
Pgrid ΔPexcess
To limit exceeding subscribed power +- K1
Psubscribed Psto_ref_sht -0.1
K5
To ensure the storage availability
SOC K2
0 1 2 3 4 5 6 7
ΔPlocal 1
Ptrain +- K3 FL energy
price(p.u.)
To favor local RES consumption PRES management
K4
HRPS supervision 0.5
K1, K2, K3, K4, K5 = normalisation gains
electricity price
0
0 1 2 3 4 5 6 7
Weekday
Storage system:
Csto = 5000 kWh
Production and consumption profiles Psto-max = 1MW
ηcharge=90%, ηdischarge=90%
1 SOCmin, SOCmax
Ptrain
0.8 Ppv
time response constant (τ=0.5s)
Pwind
Power(p.u.)
0.6
0.4
0.2
0
0 1 2 3 4 5 6 7
Weekday
30/09/2019 Dhaker ABBES 43
Task 4 : Fuzzy logic applied to energy management
Pgrid
0.5
0
0 2 4 6 8 10 12 14 16 18 20 22 0 2 4 6 8 10 12 14 16 18 20 22
1 storage system charges
SOC when RES exceed train
SOC(%)
0
Psto-ref-lgt
-0.05 Psto
0 2 4 6 8 10 12 14 16 18 20 22 0 2 4 6 8 10 12 14 16 18 20 22
time(hours)
adjustment of Psto-ref-lgt reference power
Umesh Kumar Bansal and Rakesh Narvey, «Speed Control of DC Motor Using Fuzzy PID
Controller », Advance in Electronic and Electric Engineering. ISSN 2231-1297, Volume 3,
Number 9 (2013), pp. 1209-1220 , © Research India Publications.
Dhaker ABBES