Hi, I have some questions to ask.
I plan to calculate the starting locations (startstation) of the items waiting to be transported (since my AGV can carry up to four items at a time). Then, I will compare the distances between these locations to determine the optimal sequence for picking up the items and planning the transportation route.
I was advised to use a single list and an attribute (e.g., 0 for load, 1 for unload).
However, I am having some trouble implementing this in custom code.
I set up the following:
List tasklist = Model.find("tasklist");
// Retrieve TaskList
// Push start
Object station = token.startstation;
int operation = 0;
item = token.item;
List("tasklist").push(item, station, operation);
But it did not work as expected. I want to understand why.
Additionally, I have another question and would appreciate some advice.
(For details, please refer to the link: https://answers.flexsim.com/questions/176553/the-question-push-to-list.html )
At the same time, I will attach a simple demo for reference.
In the demo, I use the from-to concept to let the AGV transport materials.
I hope to split it into two attributes (startstation and endstation) and store them in a list.
I really appreciate your help!