A method used to optimize the production of oil and gas wells by analyzing pressure and flow rate at different points.