question

Jeanette F avatar image
0 Likes"
Jeanette F asked Jeanette F edited

Batch size updated by global table after each batch

@Qiana C originally asked in this post.

The model needs to batch items together using a different batch size each time. The the batch sizes are set in a Global Table. The question is how to call out the right batch size and move to the next batch size on the table for the next batch.

Another specification for the model is that the items from a batch be transported to different queues round robin.

FlexSim 20.1.3
global tableflexsim 20.1.3batch size
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

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F edited

@Qiana C

The solution for this is to use a custom code similar to the following

batchRow++; 
if (batchRow > Table("BatchGlobalTable").numRows) {   
 batchRow = 1; 
} 

Where batchRow is the Global Variable (with an initial value of 1), and the BatchGlobalTable is the table with the batch sizes.

Here is the model to see how it was implemented.

Round-Robin-Process-Flow.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.