question

Allison H2 avatar image
0 Likes"
Allison H2 asked tannerp commented

Conditional Batching and Sending

I want to create a scenario where:


Batching per a label is done and a full batch is 36, once batch reaches 36 it may send.

However, in addition, I want (in an hour time frame) to send the completed full batches, as well as a batch if it has reached roughly 85% full (31).


Is this something I can do with just a 3d queue? or will I require conditional coding statements as well?

FlexSim 19.2.0
batchingconditional code
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

tannerp avatar image
0 Likes"
tannerp answered tannerp commented

Hi @Allison H2,

The 3D queue has the ability to use a Max Wait Timer, but unfortunately, this will not check the current capacity against a target quantity (31, in your case). The quick solution would be putting a couple lines of code on the 3D queue, but you could achieve similar logic using Process Flow and the getbatch() activity.

In this example model, there are 31 items that arrive at the start of the model. The timer is triggered after 60 time units in Process Flow, which moves the 31 items into Queue2 prematurely. Then, before the trigger goes off the next time, a batch of 36 items arrives and is moved to Queue2 like normal.

batch-example.fsm


batch-release.png (22.5 KiB)
batch-example.fsm (31.4 KiB)
· 2
5 |100000

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

Allison H2 avatar image Allison H2 commented ·

@Tanner Poulton ok, this sounds great, but if I were to add the coding for the timing with a simple if/then, it would be applied to the queue 1 on the 3d model, correct?

0 Likes 0 ·
tannerp avatar image tannerp Allison H2 commented ·
@Allison H2

I think that would be the best option so you have access to the current object in your script. Let us know if you run into any problems implementing that.

0 Likes 0 ·