Clustering model and algorithm for production inventory and distribution problem