The mathematical model of task of optimization and method of her decision is considered, with the use of modern programmatic tools, on the example of design of network of power supply of network the determined structure and by energythreads in it, by the parameters of sources of power supply, lines of electricity transmissions, distributive points and others like that.