An Optimization oriented model of distributed supply chain