Queue Anylogic Prio-based

30 Views Asked by At

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

1

There are 1 best solutions below

2
Benjamin On BEST ANSWER
  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