A method (600,700) for controlling a photovoltaic generator comprising a plurality of modules adapted to contribute to a power supplied by the photovoltaic generator, an operation of the photovoltaic generator being defined by an operation characteristic, characterized in that the operation characteristic is divided into a plurality of ranges associated with different mismatches of the modules, with the ranges ranked by an index in increasing order of the mismatches, each range being defined by a range of voltage, wherein the modules having a mismatch lower than or equal to the mismatch of the range are active and the other modules are inactive, wherein the method comprises: determining a starting range equal to a first one of the ranges or to the range corresponding to an absolute critical mismatch of the photovoltaic generator, the absolute critical mismatch being defined as the mismatch of the last range making a power peak of said last range equal to the power peak of the range preceding said last range when the operation characteristic consists of two ranges; searching a target range among the starting range and any one of the ranges following the starting range, for each of the following ranges the target range being searched according to a comparison between a mismatch relative difference, the mismatch relative difference being a relative difference between the mismatch of the following range and the mismatch of the starting range, and a relative critical mismatch of the photovoltaic generator of order equal to a difference between the index of the following range and the index of the starting range, the relative critical mismatch being defined as a relative difference between the mismatch of a first one of the ranges and the mismatch of a second one of the ranges making the power peak of the second range equal to the power peak of the first range with a difference between the index of the second range and the index of the first range equal to the order of the relative critical mismatch; and tracking the power peak of the target range by controlling the photovoltaic generator to operate in a working point corresponding thereto. determining a starting range equal to a first one of the ranges or to the range corresponding to an absolute critical mismatch of the photovoltaic generator, the absolute critical mismatch being defined as the mismatch of the last range making a power peak of said last range equal to the power peak of the range preceding said last range when the operation characteristic consists of two ranges; searching a target range among the starting range and any one of the ranges following the starting range, for each of the following ranges the target range being searched according to a comparison between a mismatch relative difference, the mismatch relative difference being a relative difference between the mismatch of the following range and the mismatch of the starting range, and a relative critical mismatch of the photovoltaic generator of order equal to a difference between the index of the following range and the index of the starting range, the relative critical mismatch being defined as a relative difference between the mismatch of a first one of the ranges and the mismatch of a second one of the ranges making the power peak of the second range equal to the power peak of the first range with a difference between the index of the second range and the index of the first range equal to the order of the relative critical mismatch; and tracking the power peak of the target range by controlling the photovoltaic generator to operate in a working point corresponding thereto.