Sort by Priority

This example shows how to investigate the time required to serve customers in a priority queue.

Behavior of Priority Mode of Entity Queue Block

The Priority mode of the Entity Queue block supports queuing in which entities positions in the queue are based primarily on specific attribute values. Arrival times are relevant only when attribute values are equal. You specify the attribute and the sorting direction using the Priority source and Sorting direction parameters in the block dialog box.

Serving Preferred Customers First

In this example, two types of customers enter a queuing system. One type, considered to be preferred customers, are less common but require longer service. The priority queue places preferred customers ahead of nonpreferred customers. The model plots the average system time for the set of preferred customers and separately for the set of nonpreferred customers in a Dashboard Scope block.

To open the example, see Sort by Priority Example.

You can see from the plots that despite the shorter service time, the average system time for the nonpreferred customers is much longer than the average system time for the preferred customers.

Comparison with Unsorted Behavior

If the queue used a FIFO discipline for all customers instead of a priority sorting, then the average system time would decrease slightly for the nonpreferred customers and increase markedly for the preferred customers.

See Also


Related Examples

More About