Effect of Renewable Energy to Reduce Carbon Emissions under a Flexible Production System: A Step Toward Sustainability · Study