question

Aaupadhye avatar image
0 Likes"
Aaupadhye asked Carter Walch commented

Using Batch Size as Parameter for Experimenter

Hi all,


Is there a way to use Batch size as a parameter for the experimenter? I am trying to run an experiment where I increase the batch size in the dynamic buffer and see if that has an effect on the performance measures I have listed. However, I am not sure if there is a way to reference the batch size on the dynamic buffer in my model since it is located in the process flow.


wcocmodel-2.fsm


Thanks,

Amit

FlexSim 23.0.8
experimenterbatchparameters
wcocmodel-2.fsm (172.2 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.

Carter Walch avatar image
1 Like"
Carter Walch answered Carter Walch commented

Another way to do this is to create a BatchSize parameter and reference it from your Batch activity in process flow by using Model.parameters.BatchSize. You don't need a reference or On Set function because the Batch activity is pointing to the same value. When you reset and run the model the batch size will be whatever you set this parameter to.

1689698721656.png

1689698756916.png


1689698721656.png (16.6 KiB)
1689698756916.png (29.3 KiB)
· 4
5 |100000

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

Julie Weller avatar image Julie Weller commented ·
This is definitely the easier way haha!
1 Like 1 ·
Carter Walch avatar image Carter Walch commented ·
Hi @Aaupadhye ,

Were you able to fix the error you had? I can attach a working model if you need

1 Like 1 ·
Aaupadhye avatar image Aaupadhye Carter Walch commented ·
Yep, everything is working perfect now, thanks!
1 Like 1 ·
Carter Walch avatar image Carter Walch Aaupadhye commented ·
Sure thing! Glad it worked out
0 Likes 0 ·
Julie Weller avatar image
1 Like"
Julie Weller answered

Hey @Aaupadhye! That's a good question, there might be a few ways to do that but what I did is created a global table called something like "BatchSizeParam" (just 1 row and 1 column). I then used that in a model parameter table (in the Toolbox) and referenced that table, like this:

1689698150773.png

Then for that batch activity in process flow, I instead referenced the global table, just using a global table lookup from the drop down menu:

1689698268738.png

Now when you run the experimenter you can reference that Batch parameter and see how it affects your model! You'll see as well in your regular model that if you change the parameter table it changes the batch size. Let me know if you get stuck on anything! I'm more than happy to help with follow up questions.


1689698150773.png (55.8 KiB)
1689698268738.png (36.5 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.

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.