Вы находитесь на странице: 1из 11

MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY

Fuzzy Assignment
Neural Networks & Fuzzy Logic Assignment in MATLAB
Ahmed Mujtaba [08 ES 22]

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

THE ASSIGNMENT QUESTION


Design a Fuzzy Rule Base system using FIS of MATLAB Fuzzy toolbox which changes the gear of vehicle according to the speed. The vehicle should run in first gear if speed is less than or equal to 10 Km/Hr, it should be in 2nd gear if speed is in the range of 11 to 30 Km/Hr, it should be driven in 3rd gear if speed is in between 31 to 60 Km/Hr and in 4th gear if it exceeds this range. Develop appropriate membership functions for the inputs. Which inputs can be added other than the speed to make the system practical. The output of the system is the gear in which the vehicle should move. Develop suitable number of rules for this exercise with appropriate logical connectives. Also attach the figures of the FIS tools.

THE SOLUTION
Let us break it down the Question First we need to find the Membership functions for the INPUT, which is SPEED. The problem statement states about four speed ranges & gears, so we will make four membership functions in SPEED INPUT The other practical input other than speed could be the RPM (Revolutions per minute) of the engine. If the engine RPM is slow enough, the vehicle cannot be shift into next gear, so in a practical situation, we might want to include RPM. So we have another INPUT called RPM, which ranges about 0 to 8000. The typical value of RPM must be between 3000-5000 to shift to next gear. INPUTS ARE RPM & SPEED OUTPUT IS GEARS

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

MAIN FUZZY TOOLBOX


Here are the screenshots from the Fuzzy Toolbox

The Main Fuzzy Toolbox View

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

INPUTS

RPM Input View

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

Speed Input View

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

OUTPUT

Gears Output View

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

RULES

Rules View

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

SIMULATION GEAR 1 SIMULATION

If the speed is between 0-10, the Gear output is always 1

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

GEAR 2 SIMULATION

If the speed is between 11-30, the gear output is 2

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

GEAR 3 SIMULATION

If the speed is between 31 to 60, the gear output is 3

10

Fuzzy Assignment

Ahmed Mujtaba [08 ES 22]

GEAR 4 SIMULATION

If the speed is between 61 to 150, the gear out will be 4

END

11

Вам также может понравиться