An optimization method for PID controller design is delt with in this paper. In handling the design problem, the simplex method and Powell's method in nonlinear programming are used under a flexible objective function that provides design options of closed-loop system response curves to meet various practical requirements. Numerical examples are given to demonstrate the design procedures.