question

Melencolia avatar image
0 Likes"
Melencolia asked Melencolia commented

Queue Initialization Problem

1718734452931.png

This is a simple M/M/1 model. I'm going to collect data with experiments and I need to have a specific number of people in the queue at the start of each run, but at the moment I don't know how to adjust this via parameter (I know I can add an extra source and use arrivals schedule, but this only has a table and it doesn't seem to be able to change the number via parameter)

currently I have 2 parameters: Arrival_Time, Service_Time_Processor_1

I want to have a parameter `Q0` which indicates how many units already in queue at the start.

Please let me know how can I do it?

One Stage.fsm

FlexSim 24.1.0
parametersinitial queue
1718734452931.png (54.4 KiB)
one-stage.fsm (182.9 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
0 Likes"
Felix Möhlmann answered Melencolia commented

You can either use a Process Flow. In the Schedule Source there you can refer to the parameter as the quantity directly.

Or you set the quantity cell in the arrival schedule of the 3D source in the "On Set" code of the parameter.

one-stage_1.fsm

This post seems to essentially be a duplicate of this one. So if this answers your question, please consider removing the other post.


one-stage-1.fsm (151.4 KiB)
· 1
5 |100000

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

Melencolia avatar image Melencolia commented ·
Thank you! I really appreciate your help!
0 Likes 0 ·