INITIAL(A) INITIAL value of variable

Returns the value A at initialization and does not change it during a simulation. INITIAL is used to record and hold or "remember" a variable's starting value.

Restrictions: Must appear first on the right of the = sign. It defines a variable as being an Initial variable.

See also: REINITIAL, SAMPLE IF TRUE

Units: Initial (unit) --> unit

Example

x init = INITIAL (x) - x init is set equal to the first value of x.