My model (as attached) has an issue with balancing workload for workers. Please advise if any setting or coding can help share the workload. Current model forces worker 1 to take the job when they both free.
just deactivate the option "Worker stays here after..." in the workplaces. If you check the workplaces for distribute the MUs, the workplaces should be empty after unloading (not occupied by a worker). Then change the unloading times of the workplaces (e.g. double them). With the current setting, you need only one worker and one unloading workplace.
Thank you Steffen for your explanation. My purpose is to see how much workload for each worker when I adjust Creation Time of the Sources, and the baseline is workload must be shared equally to all workers. I have found a topic that you have explained about the Broker would assign job to the first available worker (please correct if I misunderstand). Here is the link of that topic: https://community.plm.automation.siemens.com/t5/Plant-Simulation-Forum/Workers-assignement/m-p/29303... So I am trying a code to assign even partNumber goes to worker1, odd partNumber goes to worker2. But I cannot figure out the attribute to call workers. Please advise.
you need to create a broker import request control, so you could first make a "test mediation" to get all the available exporters (see testImportFor) and then mediate the right exporter (method engage --> see help)