[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [EnergyPlus_Support] Re: How to properly set the random seed for stochastic processes in EMS?





Ryan,

 

I guess you can assume that the intrinsic Fortran random number generator is as good as any standard RNGs. So using 1, 2, 3 …, 1000 ‘should’ give you what you want, without showing any obvious patterns. On the other hand, if there are problems with the RNG, you are unlikely to improve your chance by ‘randomizing’ the random seeds; just think about buying lottery tickets…

 

Brent,

 

I think the exception comes from the “FuncRandSeed” function (in RuntimeLanguageProcessor.f90) taking @SEEDRANDOM operand as a float, and then converting it into integer… The simple solution will be put the acceptable range for random seed in the user’s manual J The random seed handling in v8.0 is a big improvement over v7.x, by the way.

 

Cheers,

 

Yi

 

 

From: EnergyPlus_Support@xxxxxxxxxxxxxxx [mailto:EnergyPlus_Support@xxxxxxxxxxxxxxx] On Behalf Of Griffith, Brent
Sent: 05 June 2013 23:18
To: EnergyPlus_Support@xxxxxxxxxxxxxxx
Subject: RE: [EnergyPlus_Support] Re: How to properly set the random seed for stochastic processes in EMS?

 

 

Ah that is difficult to answer definitively, but I would not make that assumption.  EMS is using Fortran intrinsics here and the implementation is actually in the CPU hardware.  So different computer chips will behave differently.  I agree with your reasoning but if you were getting sufficiently random sequences in V7.2, then it may be that integers 1,2,3,… will suffice in V8.0.  

 

If I can ask another question, would I be limiting the random number generator if I just used the integers 1,2,3,...,1000 as seeds? would this lead to somehow similar, or ordered sequences of random numbers? My assumption is yes, which is why i want to use seeds distributed across the entire range of possi ble integers.

Thanks again,
Ryan





__._,_.___


Primary EnergyPlus support is found at:
http://energyplus.helpserve.com or send a message to energyplus-support@xxxxxxxx

The primary EnergyPlus web site is found at:
http://www.energyplus.gov

The group web site is:
http://groups.yahoo.com/group/EnergyPlus_Support/

Attachments are currently allowed but be mindful that not everyone has a high speed connection.  Limit attachments to small files.

EnergyPlus Documentation is searchable.  Open EPlusMainMenu.pdf under the Documentation link and press the "search" button.




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
Attachment not found:
C:\Users\lklawrie\Downloads\Embedded\image00144.jpg
Attachment not found:
C:\Users\lklawrie\Downloads\Embedded\image00213.jpg