Regularization of the Trajectories of Dynamical Systems by Adjusting Parameters