I think =?ISO-8859-1?Q?Joaquin_Ca=F1adas?= wrote: > > We want to use backward chaining in order to ask the user the minimum > number of values necessary to obtain the conclusion.
Ah, OK. Well, the way to do it is to add another level of indirection; i.e., write rules that explicitly depend on the answers to questions, then backward-chain on the "answer" facts. The rules that match need-answer facts prompt the user and assert answers. By representing questions and answers as facts, the rules that ask the questions can be completely generic -- i.e., you only need one set of them to handle all possible questions. The book "Jess in Action" has several fully-worked examples of this. --------------------------------------------------------- Ernest Friedman-Hill Science and Engineering PSEs Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------
