We combine the particle swarm optimization (PSO) method and the continuous cellular automaton (CCA) in order to simulate deep reactive ion etching (DRIE), also known as the Bosch process. By considering a generic growth/etch process, the proposed PSO-CCA method provides a general, integrated procedure to optimize the parameter values of any given theoretical model conceived to describe the corresponding experiments, which are simulated by the CCA method. To stress the flexibility of the PSO-CCA method, two different theoretical models of the DRIE process are used, namely, the ballistic transport and reaction (BTR) model, and the reactant concentration (RC) model. DRIE experiments are designed and conducted to compare the simulation results with the experiments on different machines and process conditions. Previously reported experimental data are also considered to further test the flexibility of the proposed method. The agreement between the simulations and experiments strongly indicates that the PSO-CCA method can be used to adjust the theoretical parameters by using a limited amount of experimental data. The proposed method has the potential to be applied on the modeling and optimization of other growth/etch processes. © 2015 IOP Publishing Ltd.