Optimizing production and transportation in a commit-to-delivery business mode