In view of the problem that the existing carbon emission models only consider the factor of output, which cannot reflect the real carbon emissions, and considering that both climbing and environmental factors will affect carbon emissions, a new carbon emission model is proposed through Pearson Correlation Coefficient verification, and the effectiveness of the proposed model is verified through Root Mean Square Error and Coefficient of Determination index. Based on the above model, the maximum benefit of virtual power plant is the objective function, and the penalty function method is used to introduce constraints into the objective function, and a virtual power plant economic optimal dispatching model with "wind-photovoltaic-gas-storage" is constructed. Aiming at the problems such as high dimension nonlinearity, strong constraint, and difficulty in solving the model, the crow sine cosine search algorithm is proposed to solve the problem. The feasibility and superiority of the proposed model and solution strategy are verified through simulation, which can effectively improve the adjustment income of the virtual power plant and the consumption ratio of renewable energy.