question

Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas asked Sebastián Cañas commented

Source - Inter-Arrival Time - Batch Processing Bug?

In the following model I set Batch Processing as Inter-Arrival time option in the Source object. Both the Batch Size and Cycle time are referenced from a cell of a Global Table as FlexScript data.

When running the model, even with Arrival at time 0 option unchecked the Source is creating one Flowitem. If I check Arrival at time 0 the Source creates two at time 0. Is this a bug? I realized this doesn't happen if the Batch Size is not set as a distribution.

Source_BatchProcessing.fsm
Thanks!

FlexSim 22.1.1
sourcebug
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

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Sebastián Cañas commented

You only posted a video and not a model. If your table cell's data type is String, then Table("GlobalTable1")[1][1] is going to return the string "duniform(75,250)" which will be 0 when cast to a number. If your table cell's data type is FlexScript, then Table("GlobalTable1")[1][1] will evaluate the string and return a random value between 75 and 250.

Without the model, we can't tell how your table data is formatted, but my guess is that it is assigned String data instead of FlexScript data. If not, please post a model demonstrating the issue instead of a video.

· 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.

Sebastián Cañas avatar image Sebastián Cañas commented ·

Here it is: Source_BatchProcessing.fsm

I assigned FlexScript data for the distribution in the Table.

Thank you!

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Sebastián Cañas commented ·

Your cycle time distribution is returning a negative number: 1650558931472.png

The cycle time needs to return a positive value for the logic of the picklist option to work the way you expect.

0 Likes 0 ·
1650558931472.png (223.5 KiB)
Sebastián Cañas avatar image Sebastián Cañas Phil BoBo ♦♦ commented ·
Missed that! Thanks for the help
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.