A computer simulator is written to optimize the conditions of oil and gas separators using Hysys and Matlab software. Off gases in some wellhead equipment of south of Iran are burnt in flare. In the present paper, the separators of one of these wellheads are simulated. By changing different variables such as the plus fraction splitting methods and the temperature of separators the condition wit...