'Anylogic problem: two different agents with two different service's time
I’m trying to resolve a simulation problem with anylogic but I don't know how to do it.
This is the problem: There are two different types of product, A and B, which arrive at one machine with different rates (40 per hour for the type A and 30 per hour for the type B), both type go in the same queue and next go into a machine (FIFO) which have a different service's time for the two product (1 minute for A and 2 minutes for B).
How can I modelize this problem with a simple flowchart block (eg. blocks agent, queue, delay and sink)?
Thank you
Solution 1:[1]
just create it the way you described it. If you want to turn it into 1 single flowchart block, right-click on everything as below and select "Create flowchart block".
To setup the different service times in the delay block, you can use code like this:
Obviously, your source objects need to create different agent types, "TypeA" and "TypeB" are just placeholders by me.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Benjamin |

