Steam Assisted Gravity Drainage (SAGD) and Solvent Vapor Extraction (VAPEX), both of the techniques have been proved to be successful for the exploitation of heavy oil reservoirs. Field development of heavy oil reservoirs requires careful determination of optimal parameters, well locations and control setting of producers and injectors. In recent years, field development decisions based on sensitivity studies have been shifting toward automated optimization. In this paper, we present the optimal parameter selection for SAGD and VAPEX. We performed the search of optimum parameters; the vertical separation between injector and producer, well controls and well locations. All these parameters have been simultaneously optimized to study and compare the performance of both processes. Also, we present an efficient method to constrain horizontal wells to preset minimum well spacing constraints. This method was then applied to constrain the well spacing between different peers of horizontal wells in the SAGD and VAPEX processes. The particle swarm optimization was used as an optimizer to determine the optimum parameters. The results indicated that the method could successfully determine the optimal parameters while satisfying the spacing constraint imposed by the user. The comparison of the results showed the better performance of SAGD over VAPEX process.