The photovoltaic energy is preferentially supplied to the load, and the surplus electricity is stored in the battery. When the photovoltaic energy is insufficient, the energy storage is first used to power the load, and the diesel engine is not enough to power the load.