Method of potentials in a linear time-optimization problem (English, Russian original). translation from Differ. Uravn. 32, No1, 44-51, 1996)