[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1040) Multi-pattern accumulate support

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Sat Sep 22 02:49:11 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBRULES-1040?page=comments#action_12378192 ] 
            
Geoffrey De Smet commented on JBRULES-1040:
-------------------------------------------

It works :) I was apparently still testing with 4.0.1.SNAPSHOT instead of 4.0.2.SNAPSHOT... rookie mistake.

Though the test times prove that backwards chaining behavior is hurting the local search solver at the moment:

before: with the logically asserted workaround object
after: with the multipattern accumulate

nqueens08:
before: INFO  Solved in 71 steps and 797 time millis spend.
after: INFO  Solved in 71 steps and 1516 time millis spend.

nqueens16:
before: INFO  Solved in 31 steps and 1453 time millis spend.
after: INFO  Solved in 31 steps and 7625 time millis spend.

nqueens32:
before: INFO  Solved in 55 steps and 11781 time millis spend.
after: didn't want to wait but the first 3 steps took around 40 seconds.


Great work for getting it fixed, but obviously I can't wait till query's can be configured to work forward chained :)

> Multi-pattern accumulate support
> --------------------------------
>
>                 Key: JBRULES-1040
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-1040
>             Project: JBoss Rules
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Reteoo, Drl Parser/Builder
>    Affects Versions:  4.0.0.GA
>            Reporter: Geoffrey De Smet
>         Assigned To: Edson Tirelli
>             Fix For: 4.0.2
>
>
> [Edson said there might be already such an issue, but I couldn't find it looking through jira.]
> Something like this should be possible:
>   $multipleQueensHorizontal : Long()
>     from accumulate(
>         $q1 : Queen($id : id, $y : y);
>         Queen(id > $id, y == $y);
>       , count($q1)
>     );

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list