This project aims to solve a time optimization problem for a specific market layout. The user will provide a shopping list within the product list and the output will be the optimal (shortest) time to finish shopping.
The main components of this project include:
- Solving the problem with Genetic Algorithm (GA).
- Converting the matter into Constraint Satisfaction Problem (CSP) and using Gurobi solver.
Input for both algorithms are the market layout and the user input which is the shopping list.
Output is the optimal path and time for the given list.
An example market layout is integrated into code for GA, can be found in MarketData.xlsx for Gurobi, you can modify starting from there.
Language: Python
Technologies: Gurobipy
- Python 3
-
Clone the repository
git clone https://github.com/meric2/Shopping-Time-Optimization.git
-
Install dependencies
pip install -r requirements.txt
- Run
GeneticAlgorithm.pyfor GA solution. - Run
CSPsolver.pyfor Gurobi (CSP) solution.