I currently have a two populations of agents. One for customers and one for service trucks. There are multiple customers and trucks and their initial location is being determined via an imported excel database with lat/long coordinates.
I would like to have the trucks service customers as needed (ideally at specific times throughout the day). However, I would like to create a set of multiple regions that would enclose my customers. The service trucks would then be assigned a region and only address customers that fall within their region. I have a statechart that currently exists to enable trucks service customers, however, I'm not sure how to tied in the different regions to the agents. I believe once I have the region information tied to the agent, I should be able to update the statechart to handle the updated logic.
So, given I have multiple regions, how can assign a region to the customer (ensuring that the customer actually lies within the boundary of the region) and then assign different regions to the trucks and have them only address those customers.
The program being used is Anylogic.