A method is described for selecting appropriate ion implantation energies and fluences to synthesize desired impurity profiles in semiconductor device fabrication. An optimization routine utilizing Rosenbrock's algorithm allows computation of a set of implantation parameters which result in close approximation to the preselected distribution.