An algorithm is formed for the generation of a set of admissible trajectories for the tip of robotic mechanisms. On the basis of this set, using an optimization method based on the $\psi$-transform, a near-optimal admissible trajectory for the mechanism tip is determined.