Returns 1.0, starting at time start, and lasting for interval width; 0.0 is returned at all other times. If width is passed as 0 it will be treated as though it were the current value of TIME STEP.
Same as:
IF THEN ELSE (time plus > start |
:AND: time plus < (start + width)),1.0,0.0 ) |
time plus = Time + ( TIME STEP / 2.0 )
With PULSE, Vensim Creates time plus internally to avoid rounding errors in comparing Time with start+width.
NOTE The value returned by PULSE does not change except at TIME STEP intervals regardless of the integration technique used.
Units: | PULSE(time, time) --> dimensionless (start and width have the same units as Time, the result of PULSE is dimensionless) |
Example
task active = PULSE( task start, task duration )
See also: PULSE TRAIN, STEP, RAMP
Sample model: PULSE+PULSE TRAIN.mdl in FunctionExamples