The Euclidean distances were computed to all 482 sugarcane producers and the shortest-path drive distances only to the major 25. The p-median is then formulated as a binary linear program and solved by MATLAB© optimization package that implements the standard branch-andbound. Efficient sparse matrices are used in the matrix form of the linear program and the results are compared, in terms of computational cost and solution quality, to a simple heuristic algorithm of the greedy type. Standard branch-and-bound is the most common method for finding solutions to integer programming formulations and since the p-median problem is a tight formulation of an integer programming formulation the method is adequate for finding solutions to the problem considered in this paper [55]. Tighter formulation of the p-median problem can also be found [56].