I am currently working on an Agent based model in Anylogic which consists of multiple stores with a driver assigned to each store and Customers who place orders and these orders are then delivered to them from the nearest store.
I have created an agent type "Customer" with a certain order frequency event. I know that anylogic allows to assign a GIS location for the agent by placing a node on the GIS map, searching the name of the location on the map or by defining the location programmatically (setLocation(INodenode),setLocation(Point point),setLocation(Agent agent)&setLatLon (double latitude, double longitude)).
However, I want to assign a random GIS location "GIS node" to the customer each time an order is generated.I want to know If there is a certain function that I can use to do that or any other way.
Any help is highly appreciated.
Aucun commentaire:
Enregistrer un commentaire