question

Omar Aguilera Rico avatar image
1 Like"
Omar Aguilera Rico asked Jason Lightfoot edited

What representation has the use of a "stream" in the FlexSim simulator?

I want to understand a little better the use or how it is affected when using the "stream".

FlexSim 18.0.1
randomnessstreamrandom number generatorpseudo random number generator
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

·
Matthew Gillespie avatar image
3 Likes"
Matthew Gillespie answered Jason Lightfoot edited

This post explains what a random number stream is and why they're important.

This post explains why you should try to use a unique stream for each object in your model.

We recommend using a unique random number stream for each object in your model. This improves the repeatability of the model and keeps small changes made in one part of your model from affecting the behavior of other parts of your model. You can use the getstream() command to automatically assign a unique stream number to each object that uses the command. Just put getstream(current) as the stream number in any distributions you use. (Or getstream(activity) in Process Flow).

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

If an activity is shared between resources/objects in the model that are invoking a given process, and you have the option to use the object for the stream value - this will likely be better than using getstream(activity) which I would strongly recommend people avoid in those cases due to changes in sequence through the activity. If your activity is in an object/instanced process flow you can then of course use getstream(current) or similar - and ideally, you would be able to use getstream(activity) in instanced flows iff the stream was also instanced (which in v21 it is not).

2 Likes 2 ·
jing.c avatar image jing.c commented ·

hi Matthew the link shows

Access Denied

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ jing.c commented ·

@jing.chen, please try the links now. I moved the Q&A's into the default "Software & Simulation Questions" space...

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.