question

anon-user avatar image
0 Likes"
anon-user asked Jason Lightfoot commented

I want to enter the next batch after ejecting all items

I want to enter the next batch after ejecting all the items being processed by the processor.

I have set current.subnodes.length == 0 to the condition, but it doesn't work.


What's wrong?

How can I fix it?



FlexSim 20.1.3
flexsim 20.1.3processorbatchbatch sizebat
· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi anonymous user, was Jörg Vogel's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

The content of a processor is still 1 when a last item leaves.

Test it on your own on exit

print(current.subnodes.length); 
· 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.

anon-user avatar image anon-user commented ·

Changed to "current.subnodes.length == 1" so that one content can be port-opened.

But after 214 seconds the simulation freezes.


What's wrong?


0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel anon-user commented ·

anonymous user, EDIT: I have looked into your model, and it behaves absolutly strange. It processes 2 batches. First batch released with a max wait timer, second batch with a max wait timer and then the model stopps unexpectingly.

It doesn't matter wether you check a content of the processor to open the input nor if you check a label of an item.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel anon-user commented ·

next approach: On End Collecting trigger I assign a label at the last item of current batch. The batch is transferred directly to the processor or to a bypass queue. The label is responsible for closing and opening the input of the processor.

process_batch_JV.fsm

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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