Search the Community
Showing results for 'worker shifts'.
-
Hi, I have an issue related to workers going off-shift and abandoning the reserved entities in different servers, depending on when the shift change happens (picture attached is an example). The shift change is based on switching from Worker of x number of population to y number of population to meet my WorkSchedule. The Worker should always carry different entities throughout, entities cannot travel alone. The logic issue happens as a result of entities left in servers or buffers that were not picked up by workers due to the end of shifts, causing too many objects/entities in the system not destroyed. An expert suggested to build process that checks the Worker's Allocation Queue when it goes off shift to see if there are any entities in it, and if there are, turn the Worker back on shift. I tried to build that process, but I could find the right steps. Any help on identifying the right steps or a different way to model workers shifts is appreciated.
-
[OPEN] Interrupting sub-model for offshift
Guest replied to jdoran's topic in SI General Discussions
Hi, I have made an example model illustrating how to do what you are asking. In the attached model, I have 1 entity that requires a 40 hour delay & a Secondary resource for processing. I have a Day Shift worker and a Night Shift worker, each work 12 hour shifts, and the Entity seizes whichever is availabe from a list upon entering the Server. By default, if a secondary resource is seized, the worker will attempt to finish the current job before going off-shift. This is nice if there is something like 15 or 20 minutes left on a job, but not ideal if there is 28 hours left... What I did was created a process that gets Triggered by the Workers' OffShift Add-On process that Interrupts Processing > Releases the Worker > and Transfers the Entity back into the Server Object - which will then start the whole processing process all over again and seize whatever worker is available. Note that in the Interrupt Step, I set the Interupted Process Action to Resume Delay, and the Save Remaining Process Time property to Record ths remaining processing time to the ModelEntity.ProcessTime State (which is initially assigned to 40 in the Source and then gets updated upon every interrupt) For more examples of Interrupting processes see the SimBits: InterruptibleOperator, InterruptingAcrossMultipleServers, & InterruptingServerWithMultipleCapacity Thanks InterruptingProcessingToSwitchWorkers.spfx