Re: JESS: First try with backward-chaining

2006-11-13 Thread Ernest Friedman-Hill
On Nov 10, 2006, at 12:11 AM, Skeptic 2000 wrote: Hi, I tried for the first time to use backward-chaining and I can't figure out why this simple example don't work : It doesn't work because you never call "reset". It's good practice to call "reset" at some point before running any Jess

Re: JESS: multislot __data question

2006-11-13 Thread Ernest Friedman-Hill
On Nov 13, 2006, at 1:22 AM, Soil inf. wrote: "it is better practice to explicitly define an unordered fact template with a multislot to hold the list." I am using an unordered template with multislots and return "not a number" error when i try to add / subtract multislot values. Sorry fo

RE: JESS: First try with backward-chaining

2006-11-13 Thread Greenblatt, Alan
Try doing a (reset) before the (run). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Skeptic 2000 Sent: Friday, November 10, 2006 12:11 AM To: jess-users@sandia.gov Subject: JESS: First try with backward-chaining Hi, I tried for the first time to use b

JESS: First try with backward-chaining

2006-11-13 Thread Skeptic 2000
Hi, I tried for the first time to use backward-chaining and I can't figure out why this simple example don't work : (deftemplate x (declare (backchain-reactive TRUE)) (slot a) (slot b) ) (defrule printX (x (b 12)) => (printout t "yeah!") ) (defrule createX (need-x (b ?y)) =>

Re: JESS: multislot __data question

2006-11-13 Thread Soil inf.
"it is better practice to explicitly define an unordered fact template with a multislot to hold the list." I am using an unordered template with multislots and return "not a number" error when i try to add / subtract multislot values. Sorry for such a basic question but how do i handle the multisl