Professional Documents
Culture Documents
Fuzzy sets
1. 2. 3. 4.
WP 1 0,0 0,0 20,0 40,0
WP 2 20,0 40,0 40,0 60,0
WP 3 40,0 60,0 60,0 80,0
WP 4 60,0 80,0 100,0 100,0
Figure 11. Real time trend.
Table 3. Working points with fuzzy sets.
3.3 Implementation details of fuzzy expert system
PID regulator constants The interface of the implemented fuzzy expert system
KP TI TD function block is shown on Fig. 12.
WP 1 8,9274 0,2730 5,2219
WP 2 17,2548 0,1412 10,0929
WP 3 22,8065 0,1069 13,3402
WP 4 33,9097 0,0719 19,8348
Figure 10. Working points and fuzzy sets. Figure 12. Implemented function block of
fuzzy expert system.
Figure 13. The main visualization window of fuzzy expert system.
The implemented fuzzy expert system processes , - Value of the PID derivative part of i-th
Process Value in its fuzzy algorithm. Process Value fuzzy set (working point).
can cover the operating range of up to eight fuzzy sets , - The calculated derivative part of the
representing up to eight working points. Two fuzzy PID controller
sets representing two working points are minimum - Number of fuzzy sets (number of working
number of fuzzy sets. Fuzzy sets names have general points).
meaning: from Working point 1 to Working point 8. - The degree of membership of the
Each fuzzy set is determined by four coordinates and controlled variable of i-th fuzzy set.
can be form as trapezoid fuzzy set or triangular fuzzy
set. Coordinates of the fuzzy sets and sets of PID
PID constants are calculated (8) - (10) by Takagi- regulator parameters are inputs of fuzzy expert system.
Sugeno defuzzification method. Fuzzy expert system includes an initialization
procedure (input InitFuzzy) that will get the
,
,
(8) coordinates of fuzzy sets and sets of PID regulator
parameters from input structures into static structures
of the function block of fuzzy expert system.
,
, (9) Coordinates of fuzzy sets and sets of PID regulator
parameters are also checked during the initialization
procedure because wrong coordinates (wrong order of
, fuzzy sets coordinates etc.) of fuzzy sets can have a
, (10)
fatal impact to manipulated value calculation. If any
, - Value of the PID proportional part of i- errors are detected during initialization procedure these
th fuzzy set (working point). errors are then indicated at the output of function block
, - The calculated proportional part of PID outputs InSetsOK, PIDConOK, NmbrOfPntsOK (and
controller. shown on visualization).
, - Value of the PID integral part of i-th The input value is fuzzificated by the function
fuzzy set (working point). Fuzzification degrees of membership of Process
, - The calculated integral part of PID Value are calculated depending on coordinates of fuzzy
controller sets.
Furthermore, on the basis of (8) - (10) PID constant
calculated and transmitted to the PID regulator
function block.
So-called manual control mode is also implemented
to expert fuzzy (input Man). Fuzzy expert system can
be switched to manual control mode and PID regulator
parameters from function block input are directly
copied to the output (to the PID regulator).