This project simulates a warehouse robot and finds the most efficient way to complete delivery tasks using a brute-force optimization approach.
The robot operates in a 5×5 grid:
R→ Start positionL→ Loading dockS1–S6→ Shelves.→ Empty space
Each task requires the robot to:
- Go to the loading dock
- Pick up an item
- Deliver it to a shelf
The challenge is that task order affects total distance.
- Generate all possible task orders (permutations)
- Compute total distance for each
- Select the minimum-cost solution
Uses Manhattan distance:
- Horizontal and vertical movement only
- No diagonal movement
- Finds the optimal solution for 1–3 tasks
- Demonstrates algorithmic problem-solving
- Limited scalability due to brute-force approach
This project improved my:
- Problem decomposition
- Algorithmic thinking
- Code structure and debugging
It also reinforced concepts like functions, control flow, and basic data structures.
git clone https://github.com/your-username/warehouse-robot-optimization.git
cd warehouse-robot-optimization
python3 Final.py