Fuzzy Logic... A logic for taking decision

Author Topic: Fuzzy Logic... A logic for taking decision  (Read 672 times)

Offline kwnafi

  • Full Member
  • ***
  • Posts: 190
  • Never loose your hope, success will come
    • View Profile
Fuzzy Logic... A logic for taking decision
« on: July 16, 2014, 10:54:45 PM »
Fuzzy logic is a form of many-valued logic; it deals with reasoning that is approximate rather than fixed and exact. Compared to traditional binary sets (where variables may take on true or false values), fuzzy logic variables may have a truth value that ranges in degree between 0 and 1. Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range between completely true and completely false.[1] Furthermore, when linguistic variables are used, these degrees may be managed by specific functions. Irrationality can be described in terms of what is known as the fuzzjective.[2]

The term "fuzzy logic" was introduced with the 1965 proposal of fuzzy set theory by Lotfi A. Zadeh.[3][4] Fuzzy logic has been applied to many fields, from control theory to artificial intelligence. Fuzzy logics had, however, been studied since the 1920s, as infinite-valued logics - notably by Łukasiewicz and Tarski.[5]

Classical logic only permits propositions having a value of truth or falsity. The notion of whether 1+1=2 is an absolute, immutable, mathematical truth. However, there exist certain propositions with variable answers, such as asking various people to identify a color. The notion of truth doesn't fall by the wayside, but rather a means of representing and reasoning over partial knowledge is afforded, by aggregating all possible outcomes into a dimensional spectrum.

Both degrees of truth and probabilities range between 0 and 1 and hence may seem similar at first. For example, let a 100 ml glass contain 30 ml of water. Then we may consider two concepts: empty and full. The meaning of each of them can be represented by a certain fuzzy set. Then one might define the glass as being 0.7 empty and 0.3 full. Note that the concept of emptiness would be subjective and thus would depend on the observer or designer. Another designer might equally well design a set membership function where the glass would be considered full for all values down to 50 ml. It is essential to realize that fuzzy logic uses truth degrees as a mathematical model of the vagueness phenomenon while probability is a mathematical model of ignorance.
Applying truth values

A basic application might characterize subranges of a continuous variable. For instance, a temperature measurement for anti-lock brakes might have several separate membership functions defining particular temperature ranges needed to control the brakes properly. Each function maps the same temperature value to a truth value in the 0 to 1 range. These truth values can then be used to determine how the brakes should be controlled.
Fuzzy logic temperature

In this image, the meanings of the expressions cold, warm, and hot are represented by functions mapping a temperature scale. A point on that scale has three "truth values"—one for each of the three functions. The vertical line in the image represents a particular temperature that the three arrows (truth values) gauge. Since the red arrow points to zero, this temperature may be interpreted as "not hot". The orange arrow (pointing at 0.2) may describe it as "slightly warm" and the blue arrow (pointing at 0.8) "fairly cold".
Linguistic variables

While variables in mathematics usually take numerical values, in fuzzy logic applications, the non-numeric are often used to facilitate the expression of rules and facts.[6]

A linguistic variable such as age may have a value such as young or its antonym old. However, the great utility of linguistic variables is that they can be modified via linguistic hedges applied to primary terms. The linguistic hedges can be associated with certain functions.
Early applications

The Japanese were the first to utilize fuzzy logic for practical applications. The first notable application was on the high-speed train in Sendai, in which fuzzy logic was able to improve the economy, comfort, and precision of the ride.[7] It has also been used in recognition of hand written symbols in Sony pocket computers; flight aid for helicopters; controlling of subway systems in order to improve driving comfort, precision of halting, and power economy; improved fuel consumption for automobiles; single-button control for washing machines, automatic motor control for vacuum cleaners with recognition of surface condition and degree of sailing; and prediction systems for early recognition of earthquakes through the Institute of Seismology Bureau of Metrology, Japan.[8]
Example
Hard science with IF-THEN rules

Fuzzy set theory defines fuzzy operators on fuzzy sets. The problem in applying this is that the appropriate fuzzy operator may not be known. For this reason, fuzzy logic usually uses IF-THEN rules, or constructs that are equivalent, such as fuzzy associative matrices.

Rules are usually expressed in the form:
IF variable IS property THEN action

For example, a simple temperature regulator that uses a fan might look like this:

IF temperature IS very cold THEN stop fan
IF temperature IS cold THEN turn down fan
IF temperature IS normal THEN maintain level
IF temperature IS hot THEN speed up fan

There is no "ELSE" – all of the rules are evaluated, because the temperature might be "cold" and "normal" at the same time to different degrees.

The AND, OR, and NOT operators of boolean logic exist in fuzzy logic, usually defined as the minimum, maximum, and complement; when they are defined this way, they are called the Zadeh operators. So for the fuzzy variables x and y:

NOT x = (1 - truth(x))
x AND y = minimum(truth(x), truth(y))
x OR y = maximum(truth(x), truth(y))

There are also other operators, more linguistic in nature, called hedges that can be applied. These are generally adverbs such as "very", or "somewhat", which modify the meaning of a set using a mathematical formula.
Kawser Wazed Nafi
Lecturer, CSE department
Daffodil International University
nafi.cse@daffodilvarsity.edu.bd

Offline jas_fluidm

  • Faculty
  • Sr. Member
  • *
  • Posts: 288
    • View Profile
Re: Fuzzy Logic... A logic for taking decision
« Reply #1 on: July 17, 2014, 12:20:18 PM »
very good and informative post

Offline mahmud_eee

  • Hero Member
  • *****
  • Posts: 591
  • Assistant Professor, EEE
    • View Profile
Re: Fuzzy Logic... A logic for taking decision
« Reply #2 on: July 22, 2014, 03:23:12 PM »
thanks for the infos....
Md. Mahmudur Rahman
Assistant Professor, EEE
FE, DIU

Offline utpalruet

  • Full Member
  • ***
  • Posts: 213
  • Test
    • View Profile
Re: Fuzzy Logic... A logic for taking decision
« Reply #3 on: August 11, 2014, 11:23:42 AM »
superb post
Utpal Saha
Lecturer, Dept of EEE
Faculty of Engineering
ID: 710001154

Offline Kazi Taufiqur Rahman

  • Hero Member
  • *****
  • Posts: 514
    • View Profile
    • Kazi Taufiqur Rahman
Re: Fuzzy Logic... A logic for taking decision
« Reply #4 on: August 12, 2014, 08:11:51 PM »
Thanks for sharing.
Kazi Taufiqur Rahman
Senior Lecturer, EEE

Offline mostafiz.eee

  • Sr. Member
  • ****
  • Posts: 260
  • Test
    • View Profile
Re: Fuzzy Logic... A logic for taking decision
« Reply #5 on: August 25, 2014, 05:10:40 PM »
Interesting. In one of my vivas faced after my graduation I have been asked who invented fuzzy logic. I couldn't answer that. Now I know.

Offline sadia.ns

  • Full Member
  • ***
  • Posts: 110
  • Test
    • View Profile
Re: Fuzzy Logic... A logic for taking decision
« Reply #6 on: August 31, 2014, 01:12:51 PM »
Wonderful post
Sadia Sharmeen
Lecturer (ACCT)
Dept. of Natural Sciences, FSIT
sadia.ns@daffodilvarsity.edu.bd

Offline mahzuba

  • Full Member
  • ***
  • Posts: 235
  • Test
    • View Profile
Re: Fuzzy Logic... A logic for taking decision
« Reply #7 on: September 17, 2014, 03:30:43 PM »
Informative post...

Offline Nayeem Arch

  • Sr. Member
  • ****
  • Posts: 361
  • Nothing is impossible
    • View Profile
Re: Fuzzy Logic... A logic for taking decision
« Reply #8 on: November 24, 2015, 11:25:10 AM »
Informative.thank u  for sharing
Md. Nazmul Hoque Nayeem
Lecturer,Dept.of Architecture
Daffodil International University

Offline shafayet

  • Hero Member
  • *****
  • Posts: 1024
  • Test
    • View Profile
Re: Fuzzy Logic... A logic for taking decision
« Reply #9 on: November 26, 2015, 02:53:28 AM »
nice post :)