Development of an Algorithm for Searching the Optimal Trajectory of the Object in the Conditions of Given Restrictionsстатья