Same seed in all the multi-simulations ?

63 views
Skip to first unread message

Benoit Gaudou

unread,
Feb 12, 2019, 2:53:55 AM2/12/19
to gama-p...@googlegroups.com
Dear all,

Given an answer made by Patrick recently, I noticed that in the multi-simulation, all the created simulations share the same value of the seed.
See below: 

model NewModel1


global {

init {

write " " + self + " - " + seed ;

}

}


experiment NewModel1 type: gui {


init {

create simulation number: 2 ;

}

}


The result is:

 NewModel1_model(0) - 0.6448361682289907

 NewModel1_model(0) - 0.6448361682289907

 NewModel1_model(1) - 0.6448361682289907


In my mind, the simulations would have different seed values, but perhaps I am wrong ?

Is it the expected behavior ?

Cheers

Benoit










Huynh Quang Nghi 002628

unread,
Feb 12, 2019, 9:26:12 AM2/12/19
to gama-p...@googlegroups.com
Very strange for me, totally lost

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.


--
-------
HUYNH Quang-Nghi, Ph.D.
Lecturer
College of Information and Communication Technology - Can Tho University
Campus II, 3/2 street, Ninh Kieu district
Can Tho city, Vietnam
[Vietnam] +84909128322

Huynh Quang Nghi 002628

unread,
Feb 14, 2019, 12:20:23 PM2/14/19
to gama-p...@googlegroups.com

"If you run several simulations, you may want to use the same seed for each one of those simulations (to compare the influence of a certain parameter, in exactly the same conditions)." It seems normal experiment will create same-seed-simulations

Benoit Gaudou

unread,
Feb 14, 2019, 10:18:34 PM2/14/19
to gama-p...@googlegroups.com
Hi,
This line does not really support the fact that the seeds are the same.
But the picture on the page does it.

image.png


So nothing new (but I had another intuition...)

Thanks 

Benoit

Huynh Quang Nghi 002628

unread,
Feb 14, 2019, 10:20:43 PM2/14/19
to gama-p...@googlegroups.com
Yes, for that line, i forgot to mention that in batch mode, each sim will have different seed.
Reply all
Reply to author
Forward
0 new messages