# Problem using simple fuzzy logic in artifical intelligence

Subject: Problem using simple fuzzy logic in artifical intelligence
From: Teemu Hiltunen (th58403@uta.fi)
Date: Tue Oct 17 2000 - 14:23:50 MET DST

Hello,

I'm making an "intelligent" agent as a school project (in Prolog) and I
would like to use some simple fuzzy logic in it. The agent should function
as a football manager and respond somehow to the events firing in a
football game. One event is 'time' and I was thinking to build some rules
like this:

if time_left(lot) then do_something(..)
if time_left(little) and match_important(very) then ...

If a construct time variable like this (CrispTime is an integer between
0-90):
TimeLeft(lot) = -1/30 * CrispTime + 1 (0<=CrispTime<30)
TimeLeft(lot) = 0 (CrispTime>30)
TimeLeft(some) = 1/30 * CrispTime (0<=CrispTime<30)
TimeLeft(some) = 1 (30<=CrispTime<=60)
TimeLeft(some) = -1/30 * CrispTime + 3 (CrispTime>60)
TimeLeft(little) = 0 (CrispTime<60)
TimeLeft(little) = 1/30 * CrispTime - 2 (CrispTime>=60)

functions go something like this:
1.0\ /--------\ /
\ / \ /
0.5 / /
/ \ / \
0.0/ \ / \
0 30 60 90

Now, the problem:
If the crisp (sharp?) time is e.g. 10 minutes left then what is the fuzzy
time_left(lot)? If I say that time_left(lot) is true when
TimeLeft(lot)>=0.5 then is it fuzzy anymore??? It means that at some point
of the match there is a lot of time left but the next minute only some
time left. I could construct it without any fuzzy rules using plain
integer values. Is there any simple method that I could use or is this a
wrong place to use fuzziness anyway?

I appologize the fuzziness of explanation, I hope that someone got the
point.

Teemu Hiltunen
teemu.hiltunen@uta.fi

############################################################################
This message was posted through the fuzzy mailing list.
(1) To subscribe to this mailing list, send a message body of
"SUB FUZZY-MAIL myFirstName mySurname" to listproc@dbai.tuwien.ac.at
(2) To unsubscribe from this mailing list, send a message body of
"UNSUB FUZZY-MAIL" or "UNSUB FUZZY-MAIL yoursubscription@email.address.com"
to listproc@dbai.tuwien.ac.at
(3) To reach the human who maintains the list, send mail to
fuzzy-owner@dbai.tuwien.ac.at
(4) WWW access and other information on Fuzzy Sets and Logic see
http://www.dbai.tuwien.ac.at/ftp/mlowner/fuzzy-mail.info
(5) WWW archive: http://www.dbai.tuwien.ac.at/marchives/fuzzy-mail/index.html

This archive was generated by hypermail 2b25 : Tue Oct 17 2000 - 14:25:48 MET DST