Reputation: 23
I would like to know whether is it possible in NetLogo to set the random-seed
according to the number of repetitions in the Behavior Space.
I know there is the command random-seed behaviorspace-run-number
, but it sets a different seed for every run of the model. This is not what I want because I am trying to explore the impact of a variation in the values of a parameter on a specific random network structure. By using random-seed behaviorspace-run-number
I get a different network structure for each value of the parameter within the same repetition of the experiment, which is not what I want.
Can anyone help me on this?
Thanks a lot,
Emanuele
Upvotes: 1
Views: 410
Reputation: 17678
There's not a variable that gives you exactly what you want, but BehaviorSpace runs through the parameter sets in a specific order. Say you have 5 repetitions of 20 parameter combinations, so there's 100 runs. It will do the first run of 20 combinations, then the second series etc. So you can do some mathematics or some if/then to go from the behaviorspace-run-number to the random-seed (eg floor behaviorspace-run-number / 20
if you want it to change every 20 runs).
Upvotes: 2