A method for optimizing the energy supply, over a time interval l of duration D, of an installation equipped with N energy distribution devices operating in all-or-nothing mode and in duration modulation, with an operation duration ΔI, which is equal to or smaller than D, being allocated to each one of the N energy distribution devices over the time interval l, with the durations ΔI being deduced from the energy demand of the installation, and provided by a command-control system of the installation, characterized in that: - the operation time duration ΔI of an energy distribution device (B1, B2,..., BN) is either consisting of a single operating sequence of a duration ΔI, or divided into several sequences of partial durations, the sum of which is equal to ΔI, - a scheduling is defined over the time interval l by a temporal allotment of the set of operating sequences of the N energy distribution devices, - the scheduling is calculated before the start of the time interval l by taking account of the desired operation durations ΔI of operation each energy distribution device, - and the scheduling is calculated as follows: a/ any arbitrary initial scheduling is selected, b/ an order number between 1 and N is associated with each distribution device, c/ for the distribution device of order number 1, the number, the duration (s) and the position (s) over the time interval l of the operating sequence(s) of this distribution device which make it possible to minimize a function U representative of the fluctuations of the energy throughput over the time interval are searched for, with the sequences of the other devices maintaining the positions of the initial schedule, and a resulting optimal scheduling is obtained with the number, the duration(s) and the optimal position(s) maintained for the sequences of the distribution device of order number 1, d/ the step (c) is repeated on the basis of the schedule resulting from the step (c), by successively taking account of the distribution devices of higher order number up to the distribution device of order number N. - the operation time duration ΔI of an energy distribution device (B1, B2,..., BN) is either consisting of a single operating sequence of a duration ΔI, or divided into several sequences of partial durations, the sum of which is equal to ΔI, - a scheduling is defined over the time interval l by a temporal allotment of the set of operating sequences of the N energy distribution devices, - the scheduling is calculated before the start of the time interval l by taking account of the desired operation durations ΔI of operation each energy distribution device, - and the scheduling is calculated as follows: a/ any arbitrary initial scheduling is selected, b/ an order number between 1 and N is associated with each distribution device, c/ for the distribution device of order number 1, the number, the duration (s) and the position (s) over the time interval l of the operating sequence(s) of this distribution device which make it possible to minimize a function U representative of the fluctuations of the energy throughput over the time interval are searched for, with the sequences of the other devices maintaining the positions of the initial schedule, and a resulting optimal scheduling is obtained with the number, the duration(s) and the optimal position(s) maintained for the sequences of the distribution device of order number 1, d/ the step (c) is repeated on the basis of the schedule resulting from the step (c), by successively taking account of the distribution devices of higher order number up to the distribution device of order number N. a/ any arbitrary initial scheduling is selected, b/ an order number between 1 and N is associated with each distribution device, c/ for the distribution device of order number 1, the number, the duration (s) and the position (s) over the time interval l of the operating sequence(s) of this distribution device which make it possible to minimize a function U representative of the fluctuations of the energy throughput over the time interval are searched for, with the sequences of the other devices maintaining the positions of the initial schedule, and a resulting optimal scheduling is obtained with the number, the duration(s) and the optimal position(s) maintained for the sequences of the distribution device of order number 1, d/ the step (c) is repeated on the basis of the schedule resulting from the step (c), by successively taking account of the distribution devices of higher order number up to the distribution device of order number N.