Nani
Nani

Reputation: 260

K-means clustering - Fix one centroid & find other

I'm trying to identify ideal location to open a warehouse through COG approach using k-means clustering. But, the problem I am facing is on how to account for the factory location. Below is my output plotted in Folium map

enter image description here

I would ideally like to deliver places near factory from the factory itself & use warehouse for locations far off from factory. I was thinking I can do this by fixing one centroid in k-means and find another k to identify the warehouse.

Please help me out

Upvotes: 0

Views: 194

Answers (1)

Sampath Rajapaksha
Sampath Rajapaksha

Reputation: 101

Not exactly clear what you want to achieve. I think you want to identify the best location to set up a warehouse. If its the case, you can use mixed integer programming to solve this. See this

Upvotes: 1

Related Questions