To identify the solution cell in the range B9 : E12 that apply to each constraint, we note that a solution cell forms part of a constraint only if it has a positive entry in the distance matrix. Thus, we use the following formulas to identify the output and input flows for each node