Search code examples
anylogic

Queue Anylogic Prio-based


I have a production. In the queues in front of the respective machine, I would like to prioritize the orders that have the shortest processing time. The information is read from a table. What is the best way to implement this? So far I have tried to prioritize the agent with the smallest number. But it did not work.

Screenshot


Solution

    1. add a double field in your agent type processingDur
    2. fill it as required from your data
    3. in the Queue, make sure you actually send through your custom agent type
    4. in the Queue "agent priority" field, type agent.processingDur

    Now, your agents will be sorted in the queue by the duration