1
votes

I would like to implement the CRN method in the Anylogic simulation software, but I don't know how to deal with settings.

What am I understanding is that:

1) I have to create my own custom random number generator.

2) Moreover, after each simulation replication, the specified seed number has to be inputted from coding (Seed numbers will change after each simulation runs).

For instance: My model has​ 5 replications per iteration

Run #1 Seed value = 10

Run #2 Seed value = 20

Run #3 Seed value = 30

Run #4 Seed value = 40

Run #5 Seed value = 50

I will use this setting for two simulation model. How do I do the setting?

1

1 Answers

0
votes

I'm not completely sure if this will work exactly as intended... but in the randomness section of the experiment properties you can select custom generator and use the following:

new Random(10+10*getCurrentReplication())