The invention provides a photovoltaic
power control method and
system based on an improved
sparrow search algorithm and a variable step size
perturbation and observation method.The method comprises the steps that collected
voltage and current serve as input and are transmitted to the improved
sparrow search algorithm, iterative training is carried out, whether the number of iterations is reached or not is judged, and if yes, the step size is changed; outputting an optimal fitness value fg and an optimal
sparrow position Xbest, namely maximum power and maximum power point
voltage, and terminating iterative training of the improved sparrow
search algorithm at the same time; detecting the
voltage and the current which are iteratively trained by the improved sparrow search
algorithm, obtaining a
power difference value, calculating a voltage difference value at the same time, and finally, completing the search of the maximum power point according to a variable step size
perturbation and observation method. According to the method, the improved sparrow search
algorithm is firstly utilized to quickly track the vicinity of the maximum power point, and then the variable step size
perturbation and observation method is utilized to finely search the maximum power point, so that the tracking speed and the tracking precision are improved, and meanwhile, the requirements of the MPPT search speed and the search precision are considered.