When using the RandomFailure block on the same or a higher hierarchical level, GlobalSeed must be dragged resulting in a declaration
inner CRML.Blocks.Events.GlobalSeed
globalSeed;
The GlobalSeed block provides global options for all RandomFailure blocks of the same or a lower hierarchical level. The following options can be selected:
Icon |
Description |
|
|
useAutomaticSeed=false (= default): A fixed global seed is defined with Integer parameter fixedSeed. The value of fixedSeed is displayed in the icon. By default all Noise blocks use fixedSeed for initialization of their pseudo random number generators, in combination with a local seed defined for every instance separately. Therefore, whenever a simulation is performed with the same fixedSeed exactly the same noise is generated in all instances of the Noise blocks (provided the settings of these blocks are not changed as well). This option can be used (a) to design a control system (e.g. by parameter optimization) and keep the same noise for all simulations, or (b) perform Monte Carlo Simulations where fixedSeed is changed from the environment for every simulation, in order to produce different noise at every simulation run. |
|
|
useAutomaticSeed=true: An automatic global seed is computed by using the ID of the process in which the simulation takes place and the current local time. As a result, the global seed is changed automatically for every new simulation, including parallelized simulation runs. This option can be used to perform Monte Carlo Simulations with minimal effort (just performing many simulation runs) where every simulation run uses a different noise. |