Hello all,
I need to make a model modelling after roads with a limit on vehicle for travelling. The way I did it, the queues were made to "stopoutput" after a certain number is reached (assume limit set is 10 for both queue 1 and 3 and 20 for queue 2 recorded in global table). During the period that the output is stopped, people are waiting and I would need to pull them to sink when their waiting time exceeds 300s. However, this would conflict with the previous logic which stops the output until other "vehicles" came in.
Is there a way to get around this? I am unable to use "closeinput" for the processors instead as some items goes from processor1 to processor4 (or 3 to 2) which will happen in the actual model. If processor 4 were to close input after the limit of 20 for queue 2 is reached, it would not accept items from processor 1 as well.
Right now I've tried to resumeoutput when wait>300s and closeoutput after item is pulled but it did not seem to work (sink4). The way I did it was to include the codes in the flow tab>pull strategy.
Also, would it be possible to use only 3d modelling (not using process flow activities) to resolve this problem? It is more intuitive and better for presentation of the codes in paper and more important point is that I might not be able to replicate the exact codes in the actual model....
Thanks for taking a look!