I am modelling an inventory management system in Anylogic by means of Discrete Event Simulation.
Throughout the model, new resources are added according to a dataset in excel. I modelled this with a source block. In the source block, several parameters of the agent are added to the resource agent, which I need in the rest of my model (for instance purchase date, level of source activity etc.). I now want these agents to be added to my resource pool while keeping the parameters. However, since they are entering the model in a source block, I am not sure how to model/code this.
I tried to seize the sources after the enterblock, but this does not work. I also have tried to specificy the capacity of the ResourcePool with a variable 'varNumberResources', which is adjusted each time after a resource leaves the enterblock, however then the parameters are not added to the agent in the resourcePool.