Text this: The Multi-Period Dynamic Optimization with Carbon Emissions Reduction under Cap-and-Trade