So I have an agent vehicle and another agent shop of about 10 on GIS. I have another agent warehouse. So I have placed the vehicle at the warehouse and want it to move to the nearest shop and drop goods and from there move to another nearest shop and return to the warehouse after it has reached all shops each only once.
I am new to anylogic and I have run this code Agent nearestShop = this.getNearestAgent(main.shops); moveTo(nearestShop)
I am stuck and don't know how to move from there using loop