Decentralized optimization of distributed supply-chain