Abstract: A method and apparatus to optimize and control the production of an oil well which is being artificially produced by gas-lift techniques. The invention is suitable for use with either continuous or intermittent gas-lift operation and can be used with a combination of both. The temperature of the fluid at the wellhead is sensed and used to determine the injection parameter values to optimize well production. In one embodiment, a process control unit is programmed according to the inventive method to interpret the temperature data and to control the gas control valve to optimize production.