Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Strange behavior gate by adding a queue

1 vue (au cours des 30 derniers jours)
Loek Vroomen
Loek Vroomen le 1 Fév 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi,
I have a question. I made a very simple simevents model.
The goal of this model is batching entities. I used a gate which will be enabled if the batch size is reached.
In my attachment the production line is shown. Both production lines are similar, only the upper production line uses an extra queue behind the gate.
As can be seen in the attachment, the gate works in the lower line without any complications. Scope6 shows a perfect queuing behavior. If the batch size is reached, 50 entities pass and then the gate is disabled again until the next batch is created.
But, the upper production line has an error. The only difference is that is added a infinite queue behind the gate. The rest of the line is copied. By adding this queue, the batching behavior is completely wrong. The first batch is created, the gate is disabled. However the next entity also passes the gate. Therefor the batching process is wrong.
Can somebody help me with this problem, or tell me why this phenomenon occurs .
Thanks A lot!
Greetings Loek

Réponses (1)

Kevin Chien
Kevin Chien le 8 Juin 2017
I downloaded the model and ran the simulation - both production lines returned the same results. Sometime scopes present values with different layouts, maybe you want to adjust it for comparison.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by