Aim – Write A Program To Implement Tipping Problem.
Tools – MATLAB
Theory –
This project solves a
tipping problem that considers the quality of service and the taste of food in
order to determine the proper amount of tip to be given. It may sound simple
yet it is solved using a Sugeno Fuzzy Logic Inference System with 2 input
variables and 1 output variable, all of this has been programmed into a Basic
STAMP 2. Fuzzyfication, Rule evaluation and
defuzzyfication are all written
in BS2's code, the result is a nonlinear surface that can be evaluated in real
time for different values of its inputs. This project was based on MATLAB's
Fuzzy Logic Toolbox User's Manual, and the output generated by the BS2 can be
compared to that produced by MATLAB to prove the functionality of the routine
and the utility of having a Fuzzy Logic controller run from within a BS2
microcontroller.
Rules::
1. If the service is poor or the food is rancid, then tip is cheap.
2. If the service is good, then tip is average.
3. If the service is excellent or the food is delicious, then tip is
generous.
0 Comments