[rules-users] Planner: localSearch > unionMoveSelector

Michiel Vermandel mvermand at yahoo.com
Tue Jan 29 04:58:29 EST 2013


Hi Geoffrey,

Thanks for confirming and optimizing documentation.
I think the thing which confused me is that in the doc (http://docs.jboss.org/drools/release/5.5.0.Final/drools-planner-docs/html_single/index.html#d0e5583) does not say anything about RANDOM selection in the first (simple configuration) sections.
If I am correct that even in the simple configuration this random selection is the case, then may I suggest this change:

 7.4.1. unionMoveSelector
 A unionMoveSelector selects a Move by randomly selecting 1 of its child MoveSelectors to supply the next Move.

I know it's a very small change, but it takes away the doubt upfront.

One more question concerning this chapter:

In the advanced configuration section, the first example uses both selectorProbabilityWeightFactoryClass  fixedProbabilityWeight.
Should one use these in combination? Or is it the one or the other?
Also, in the second example only fixedProbabilityWeight is used. 
It seems strange to build a Factory that calculates the weight and in the same time to specify the weight hard-coded for every (some of the) child moveselectors.

Am I right here?

Thanks,

Michiel


-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials


________________________________
 From: Geoffrey De Smet <ge0ffrey.spam at gmail.com>
To: rules-users at lists.jboss.org 
Sent: Tuesday, January 29, 2013 9:50 AM
Subject: Re: [rules-users] Planner: localSearch > unionMoveSelector
 



Op 28-01-13 21:24, Michiel Vermandel schreef:

Hi,
>
>
>If I have a default unionMoveSelector in my configuration:
>
>
>
>    <unionMoveSelector>
>      <...MoveSelector/>
>      <...MoveSelector/>
>      <...MoveSelector/>
>      ...
>    </unionMoveSelector>
>
>
>then is the next move selected by random amongst the different move selectors.
Yes

What's unclear from
http://docs.jboss.org/drools/release/5.5.0.Final/drools-planner-docs/html_single/index.html#d0e5583
Does this commit make it clearer?
https://github.com/droolsjbpm/drools-planner/commit/b1011e1fff9fd9e19e6f28d35a255b65dda3f784


I think I can understand that from the manual, though want to verify that.
>
>
>Thanks
>
>
>Michiel
>
>-----------------
>http://www.codessentials.com - Your essential software, for
          free!
>Follow us at http://twitter.com/#!/Codessentials
>
>
>_______________________________________________
rules-users mailing list rules-users at lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users 

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130129/40c3b832/attachment-0001.html 


More information about the rules-users mailing list