How to Solve Transportation Problems Using Excel Solver (2024)

Transportation costs are a significant component of the overall supply chain costs. Therefore, supply chain and logistics managers must take advantage of transportation’s potential in terms of opportunities for cost reduction. In this article, we will be exploring one of the fundamental cases of market and supply allocation; it’s called the Transportation problem.

The goal is to satisfy demand, which means being responsive, while also being efficient, which means having the lowest transportation cost. Allocating supply sources to facilities properly has a considerable impact on your supply chain’s financial and operating performance. By doing it right, you will be managing production and inventory effectively, speeding processes, and improving customer service.

The Transportation Problem

The transportation problem is one of the subclasses of a linear programming problem in which the objective is to transport products stored in a facility (e.g. a warehouse) to different destinations or markets in such a way as to minimize total transportation cost while satisfying all the supply and demand constraints.

Here is a list of information needed to solve a transportation problem:

  • Product demand at each destination facility.
  • Facility locations and distances between each source and destination facility.
  • Cost per kilometer traveled.
  • The maximum storage capacity of each source facility.

Below is the supply chain network we are going to use. It’s a simple network with two stages: there are three Distribution Centers, and the other eight facilities are Stores. Facilities are defined and their icons are put on the map using the SCM Globe supply chain modeling and simulation app. In the screenshot below you can see the facilities and the network of possible roads to use in delivering products from one facility to another.

How to Solve Transportation Problems Using Excel Solver (1)

We are glad to provide afree evaluation accountto instructors, students and supply chain professionals interested in exploring SCM Globe simulations — click here to request an account —Get Your Free Trial Demo

The supply chain model shown in the screenshot above can also be represented with an abstract network diagram like the one below: How to Solve Transportation Problems Using Excel Solver (2)

Moving to Excel Solver

Now that we have defined the problem and the network model, it’s time to move to Excel to enter the data and make our analysis.

How to Solve Transportation Problems Using Excel Solver (3)

The first step in our process is to enter the data we need from the supply chain model in an organized manner. Click on each facility in the SCM Globe supply chain model to see information for product demand, storage capacity, etc. Start by entering each store’s demand; that gives us a total demand of 1190 units in this case. Then enter the unit storage capacity for each distribution center. That gives us a total capacity of 2100 units. We can easily see we have enough capacity to cover market demand.

The second step is to enter the distances between all sources and destinations (between DCs and Stores). To find these distances, create routes between each DC and each of the stores. At each DC define a truck and create routes for it to each store (you don’t need to save these routes, just create them to get distances to the stores). When you do this the route distances shown will be round trip distances, so divide these distances in half. The cost per Km is $ 0.9 which is a default value in the software for large trucks. You can change this default value to more accurately reflect current actual costs per Km based on your research. Later, after the solver shows which are the best routes to use, then you will come back to the supply chain model to create and save those routes.

Next, create the changing variables in your spreadsheet template. Remember, our goal is to find delivery quantities from DCs to stores that minimize transportation costs while still meeting store demand. Therefore, the changing variables in our case are the number of units moving on each route.

How to Solve Transportation Problems Using Excel Solver (4)

The decision variables that will be changing are colored in yellow. We can make the value in the yellow matrix zeros, but to make sure that our rows and columns sums are correct, we made them equal to one. The values on the right side of the matrix are the total quantity delivered to each store, and the values below the matrix are the total quantity that each DC will transfer. We also copied the DC’s and capacity matrix, and we pasted its Transpose. We did that so we can add quickly and easily the capacity constraint in Solver.

Before creating and running our solver model, we should define the total cost formula. Here, we have two options:

  1. The total transportation cost can be equal to the cost per Km multiplied by the distance of each route and then multiplied by the number of deliveries needed since vehicles have a maximum carry volume.
  2. If we have the cost per Km per unit, then the total cost will be equal to the cost per km per unit, multiplied by the distance of each route, and then multiplied by the number of units sent on those routes.

In our case, we only have the cost per Km traveled, and so we will use the first option. To know how many trucks we need to deliver the quantity incurred from one DC to a Store, we have to divide this quantity by the maximum carry volume of our trucks and round that number up (The ROUNDUP Function in Excel). In our example, we suppose that one large truck has a maximum carry volume of 110 units. The number of deliveries needed will be then equal to “ROUNDUP(I15:K22/110;0)”. And the total transportation cost formula is “SUMPRODUCT(C15:E22;ROUNDUP(I15:K22/110;0))*C24”.

If you have the cost per Km per unit, then the formula will be basically “SUMPRODUCT(C15:E22;I15:K22)*C24”. Something to keep in mind here is that, in this simple transportation problem, the cost per Km or the cost per Km per unit will not change the solution, but it only affects the total cost.

How to Solve Transportation Problems Using Excel Solver (5)

Creating and Running the Solver Model

Let’s define the objective function and the constraints of our model:

  • The objective function: The objective of our model is to minimize the total cost.
  • Constraints: First, we have demand constraints, therefore to meet demand, the total quantity delivered to each store must be equal to the demand of that store. Second, the quantity delivered from each DC must not exceed its unit capacity. And third, the decisions variable, which are the quantities delivered, must be an integer and greater than or equal to zero.

Now, let’s see how we can apply this to the Excel Solver add-in. First, go to the “Data” tab, and click on the “Solver” button that can be found on the right side. [If you have not installed the Solver yet visit this link to learn how to install it: https://www.solver.com/excel-solver-how-load-or-start-solver.]

Once the solver tab opens, we have to set the objective. In our case, we select the “I25” cell in green; this is our total cost. The variables that we are changing are grouped in the yellow matrix, and so we select this matrix in the second block.

Concerning the constraints, we have to click on the “Add” button. The three constraints created are shown in the figures below. After adding all these constraints, we have first to make unconstrained variables non-negative by selecting the checkbox. By respecting these installed constraints we can run our Solver model by selecting the Simplex LP (a solving method since our model is linear).

How to Solve Transportation Problems Using Excel Solver (6)

Our model is now ready, so click the “Solve” button. We can see that the decision variables and the total cost are changing. The result is a preliminary optimal solution for our transportation problem.

How to Solve Transportation Problems Using Excel Solver (7)

Interpretation of Results

We can verify results by seeing if we meet all demands and if capacity constraints are respected.

In this example, we got a total cost of $ 3,991.20, which is acceptable, but we notice that the only warehouse that will be using its max storage capacity is the DC Nbr 1. DC Nbr 3 is using 60% of its max storage capacity, and DC Nbr 2 is only using 10%. Hence the question: Do we need to open all three distribution centers for the next period?

One can say that by using only two facilities, the costs of operating facilities will decrease, but the transportation costs may increase. To find the optimal solution, we have to compare the total cost of two different scenarios. Which scenario offers the lowest total cost while still meeting store demand? In the first scenario, the company opens and uses all its DCs, paying all its fixed costs. In the second scenario, the company operates only two of its DCs while closing the third one.

Make copies of your original SCM Globe supply chain model and change them to reflect these two potential supply chain designs. Run those models in simulation to see how they work, and generate simulation data to create Profit & Loss Reports and KPIs. Compare the simulations and their performance reports. Get review and input from relevant parties, and pick the supply chain design that reviewers feel best meets the needs of the company in this situation.

Conclusion

Supply chain management is both a science and an art. In addition to numeric calculations, the role of professional judgment is also important as it can find growth opportunities, while numeric calculations find ways to reduce costs. Simulations help people explore different ideas and find new opportunities. Simulations bring together numeric calculations and professional judgment.

Situations change from month to month. This month’s optimal solution can quickly become next month’s big mistake. Companies plot their course each month by combining numeric calculations with professional judgment to navigate successfully through a constantly changing world.

[ See more about using the solver for supply chain route selection and scheduling in our blog post “Manage Your Transportation by Solving The Vehicle Routing Problem ]

Special thanks to Mr. Curtis Frye for the quality of his course titled: “Excel Supply Chain Analysis: Solving Transportation Problems” on LinkedIn Learning. We based our Excel demonstration on his way of organizing the spreadsheet template.

How to Solve Transportation Problems Using Excel Solver (2024)

FAQs

How to Solve Transportation Problems Using Excel Solver? ›

The Excel Solver add-in is especially useful for solving linear programming problems, aka linear optimization problems, and therefore is sometimes called a linear programming solver. Apart from that, it can handle smooth nonlinear and non-smooth problems.

How do I use Excel to solve a transportation problem? ›

How do you use Excel Solver to solve a transportation problem?
  1. Step 1: Define the problem. ...
  2. Step 2: Set up the spreadsheet model. ...
  3. Step 3: Activate Excel Solver. ...
  4. Step 4: Specify the settings and parameters. ...
  5. Step 5: Run Excel Solver. ...
  6. Step 6: Interpret and analyze the solution.

How do you solve a transportation problem? ›

Steps to be followed to solve the problem:
  1. Create a transportation matrix (define decision variables)
  2. Define the objective function.
  3. Formulate the constraints.
  4. Solve using LP method.

What problems can Excel Solver solve? ›

The Excel Solver add-in is especially useful for solving linear programming problems, aka linear optimization problems, and therefore is sometimes called a linear programming solver. Apart from that, it can handle smooth nonlinear and non-smooth problems.

What are three solution methods used in transportation problem? ›

What are the different methods to solve transportation problems?
  • NorthWest Corner Cell Method.
  • Least Call Cell Method.
  • Vogel's Approximation Method (VAM).

How can we transport data in Excel? ›

Select the first cell where you want to paste the data, and on the Home tab, click the arrow next to Paste, and then click Transpose. Pick a spot in the worksheet that has enough room to paste your data. The data you copied will overwrite any data that's already there.

What are the disadvantages of Excel Solver? ›

A limitation with Excel is that Excel Solver can not take more than 200 decision variables with multiple constraints. It is cheap in terms of license and maintenance fees against other softwares which are available in the market.

How do I make Excel Solver more accurate? ›

Enter the degree of precision needed in the Constraint Precision Box. This specifies the precision of constraints. You may specify a lower value (0 to 1) to reduce the time it takes the Solver to return a solution.

Can Excel Solver give multiple solutions? ›

If you're working on a problem and want to see the multiple possible solutions, then using the Solver tool may be a good way for you to calculate the answers. Learning how to use this Excel tool can prepare you to work through real-world scenarios that require mathematical analysis to understand.

What is the easiest way to solve system of equations? ›

Whenever one equation is already solved for a variable, substitution will be the quickest and easiest method. Even though you're not asked to solve, these are the steps to solve the system: Substitute y + 2 y+2 y+2 for x in the second equation. Distribute the −2 and then combine like terms.

How do you solve for the solution of a system of equations? ›

To Solve a System of Equations by Elimination
  1. Write both equations in standard form. ...
  2. Make the coefficients of one variable opposites. ...
  3. Add the equations resulting from Step 2 to eliminate one variable.
  4. Solve for the remaining variable.
  5. Substitute the solution from Step 4 into one of the original equations.
Jan 5, 2020

How do you solve a 3X3 matrix in Excel? ›

As we have given Names to our Matrices, now for the Multiplication of the Matrices, we need to select a space of 3X3 and apply the formula =MMULT(G, J); after applying the above formula, press Ctrl+Shift+Enter.

How do I create a transport bill in Excel? ›

Steps to Create a Transport Bill Format in Excel
  1. Enter the Company's Details. You will have to create a section for the company's details. ...
  2. Add the Customer's Details. You must create a section for the customer's details in the next step. ...
  3. Include Transportation Information. ...
  4. Calculate the Subtotal.

What is the formula for travel time in Excel? ›

=DriveTime (origin, destination, [routing type])

Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 5936

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.