I am simulating a sorting center, in which i have ULDs that are generated by a source block, and bring 10 boxes that they drop in a node. The ULDs are entering 4 by 4, and they have 18 positions where they can drop their boxes. The issue is that the positions are chosen randomly when the ULDs are generated, so sometimes, they all go to the same spot, which results in an error because the positions’ capacity are set to 1.
i tried to use a resourcepool where i entered the 18 positions as home, and created a new agent MyPosition that will be in all the positions, so i can create a link between that agent and the ULDs. It’s not working because i don’t know where i can connect them properly. I am not sure if the link between agents is the way to go, i initially tried to use a variable that is modified each time an agent enters the position, but they are entering at the same time so it’s not useful, i also tried to limit the capacity on the path to force the ULDs to navigate 1 by 1, but it’s also not effective.
here is how i generate the ULDs