Aiming at the micro-grid system with wind turbines, photovoltaics, micro gas engines, fuel cells, energy storage batteries, and loads, taking the optimal economic and environmental benefits as the objective function and considering the output constraints and climbing power constraints of each distributed power supply, battery charging and discharging protection and power balance constraints in micro-grid, the output models of each distributed power supply are established. On this basis, particle swarm optimization with improved inertia weight and contraction divisor is used to solve the objective function. Combined with the time-division scheduling strategy, the simulation analysis is carried out on the MATLAB2021a platform. The results show that the time-division scheduling strategy can reduce the total cost more effectively, which verifies the rationality and feasibility of this method.