Optimization of Distributed Supply-Chains Using a Decentralized Approach