question

ymak avatar image
0 Likes"
ymak asked Felix Möhlmann answered

Set the Max Content of a Queue using a parameter

Hi. I'm trying to run an experiment where I vary the max content of a queue to study its effect on output UPH of a production line.

I see that Max Content has no dropdown arrow that allows it to be set to a parameter, unlike for example the processing time of a Processor. What is the best way to programmatically vary the Max Content variable in an experiment?


1727394724914.png

1727394793897.png

FlexSim 24.2.0
parametersexperimentmax content
1727394848211.png (26.6 KiB)
1727394891156.png (45.3 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

Felix Möhlmann avatar image
2 Likes"
Felix Möhlmann answered

Use the sampling tool of the parameter's reference field on the queue and choose to the MaxContent option. This will link the queue to the reference field create code in the parameter's On Set trigger to change the maximum content of the queue to the value of the parameter each time the model is reset.

1727418923608.png

If you have multiple queues: The same also works if you sample a group instead of a single object.


1727418923608.png (49.0 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.