In dynamical systems, the system suddenly becomes unstable due to parameter perturbation which corresponds to environmental changes or major incidents. To avoid such instabilities in engineering systems, tuning system parameters is very important. In this paper, we propose a method for obtaining optimal parameter values in a parameterized dynamical system. Here, the optimal value means the farthest point from the bifurcation curves in a bounded parameter plane. As illustrated examples, we show the results of continuous-time and discrete-time systems. Our algorithm can find the optimal parameter values in both systems.