Search code examples
simulationanylogic

AnyLogic: Some time resource pool moves to destination without having agent


Problem is explained in the image below

enter image description here

The detail of the agent which I am using:

enter image description here

enter image description here

Detail on the Service in which I am using Resource Pool:

enter image description here

Process Flow:

enter image description here

I used seize-move-release, in order to move the agent with the Resource. showing in figure below enter image description here Problem: Now the only problem is, how 2 Agents will wait in the queue for there turn to go to the Delay section. Explanation is in the image below. enter image description here


Solution

  • so it seems that most of this flow is wrong if your intent is for the resource to take the agent somewhere.

    You are looking at the resource move alone because it's probably going back home

    In order to use the resource to move your agent, you need to use seize-move-release, not a service block

    I hope this helps