question

Gulati avatar image
0 Likes"
Gulati asked Jeff Nordgren answered

ask batch based on requirement

hello everyone

i attached a very simple model. in which 500 batch of item coming to queue.out of those 500 20 items is going to processor.what i want to do is that as 80% of item get use from queue1 i want processor send message to source to send next batch of 500 to the queue.is it possible?.

FlexSim 17.2.5
batch request
dummy-model.fsm (15.9 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

·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered

@Gulati

Attached is your model with the changes that I've made to it.

In Source1, I have a label called QurrQty which holds the current value or current quantity in the batch to be sent to Queue1. In the OnExit trigger of Source1, I increment this label value. Then save this value on each flowitem with the label of "BatchPos" which indicates the flowitems position within the batch. Then if 500 flowitems have been released, I close the output port of Source1. And finally I color the last 100 flowitems of each batch (last 20% of batch) red. This is just a for a visual reference as to when the Queue1 quantity has reached the "re-order" quantity.

Then in Queue1, in the OnExit trigger, if the current quantity in Queue1 has reached the "re-order" quantity (100 or 20%), it will open the output port of Source1 and receive another batch.

Take a look at the model and see if something like this would work for you.

gulati-dummy-model-jn1.fsm


5 |100000

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

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.