With the large-scale wind power grid connected operation, the randomness and uncertainty of wind power bring new challenges and requirements to the power dispatching. In order to reduce the influence of random wind power in power dispatching, this paper through the wind power of hourly probability curve, the dynamic wind power probability distribution function(PDF). Then, the PDF is introduced into the scheduling, and the grid scheduling model based on integral risk cost is established. In order to solve problem of model, this paper introduces mutation crossover to improve the Bare-bone Particle Swarm Optimization algorithm, I-BBPSO. Finally, the rationality of the model is verified by IEEE30, and power dispatching with the risk and cost of the wind power are analyzed.