An approach to formalization of the process of the rural mains structure formation during its design and modernization given the presence of the distributed power supplies in it, which allows to optimise the network structure in terms of lowering yearly coerced expenses as well as exclude the influence of the factor of project designer's subjectivity on optimally of decisions being made.