question

Jyhjeng D2 avatar image
0 Likes"
Jyhjeng D2 asked Jason Lightfoot edited

Set random seed in 3D model

I used a different random seed to see its influence on the statistics in the queue length in a simple queueing model. However, I could not set the seed. Instead, I looked at the Q&A, and they suggested I use toolbox > Modeling Logic > Model Trigger > On Reset.

However, my toolbox did not have such an option.

How could I change the random seed for the source?

Here is my flexsim file.Primer_1-1A.fsm

FlexSim 22.0.1
set random seed in 3d model
primer-1-1a.fsm (28.2 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.

Joerg Vogel avatar image Joerg Vogel commented ·

@Jyhjeng D2, what kind of license do you use? You need a licensed version of FlexSim to get randomized results. A Demo version called express license won’t be able to allow all feature you describe that you are missing. https://answers.flexsim.com/articles/65811/flexsim-features-by-license-type.html

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Joerg Vogel commented ·

The option would still be there but yield this message when selected:

1676984768473.png

1 Like 1 ·
1676984768473.png (4.3 KiB)
Jyhjeng D2 avatar image Jyhjeng D2 Joerg Vogel commented ·
Got it. I used a trial version. That is why the random seed did not work. Thanks.
0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Change the random seeds for the streams using the experimenter by either:

  1. Running an experiment and looking at the differing results for each replicaiton
  2. Go to the advanced tab of the experimenter and change the replication to use for your manual run:

1676984837298.png

Make sure you use a non-zero stream number in any stochastic expression (usually best to use getstream(current) or getstream(activity) )

There is another option which is to disable the 'repeat streams' option under the stochastics menu - this has limited use since, should you find anything interesting in terms of results or detecting bugs, you will not be able to replicated it.


1676984837298.png (4.1 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.