This pattern of behavior -- where you want to write rules simply and
let Jess ask the user for any additional information needed to satisfy
them -- can be achieved using backward chaining. There are some
detailed examples of how to do this -- asking questions with backward
chaining -- in the book "Jess in Action". There are some simpler
examples of backward chaining in the Jess manual, and they might be
good enough to give you an idea of how to do it.
On Apr 8, 2009, at 10:00 AM, shashi fernando wrote:
Hi friends,
I'm newbie to expert systems, and having the requirement described
in the following section. I need to know whether I could accomplish
this requirement with Jess, so looking for help from you.
say we have fact A,B,C. And each of fact defines one of priority
level - low, medium and high
These facts may change their priority levels, and base on those
priority levels, certain task need to be executed by user.
So I'm trying to use a rule-based system where I expect to define
relationships between above facts as follows.
If A is low & C is high
then "execute task W1"
If B is high & A is low
then "execute task W2"
............ and so on..
Given a fact status : A is low by user, I need rule-based system to
map the fact status with its rules (in this case above two rules are
mapped).
If we take the first rule, fact C should also high. So the rule
system must identify this possibility and ask a question back from
the user like, is fact C high? Once the user provide answer to the
question, rule system must map the other conditions in the similar
way until it could derive a conclusion.
It will be appreciated , if you could provide me suggestions on
implementing above interaction.
Thank You
sha
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.com
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected].
--------------------------------------------------------------------