question

Óscar Manuel CMN avatar image
0 Likes"
Óscar Manuel CMN asked Óscar Manuel CMN commented

Operators suddenly stops

The case is practically the same as the one I asked in this post:

https://answers.flexsim.com/answers/86978/view.html

The model is a job shop with destinations depending on the type of job (TipoTrabajo label). What is intended is that the operator chooses an item of the same type as the one that just been processed, and if in the queue in which it is looking there is none like that, then he chosses the item with a horter processing time. The logic of this is put in the pull from list.

The problem is that after a simulation time, the operators stop moving and the tokens go into a infinite loop on the pull from list. Anyone know how to solve this? Because they have a delay.

JSPT-WHN1-SQ-k2_1.fsm

FlexSim 20.0.6
processflowoperatorsflexsim 20.0.6
jspt-whn1-sq-k2-1.fsm (815.7 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.

1 Answer

TALUMIS Training avatar image
0 Likes"
TALUMIS Training answered Óscar Manuel CMN commented

@Óscar Manuel CMN in the code on your pull from list you have an if and and else if and then an if again. I used the debugger to check and it comes in the else if so it selects MejorItem = token.PulledQueue.as(Object).subnodes[i] but then it also goes in the if and selects MejorItem = M4

But you use the PartionID but there is no M4 in that partition. So I guess there should be another else?


· 4
5 |100000

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