- Course: Optimization and Analytics
- Grade: 9.8/10
This repository contains solutions to the p-Median and Maximal Coverage Location problems. The objective function, sets, parameters, and constraints are defined both visually and mathematically.
The p-Median problem involves selecting p facilities from a set of locations to minimize the total cost of serving customers. The Maximal Coverage Location problem involves selecting locations to maximize the coverage of customers, subject to constraints on the number of facilities that can be opened.
The problems are solved using the following solvers:
- gurobipy: A Python interface for Gurobi, an optimization solver.
- pyomo: A Python-based, open-source optimization modeling language.
- ipopt: Interior Point OPTimizer, a software package for large-scale nonlinear optimization.
Cordero-Lucia-HW2.ipynb
: Contains the source code for solving the problems.Cordero-Lucia-HW2.html
: Contains the source code and documentation in .HTML format.radiuses.dat
: Contains data to solve one of the non-linear optimization problems.
To use the solvers, install the required dependencies, download the Cordero-Lucia-HW2.ipynb
file and run the script.
pip install gurobipy pyomo ipopt
Contributions are welcome! Please fork the repository and submit a pull request with your changes. Feel free to customize it further to match your repository's specific details and needs!