Based on the user-side energy demand of the oilfield and considering the random fluctuation power output characteristics of new energy sources such as photovoltaic and wind power,equipment models of PV generation,wind power generation,and energy storage were established.To balance both economic efficiency and system reliability,a capacity configuration method based on genetic algorithm was adopted to investigate the equipment sizing strategy suitable for the user-side microgrid in oilfield.