I'm using AnyLogic for a project in Supply Chain. I would love to ask those who have seen the predefined model in AnyLogic.
Its path is in: Welcome > Example Models > Supply Chains and Logistics > Product delivery. In the model they used a function called set_center
(You can find it in the Main).
You can find below the code in AnyLogic
for (Distributor distributor : distributors)
distributor.set_center(
distributor.getNearestAgentByRoute(manufacturingCenters));
For my project, I created a model inspired from the predefined model described above but the function set_center
didn't work. It tells me in the console
The method set_center(shiptopoint.getNearestAgentByRoute(retailers)) is undefined for the type Shiptopoint
Where shiptopoint
and retailers
are agents that I created for my model (They are both population agents)
I tried to find the Java Code but I didn't find it.
Does anyone have a clue please?