This project provides interactive solutions to two classic operations research problems using Gurobi Optimizer and a Streamlit interface:
- πΊοΈ Facility Location Problem (FLP)
- π Factory Planning Problem (FPP)
Both models are fully parameterized and user-friendly, allowing you to input data and instantly get optimized results with visual feedback.
- Determine optimal locations for facilities to minimize total costs.
- Customize:
- Number and location of facilities/customers.
- Setup costs and per-mile transport costs.
- Solve and visualize:
- Which facilities to build.
- Shipment plan from facilities to customers.
- Graphical plot of customer-facility relationships.
- Maximize total profit over several months by planning:
- Production
- Storage
- Sales
- Configure:
- Profits, storage cost, demand, and labor availability.
- Raw material limits and usage.
- Labor downtime periods.
- Output:
- Optimal production and inventory plan.
- Resource and raw material usage breakdown.
- Gurobi Optimizer β High-performance solver for LP/MIP models.
- Streamlit β Intuitive and fast UI for model interaction.
- Matplotlib β Visualizing results for FLP.
- Pandas β Tabular data display and processing.
π optimization-project/
βββ facility_location.py # FLP model and visualization
βββ factory_planning.py # FPP model with Gurobi
βββ Home.py # Streamlit interface
βββ data/ # (Optional) Data samples or templates
βββ requirements.txt # Dependencies
βββ README.md # This file
-
Clone the repository:
git clone https://github.com/your-username/your-repo-name.git cd your-repo-name -
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run Home.py