question

shiuan avatar image
0 Likes"
shiuan asked shiuan commented

How to set the model stopping condition in the experiment

Repeatedly run 5 times under the same settings. Each run is random. I hope that the number of entry parcels generated each time will be uniform (5.0, 15.0, getstream(activity)) to generate Box. I hope to finally get Average completion time of 5 simulations.

How do I modify the model and set it up?

The following is my file.

aaa.fsm

FlexSim 23.0.10
experimentexperiment runexperimentor
aaa.fsm (35.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.

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered shiuan commented

One way to achieve this would be to store the latest time an item has entered the sink in a label.

1702625282145.png

Then use this label as a performance measure.

1702625310537.png

You can then multiple replications of the model in the experimenter (make sure that the stop time is large enough so that its guaranteed that all items finish).

1702625511813.png

After running the experiment, you can inspect the results and see at what time each replication finished the last item as well as see the average in the "Result Tables" tab.

1702625556175.png


1702625282145.png (14.2 KiB)
1702625310537.png (13.4 KiB)
1702625511813.png (13.0 KiB)
1702625556175.png (16.1 KiB)
· 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.

shiuan avatar image shiuan commented ·

@Felix Möhlmann
Sorry, I couldn't make it. I want to ask how to design an experiment.
I've set up a lot of tags in the model that can store completion times.
aaa.fsm The following is my file.
thank you for your reply!

0 Likes 0 ·
aaa.fsm (36.9 KiB)
Felix Möhlmann avatar image Felix Möhlmann shiuan commented ·

In the model you uploaded the "lastitem" label is not present on the sink (only created in the trigger). It should exist while the model is reset, so the Performance Measure can correctly be connected to it. (Best use the sampling tool to do so)

1702631559485.png

For more information on the Experimenter, you can check the documentation. There is also a tutorial about it.

0 Likes 0 ·
1702631559485.png (11.6 KiB)
shiuan avatar image shiuan Felix Möhlmann commented ·

Thanks for your help!

I have successfully solved this problem!

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.