Exact and Heuristic Methods for Energy Pricing Problem