Text this: Optimal Energy Consumption Analysis of Natural Gas Pipeline