Minimizing the Transportation Costs of a Distribution System