In order to reduce the maintenance cost and optimize the maintenance time of power grid,the optimization genetic algorithm based on prim initial population selection is used to optimize the decision-making of power grid maintenance plan.Analyze the risk loss of power grid fault maintenance,establish the maintenance decision-making objective function,and build the mainte-nance constraint rule base.Based on genetic algorithm,the decision search range is enhanced,the coding structure of power grid population is calibrated,and the fitness function is calculated to obtain the optimal mutation probability of prim initial population selection.The optimization model of power grid maintenance plan is established,and the optimal maintenance time of power grid is solved according to the objective function.The experimental results show that the optimal time to overhaul the power grid with the lowest outage cost in a day is 3:48.After applying this method,the overhaul cost is saved by 108 000 yuan.