1 / 24

Homework 5

Fuzzy Logic. Homework 5. Membership Function. Min. “Temperature is low” AND “Temperature is middle”. Max. “Temperature is low” OR “Temperature is middle”. Homework 5. Fuzzy Logic. Membership Function. Algebraic product. “Temperature is low” AND “Temperature is middle”. Algebraic sum.

grady-yang
Download Presentation

Homework 5

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Fuzzy Logic Homework 5 Membership Function Min “Temperature is low” AND “Temperature is middle” Max “Temperature is low” OR “Temperature is middle”

  2. Homework 5 Fuzzy Logic Membership Function Algebraic product “Temperature is low” AND “Temperature is middle” Algebraic sum “Temperature is low” OR “Temperature is middle”

  3. Homework 5 Fuzzy Logic Membership Function Bounded product “Temperature is low” AND “Temperature is middle” Bounded sum “Temperature is low” OR “Temperature is middle”

  4. Fuzzy Logic Fuzzy Control Further Fuzzy Set Operations Dilation Concentration

  5. Fuzzy Control Loop Fuzzy Logic Fuzzy Control

  6. Fuzzy Logic Fuzzy Inference Fuzzy Control • Prior to fuzzy control, the followings must be defined: • Fuzzy membership functions • Fuzzy logic operators • Fuzzy rules, including fuzzy linguistic value and linguistic variable • The processing steps in a fuzzy control include: • Fuzzification • Implication / Inference Core • Accumulation • Defuzzification

  7. Fuzzy Logic Fuzzy Rules Fuzzy Control • Example of a fuzzy rule while “Driving a Car”: “IF the distance to the car in front is small, AND the distance is decreasingslowly, THEN deceleratequite big” • The question that arises: Given a certain distance and a certain change of distance, what (crisp) value of acceleration should we select?

  8. Fuzzy Logic Fuzzy Control v. small small perfect big v. big fast very fast v. slow slow moderate Distance Distance decrease –big zero +small +big –small Acceleration Definition of Fuzzy Membership Functions

  9. Fuzzy Logic Fuzzy Control v. small small perfect big v. big fast very fast v. slow slow moderate Distance Distance decrease –big zero +small +big –small Acceleration Fuzzification Observation/measurement Observation/ measurement • Distance between small and perfect • Distance decrease can be moderate or fast • What acceleration should be applied?

  10. Implication of Rules Fuzzy Logic Fuzzy Control v. small small perfect big v. big Distance –big zero +small +big –small Acceleration Observation/measurement 0.55 Inference core: Clipping Clip the fuzzy membership function of “–small” at the height given by the premises (0.55). Later, the clipped area will be considered in the final decision RULE 1:IF distance is small THEN decelerate small

  11. Implication of Rules Fuzzy Logic Fuzzy Control v. slow slow moderate fast very fast Distance decrease –big zero +small +big –small Acceleration Observation/measurement 0.7 Inference core: Clipping Clip the fuzzy membership function of “zero” at the height given by the premises (0.7). Later, the clipped area will be considered in the final decision RULE 2:IF distance decrease is moderate THEN keep the speed

  12. Fuzzy Logic Fuzzy Control –big zero +small +big –small Rule 1 Rule 2 Acceleration Accumulation • From each rule, a clipped area is obtained. But, in the end only one single output is wanted. How do we make a final decision? • In the accumulation (aggregation) step, all clipped areas are merged into one merged area (taking the union). • Rules with high premises will contribute large clipped area to the merged area. These rules will “pull” that merged area towards their own central value.

  13. Fuzzy Logic Defuzzification Fuzzy Control Center of gravity –big zero +small +big –small Acceleration Crisp value • In this last step, the returned value is the wanted acceleration. • Out of many possible ways, the center of gravity is the commonly used method in defuzzification.

  14. Fuzzy Logic Inference Core Fuzzy Control acceleration acceleration • There are two approaches that can be used for inference core: 1. Clipping approach: 0.55 Min-Operator Membership function Fuzzification value 2. Scaling approach: 0.55 Algebraic Product

  15. Fuzzy Logic Review on Center of Gravity Fuzzy Control Rectangle Triangle

  16. Fuzzy Logic Review on Center of Gravity Fuzzy Control Isosceles Trapezoid Trapezoid

  17. Fuzzy Logic Fuzzy Control Summary of Fuzzy Control Fuzzify inputs, determine the degree of membership for all terms in the premise. Apply fuzzy logic operators, if there are multiple terms in the premise (min-max, algebraic, bounded). Apply inference core (clipping, scaling, etc.) Accumulate all outputs (union operation i.e. max, sum, etc.) Defuzzify (center of gravity of the merged outputs, max-method, modified center of gravity, height method, etc)

  18. Fuzzy Logic Fuzzy Control Limitations of Fuzzy Control • Definition and fine-tuning of membership functions need experience (covered range, number of MFs, shape). • Defuzzification may produce undesired results (needs redefinition of membership functions).

  19. Fuzzy Logic Fuzzy Control declining constant v. small small perfect big v. big growing 1 1 0 5 10 15 20 25 –10 –5 0 5 10 Speed change [m/s2] Distanceto next car [m] –big zero +small +big –small 1 –2 –1 0 1 2 Acceleration adj.[m/s2] Homework 6 • A fuzzy controller is to be used in driving a car. The fuzzymembership functions for the two inputs and one output are defined as below.

  20. Fuzzy Logic Fuzzy Control Homework 6 (Cont.) • A fuzzy controller is to be used in driving a car. The fuzzy rules are given as follows. • Rule 1:IF distance is small ANDspeed is declining,THENmaintain acceleration. • Rule 2: IFdistance is small ANDspeed is constant,THENacceleration adjustment negative small. • Rule 3: IF distance is perfect ANDspeed is declining, THEN acceleration adjustment positive small. • Rule 4: IF distance is perfect ANDspeed is constant, THEN maintain acceleration.

  21. Fuzzy Logic Fuzzy Control Homework 6 (Cont.) • Using Min-Max as fuzzy operators, clipping as inference core, union operator as accumulator, and center of gravity method as defuzzifier, find the output of the controller if the measurements confirms that distance to next car is 13 m and the speed is increasing by 2.5 m/s2.

  22. Fuzzy Logic Fuzzy Control Homework 6 New • A driver of an open-air car determine how fast he drives based on the air temperature and the sky conditions. The corresponding fuzzy membership functions can be seen here. NEW

  23. Fuzzy Logic Fuzzy Control Homework 6 New(Cont.) • After years of experience, he summarizes his personal driving rules as follows: • Rule 1:IF it is sunny AND warm, THEN drive fast. • Rule 2: IF it is partly cloudy AND hot, THEN drive slow. • Rule 3: IF it is partly cloudy, THEN drive fast. • You are now assigned to design a fuzzy control with the following requirements: • Fuzzy logic operators: algebraic sum / product • Inference core: scaling • Accumulator: union operator • Defuzzification: center of gravity method • The speed limit is 120 km/h. How fast will the driver go if in one day the temperature is 65 °F and the cloud cover is 25 %? NEW

More Related