Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!