question

kauan pedroso avatar image
0 Likes"
kauan pedroso asked Gustavo Teodoro commented

Port By Case Using Duniform

arquivoforumhelp.fsmHello everyone, I'm simulating a scenario where I have 3 products that at a certain point need to be separated into 16 processors, divided into 2 parts with 8 processors on each side. Product A can go to any processor without limitation, product B can only go to one side, for example the left side with only 8 processors, and product C can only go to the opposite side, which also has another 8 processors. The problem arises when I use 'port by case': for product A, the formula is 'CASE Default duniform(1, 16, getstream(current))', for product B it's 'CASE 2 duniform(1, 8, getstream(current))', and for product C it's 'CASE 3 duniform(9, 16, getstream(current))'. With this function, the code works fine as long as the value doesn't fall on the same processor. However, if product A goes to processor 2 and when a new product arrives and, due to the duniform, it also goes to processor 2, it gets stuck. I want it to recognize when one of my processors is occupied and only look at the empty processors.

A heartfelt thank you in advance


FlexSim 23.1.4
proces flowport by caseduniform
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Gustavo Teodoro commented

It is a classic approach to use pull in processors instead of send to in previous queue. Pull Requirement allows only a distinct type. Perhaps you try it with an Array of allowed values.

· 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.

kauan pedroso avatar image kauan pedroso commented ·

@Joerg Vogel Understood, thank you for the response. However, I'm not sure how to use the pull request. Could you give me an example using the template I provided in the question?arquivoforumhelp.fsm

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel kauan pedroso commented ·
0 Likes 0 ·
Gustavo Teodoro avatar image Gustavo Teodoro kauan pedroso commented ·

@kauan pedroso, try placing a queue after the Processors. The items are locked because there is no way out after them. See if the example helps you.

If not, use the strategy that @Joerg Vogel suggested to you.


arquivoforumhelp.fsm

0 Likes 0 ·