Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > QUEUE Functions

QUEUE AGE OLDEST(queue) OLDEST AGE in the QUEUE

Scroll Prev Top Next More

Returns the oldest age of elements in queue.  This is useful for tracking performance.

NOTE For attribute queues this function assumes that TIME STEP is constant and will return an incorrect number if this is not the case.

Restrictions: The argument must be the name of a variable defined using QUEUE FIFO or QUEUE FIFO ATTRIB.  If you use any other variable as an argument QUEUE AGE OLDEST will return :NA:.

Units:QUEUE AGE OLDEST(queue units) --> time (returns the same units as Time)

Example

Waiting= QUEUE FIFO(Arriving,Servicing,Init Profile,100,20)

Overtime Mult= IF THEN ELSE(QUEUE AGE OLDEST(Waiting) > 25,1.25,1)

In this example a 25% overtime would be applied any time the longest waiting time exceeded 25.

Availability: Not PLE or PLE Plus.

See also: QUEUE FIFO, QUEUE FIFO ATTRIB

Sample model: QUEUE functions.mdl in FunctionExamples