This project implements a heuristic algorithm for solving an inventory management problem with ocean and air shipping options. The algorithm optimizes shipping decisions considering:
- Multiple products with different volumes and costs
- Two shipping methods (ocean and air) with different lead times
- Container-based costs for ocean shipping
- Variable costs for air shipping
- Inventory tracking and management
- Reads input data from Excel files
- Calculates optimal shipping method for each order
- Prevents negative inventory
- Considers lead times for different shipping methods
- Outputs detailed results to Excel file
- Python 3.x
- pandas
- numpy
- openpyxl
-
Prepare your input Excel file with the following sheets:
- Demand
- Shipping cost
- Inventory cost
-
Run the program:
python heuristic_solution.py
-
Check the output file
heuristic_results.xlsxfor detailed results including:- Order quantities and timing
- Inventory levels
- Container usage
- Total costs
The program generates an Excel file with multiple sheets:
- Summary: Overall cost and problem size
- Orders: Detailed order information by period
- Inventory: Inventory levels by product and period
- Containers: Container usage by period