I'm attempting to solve a problem using linear programming. I have been using this resource (k-median problem midway down the page) as a reference.
I have successfully implemented a first attempt using Python and the PuLP library, however as I develop the model I would like to understand the meaning of the constraints more clearly.
I have provided screenshots of the problem described on the page linked above, with annotations of my understanding of each constraint.
Image 1: Problem description
Image 2: Problem constraints with my understanding
Could anyone tell me what the purpose of the final constraint is? My understanding of the formula is that the sum of customers being served by a single site can only be ≤ 1, and therefore each site can only serve at most one customer - but that's clearly not the case.
Any help would be appreciated. Thanks
I think the linked page has some text missing, as well as a typo in the constraint. I suspect that before the last constraint, the intended text was something like the following:
Note the $n$ coefficient.
Although this aggregated formulation does yield a weaker formulation, state-of-the-art solvers will generate the stronger constraints dynamically as needed.