On Thursday 10 May 2007 2:59:09 pm Steve Solomon wrote:

> Only, the above rule doesn't work. The CE in the accumulate CE can only
> be a simple CE; patterns with multiple CEs using the operator 'and' are
> not allowed.

Yeah. We're planning to add support for this for Jess 7.1 (the first alpha of 
which, by the way -- which doesn't have this feature yet -- will come out 
next week.)

> My question is, what is the preferred way to do an accumulate type
> operation in Jess involving a complex pattern? My approach above is not
> what queries were intended for and is probably not efficient over a
> large WM space. I've also experimented with letting the rule engine do
> each step of the product in a separate rule firing. This solution
> requires about 5 rules and lots of temporary working memory. And it's
> not clear it's any more efficient.

The queries would probably be a little better. I agree there's no great way to 
do this now, which is why accumulate was introduced. When it is enhanced to 
the level we originally envisioned, it will be that missing great solution. 
For now, I'd do the query.

---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
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]
--------------------------------------------------------------------

Reply via email to