Text this: Optimal Operation of Generation Company’s Participating in Multiple Markets with Allocation and Exchange of Energy-Consuming Rights and Carbon Credits