Using the Max-Sum Algorithm for Supply Chain Emergence in Dynamic Multiunit Environment