A simulation-implementation methodology of a fuzzy logic based control system