FLCU – Fuzzy logic controller unit
Block SymbolLicensing group: ADVANCED
Function Description
The FLCU block implements a simple fuzzy logic controller with two inputs and one output.
Introduction to fuzzy logic problems can be found in [3].
The output is defined by trapezoidal membership functions of linguistic terms of the u and v inputs, impulse membership functions of linguistic terms of the y output and inference rules in the form
If (u is ) AND (v is ), then (y is ),
where are the linguistic terms of the u input; are the linguistic terms of the v input and are the linguistic terms of the y output. Trapezoidal (triangular) membership functions of the u and v inputs are defined by four numbers as depicted below.
Not all numbers are mutually different in triangular functions. The matrices of membership functions of the u and v input are composed of rows . The dimensions of matrices mfu and mfv are () and () respectively.
The impulse 1st order membership functions of the y output are defined by the triplet
where is the value assigned to the linguistic term in the case of . If and , then the term is assigned the value of . The output membership function matrix sty has a dimension of () and contains the rows .
The set of inference rules is also a matrix whose rows are , where and defines a particular linguistic term of the and inputs and output respectively. The number defines the weight of the rule in percents . It is possible to suppress or emphasize a particular inference rule if necessary.
Inputs
u | First analog input of the block | Double (F64) |
v | Second analog input of the block | Double (F64) |
Outputs
y | Analog output of the block | Double (F64) |
ir | Dominant rule | Long (I32) |
wr | Degree of truth of the dominant rule | Double (F64) |
Parameters
umax | Upper limit of the u input 1.0 | Double (F64) |
umin | Lower limit of the u input -1.0 | Double (F64) |
vmax | Upper limit of the v input 1.0 | Double (F64) |
vmin | Lower limit of the v input -1.0 | Double (F64) |
nmax | Number of reserved (allocated) membership functions (for each inputs and output) 4 10000 10 | Long (I32) |
mfu | Matrix of membership functions of the input u [-1 -1 -1 0; -1 0 0 1; 0 1 1 1] | Double (F64) |
mfv | Matrix of membership functions of the input v [-1 -1 -1 0; -1 0 0 1; 0 1 1 1] | Double (F64) |
sty | Matrix of membership functions of the output y [-1 0 0; 0 0 0; 1 0 0] | Double (F64) |
rls | Matrix of inference rules [1 2 3 100; 1 1 1 100; 1 0 3 100] | Byte (U8) |
[Previous] [Back to top] [Up] [Next]
2024 © REX Controls s.r.o., www.rexygen.com