Search code examples
anylogic

After the first 'move to' block is executed, the subsequent ones do not work


enter image description here I made my process like this.. And I don't know the reason why only the first 'move to' block is executed, and why doesn't it proceed after that.... How can I fix this problem??

I want to collect 5 agents, combine them into one box(batch), and then move the box using one transporter.

enter image description here enter image description here


Solution

  • As Benjamin said, it would be great if you could formulate your question with a little more detail and set up the whole thing as a simple example project. So just one conveyor, the MoveTo and the batch block. In that case we could solve the problem very quickly.

    The problem you have is that your first object remains on the conveyor because you have not selected in the properties that the object should leave the conveyor and you do not say so at a later point in time. For this reason, you can also see on your screenshot that the last object does not travel to the end of the conveyor.

    To fix your Problem just mark the leaveConveyorOnExit Propertie in the Convey Block. Below you can see a simple Example Model

    Failing Example

    Parameter to Fix