160 likes | 315 Views
Fuzzy Logic. Fuzzy Control. Solution: Homework 10. Fuzzy Logic. Fuzzy Control. Solution: Homework 10 (Cont.). FC with 5 Rules. R ule 1 : IF level is okay, T HEN valve is no change. R ule 2 : IF level is low, THEN valve is open fast.
E N D
Fuzzy Logic Fuzzy Control Solution: Homework 10
Fuzzy Logic Fuzzy Control Solution: Homework 10 (Cont.) FC with 5 Rules • Rule 1:IF level is okay, THEN valve is no change. • Rule 2: IF level is low, THEN valve is open fast. • Rule 3: IF level is high, THEN valve is close fast. • Rule 4: IF level is okay AND rate is negative, THEN valve is open slow. • Rule 5: IF level is okay AND rate is positive, THEN valve is close slow. • Rule 1:IF error is zero, THEN valve is no change. • Rule 2: IF error is positive,THEN valve is open fast. • Rule 3: IF error is negative,THEN valve is close fast. • Rule 4: IF error is zero AND error rate is positive, THEN valve is open slow. • Rule 5: IF error is zero AND error rate is negative, THEN valve is close slow. error=reference – level rate of error= – rate oflevel
Fuzzy Logic Fuzzy Control no change close slow open slow close fast open fast 1 –30 –20 –10 0 10 20 30 negative zero positive negative zero positive 1 1 –5 –4 0 45 –4 –0.5 0 0.5 4 Solution: Homework 10 (Cont.) 1st Set of Membership Functions Level error [cm] Rate of level error [cm/s] Valve control signal [%/s]
Fuzzy Logic Fuzzy Control Solution: Homework 10 (Cont.)
Fuzzy Logic Fuzzy Control no change close slow open slow close fast open fast 1 –30 –20 –10 0 10 20 30 negative zero positive negative zero positive 1 1 –5 -1 0 1 5 –4 –0.5 0 0.5 4 Solution: Homework 10 (Cont.) 2nd Set of Membership Functions Level error [cm] Rate of level error [cm/s] Valve control signal [%/s]
Fuzzy Logic Fuzzy Control Solution: Homework 10 (Cont.)
Fuzzy Logic Fuzzy Control no change close slow open slow close fast open fast 1 –30 –20 –10 0 10 20 30 negative zero positive negative zero positive 1 1 –10 –?0 ?10 –4 –0.5 0 0.5 4 Solution: Homework 10 (Cont.) 3rd Set of Membership Functions Level error [cm] Rate of level error [cm/s] Valve control signal [%/s]
Fuzzy Logic Fuzzy Control Solution: Homework 10 (Cont.)
Fuzzy Logic Fuzzy Control y e r u + – PID-like Fuzzy Controllers Fuzzy P Controller
Fuzzy Logic Fuzzy Control e r + y u – PID-like Fuzzy Controllers Fuzzy PD Controller
Fuzzy Logic Fuzzy Control + y r e u – PID-like Fuzzy Controllers Fuzzy PID Controller • Weakness: too many rules
Fuzzy Logic Fuzzy Control e r + y Du – PID-like Fuzzy Controllers Fuzzy PD+I Controller
Fuzzy Logic Fuzzy Control u y e r + – Du + + PID-like Fuzzy Controllers Fuzzy PD+I Controller
Fuzzy Logic Fuzzy Control u y e r + – + + PID-like Fuzzy Controllers Fuzzy PD+I Controller
Fuzzy Logic Fuzzy Control End of the Lecture