Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the uncapacitated facility location problem and write a Python code to model and solve it. To that end, set the number of customers to
Consider the uncapacitated facility location problem and write a Python code to model and solve it. To that end, set the number of customers to 120 and the number of facilities to 10 (these can be easily changed at the beginning of the code). Then, randomly generate the location of all customers and facilities on a 200200 grid and plot them. The fixed cost must be generated randomly in (100,500). Use the rectilinear method to calculate the distance between nodes (we can think of these facilities to be located in a city). Once the model is solved, plot how each customer is assigned to each facility and report the number of demand points served by each facility. Use Markdown cells to put some explanation before every code cell that you use in Jupyter notebook. Submit your Jupyter notebook file along with your .lp files
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started