In wind conversion systems it is possible to reduce wiring costs of connection to the grid through a bus bar. Assuming the turbines connect directly to the bus bar, which is needed for conditioning of the power provided, one can formulate a nonlinear math program that is used to find the optimal location of the bus bar. This problem reduces to the problem of locating a median line segment with unknown length in Euclidean space but with an additional term in the objective function that ensures proximity to the power grid. There are well established algorithms developed for locating median or center lines. However, location of line segments hasn't been thoroughly studied. Algorithms capable of finding a segment center with a given length for a planar point set exist. However, the median line segment location problem has not been solved to optimality to our knowledge. This work outlines an algorithm in detail that is capable of solving such a problem and demonstrates the application for a real-life problem.