0
votes

Good afternoon to everyone,

I have a problem with the software AnyLogic. I have to do a program that is able to combine two agents (two different semifinished) to create one final agent (final product). The problem is that the two semifinished have different production time, so I need a function that is able to accept one agent (the first semifinished), than to wait for the second agent and at the end to generate one final agent from the previous two agents (semifinished). How it's possible to do this? I have already tried with the function "Combine" without any success.

1
I'm assuming the semi-finished materials will be in a queue (simulating a warehouse or buffer). When you have the 20 agents of each you can trigger a cyclic event that occurs every X minutes. In the action of that event, remove one agent of each type from the queue and create a final product. Send that created final product through an Enter block that you will connect to wherever you need your final product to go to.luizfvpereira

1 Answers

1
votes

You need to use the "Assember" object from the process library. Speciy how many agents of type A and B you need (1 each in your case). The assember will create a new agent type (you need to specify it) from the 2 incoming agents once it has got 1 of each.

Also check the help on the Assembler, you can do lots of fine-tuning with it.

cheers