Supply chain optimization based on chain management and mass customization