simulationanylogic

Combine two resources and then send to a node in Anylogic


I am simulating a warehouse inspection model where an inspection-officer (present as node1) needs to go to a different node (node2) to collect tools and then go to node where object to be inspected is laid out.

I am using a resource pool for both inspection-officer as well as tools.

Using the following blocks:

source -> seize -> delay -> release -> sink

In the seize block I have configured to use resource-sets (1 inspection-officer and 1 tool) I have checked the following configs:

The issue is, both tool and inspection-officer start going to the source separately and then get combined as one unit at the source (and also keep combined while returning to their location), but what I need is the inspection-office should go to the tool, then they should get combined and go to the source node

What am I doing wrong?


Solution

  • You need to use the resource start task block. That way one resource will seize the other before being seized by the agent.