This project implements a facility location problem using the weighted median method in Python. The goal is to determine the optimal location for a new facility based on the coordinates of existing machines and the number of trips made between them and the new facility.
Machines are located at specific coordinates, and each machine has a certain number of trips per week to the new facility. The weighted median method is used to find the best location for the new facility to minimize transportation costs.
- Machine 1: Coordinates (8, 5), Trips: 9
- Machine 2: Coordinates (4, 2), Trips: 6
- Machine 3: Coordinates (11, 8), Trips: 4
- Machine 4: Coordinates (13, 2), Trips: 12
To run this project, you need to have Python installed on your machine. You can download Python from python.org.
You can clone the repository using the following command:
git clone https://github.com/yourusername/facility-location.gitcd facility-locationRun the Python script to determine the optimal location for the new facility:
python facility_location.pyThe program will print the coordinates of the new facility based on the weighted median calculation.
For more detailed information about this project and its implementation, you can read my blog post: https://medium.com/@elif_erkk/determining-new-facility-location-python-application-using-weighted-median-method-64e70074dab2