Continued greenhouse gas emission has led to increased global warming. Towards the goal of carbon emissions reduction and environmental sustainability, replacing high-polluting fossil fuel by clean energy has become a top priority in the decision-making of the current chemical industry. This work presents an optimization framework to address the integration of batch chemical production planning and scheduling considering energy consumption, which is a vital operational problem in chemical production. Assisting the linkage between planning layer and scheduling layer, a novel linear support vector machine based production capacity region calculation method is proposed to identify feasible regions of the scheduling layer. Uncertain factors in both the production system and the energy system are considered, including demand volatility of chemical products, energy supply fluctuations and time-varying energy market prices. To evaluate each strategy and the proposed model, simulation experiments are performed in three representative case studies. The results reveal that the integrated model considering energy consumption shows superior performance in different energy configurations, with or without wind energy generation and battery storage systems.