question

berkowicz-k avatar image
0 Likes"
berkowicz-k asked Felix Möhlmann answered

Staff Roles Experiment Setup

Hello,

I would like to run an experiment where I assign different sets of tasks for each staff member. For example if I have 10 tasks and 5 staff members the experiment would iterate through every way to divide those 10 tasks among 5 staff members. And I would repeat the experiment with 5,6,7 etc number of staff members. What would be the easiest way to set this up via experimenter?


Thank you!

FlexSim 21.0.10
experimenterstafftaskstaff member
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The easiest (only) option that comes to mind is to write an algorithm that maps the numbers from 1 to N to unique assignments permutations. Where N would be total number of such permutations. Then you use a single parameter that takes on every value from 1 to N.

Before you do that though, just so you are aware: There are 42525 ways of distributing 10 tasks among 5 workers. That is with each worker getting at least one task, the workers being interchangeable and the order of tasks for a given worker not mattering (and assuming that my math is correct). I have attached a model with the script to calculate this number. If you do decide to undertake this, it might be a useful reference/starting point.

permutation-calc.fsm

Other options I see are using a sequence parameter to determine in which order the tasks will be given out. Each task just gets assigned to the first available worker. Using the optimizer you will likely find a good task order in much fewer experiment runs.

Or you calculate (or use a heuristic to estimate) the total duration of each task. A worker then always picks the longest one. As long as the duration is accurate, this should result in the quickest possible order automatically.


permutation-calc.fsm (135.0 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.