question

Trevor Manzanares avatar image
0 Likes"
Trevor Manzanares asked Sam Stubbs commented

Reassigning operators to different dispatchers mid-simulation

I'm trying to have operators switch dispatchers mid-run, but as soon as they switch dispatchers at 10,080 seconds, they do not relocate and begin work at the other processor.

Choose One
dispatchers
· 3
5 |100000

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

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

Could you please state which version of the software you are using?

0 Likes 0 ·
Jon Abbott avatar image Jon Abbott Sam Stubbs ♦ commented ·

@Sam Stubbs - The model appears to be saved using FlexSim 16.2. Here is a cleaned up version that does not include extraneous user commands. It also includes a state gantt chart to show that the processors are entering a "waiting on operator" state when new items arrive at time 11,000. The dispatcher appears to be properly reaching the code segment where it passes the task sequence to the first available operator, but the operators are not being assigned the task sequence despite being idle. Thanks for any assistance you can provide.

0 Likes 0 ·

1 Answer

·
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered Sam Stubbs commented

I think I've created a simplified example. Instead of trying to control the switch logic via code and a General Process Flow. I created a instanced Process Flow and assigned the attached objects as the two processors. I centerport connected both dispatchers to both processors, and created a label on the processors called "Shift" which is set to be default as 1 at the start of the model. The processors choose a dispatcher based on the centerport number based on the Shift value. So at time 10080 in the instance process flow, I change the Shift label to 2.

I've attached my example model for you to look at. Hopefully this helps.

shiftdispatcher.fsm


shiftdispatcher.fsm (24.2 KiB)
· 2
5 |100000

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

Trevor Manzanares avatar image Trevor Manzanares commented ·

Hi Sam, thank you so much for the quick response. This was almost exactly what I was looking for. My coworker @Jon Abbott made some modifications so the operators continually rotate at a given time interval (50 minutes, just for ease of validation). This was accomplished by assigning two labels; the first called "counter" which increments each token by 1, and the second called "Shift" which performs a modulo operation on the first so that the value ultimately toggles back and forth between 1 and 2. Thus, the processors pick up the value of the "Shift" label. In addition, he selected the "repeat schedule" option for the process flow source. Thanks again for getting us started on this!

Best Regards,

Trevor Manzanares

0 Likes 0 ·
Trevor Manzanares avatar image Trevor Manzanares Trevor Manzanares commented ·
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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