← Back to Handbooks

Transportation Problem - Handbook

Type: LP (Linear Programming)

This handbook explains the Transportation Problem sample problem in the LP Black Box platform.


The Problem

Scenario

Ship products from 2 warehouses to 2 stores, minimizing shipping costs.

RouteCost per Unit ($)
Warehouse 1 → Store 14
Warehouse 1 → Store 26
Warehouse 2 → Store 15
Warehouse 2 → Store 23

Supply:

Demand:

Your Goal

Minimize total shipping cost while meeting supply and demand.

The Variables

VariableMeaning
W1_S1Units shipped from Warehouse 1 to Store 1
W1_S2Units shipped from Warehouse 1 to Store 2
W2_S1Units shipped from Warehouse 2 to Store 1
W2_S2Units shipped from Warehouse 2 to Store 2

The Constraints

  1. Warehouse 1 Supply: Cannot ship more than 50 units

    W1_S1 + W1_S2 ≤ 50

  2. Warehouse 2 Supply: Cannot ship more than 60 units

    W2_S1 + W2_S2 ≤ 60

  3. Store 1 Demand: Must receive at least 40 units

    W1_S1 + W2_S1 ≥ 40

  4. Store 2 Demand: Must receive at least 50 units

    W1_S2 + W2_S2 ≥ 50


How to Use

Step 1: Load the Sample

Select Transportation Problem from the dropdown.

Step 2: Solve

The solver finds the optimal shipping plan that minimizes cost while meeting all supply and demand requirements.


Try It Yourself


This is a classic logistics optimization problem.