How to try each possibilities?
Posted: Fri Sep 11, 2015 5:40 pm
I'm working on a project where I need to dispatch products into groups and then test a set of 'performances'.
For example :
18 products to dispach
8 room/sit in each group
3 groups where to dispatch the product
I've wrote a script that use logical rules to optimize the dispatching of the products into each group, to get a 'not so bad' result of performances.
To test for other possibilities I've set a function that random the dispatching and test, recursively, until limit of try or if the goal of performance is reached.
But, I would like to try for each possibilities, one by one, and stop when each possibilities have been tested.
Is there a logical/mathematical method to do that in script ?
For example :
18 products to dispach
8 room/sit in each group
3 groups where to dispatch the product
I've wrote a script that use logical rules to optimize the dispatching of the products into each group, to get a 'not so bad' result of performances.
To test for other possibilities I've set a function that random the dispatching and test, recursively, until limit of try or if the goal of performance is reached.
But, I would like to try for each possibilities, one by one, and stop when each possibilities have been tested.
Is there a logical/mathematical method to do that in script ?