Question
Generate random instances of the facility location problem. For this, it is recommended that you pick n = 15 and m = 20 (m should
Generate random instances of the facility location problem. For this, it is recommended that you pick n = 15 and m = 20 (m should be larger than n). Pick n locations uniformly at random from the square [0,1] x [0,1] to model the locations of the facilities. Draw n random variables from the Unif[0,1] distribution to model the cost. Draw an additional m locations uniformly at random from the square [0,1] x[0,1] to model the locations of the customers. The distance di,j is the Euclidean distance between the i-th customer and the j-th facility. Calculate the distance matrix between every customer and facility
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