The optimal scheduling method of the power grid considering the node coupling degree and the duality of mutual inverse mapping is studied to effectively establish the random dynamic scene of the power grid and improve its optimal scheduling effect. Considering the duality of the mutual inverse mapping, a random dynamic scene of the power grid is generated. The optimization model of the grid random dynamic scene partition was established considering the coupling degree of the nodes in the region. The anti-prey particle swarm optimization algorithm was used to solve the optimization model, and the scene partition results were obtained. To construct an optimization scheduling model for the regional power grid with the objective functions of minimizing energy abandonment rate and grid loss and the constraints of power flow, output, and climbing power. A predator-prey particle swarm optimization algorithm is used to solve the optimization scheduling model, and the minimum energy abandonment rate, minimum grid loss, and corresponding optimal scheduling strategies are obtained. The experimental results show that this method can effectively generate random dynamic scenes of a power grid and has a better scene partitioning effect. Under different working conditions, this method can achieve optimal dispatching of the power grid and reduce the power grid energy abandonment rate and network loss.