A distributed simulation model for inventory management in a supply chain