On the Optimality Problem for One Class of Dynamical Systems