Category: Helper Functions
syCurrentRealization
Returns sequential number of current realization.
Syntax
syCurrentRealization(TimeNow)
The syCurrentRealization function syntax has the following arguments:
- TimeNow: required. Reference to a cell with syClock().
Return value is sequential number of current realization.
Remarks
The function returns the current realization's sequential number. Realizations are numbered from 1 to the number of all realizations, as stated by syClock() element. The function is convenient if you want to use the current realization as a parameter in simulation model.
Examples
syCurrentRealization(A2)
- During each realization, the function returns current realization number. Let's say that we have setsyClock(15, 24)
in cell A2. During entire simulation, Spry will repeat the model execution 15 times, and the function will return numbers from 1 to 15, giving the information about the current realization.