The invention relates to methods and systems for optimizing the distribution of electrical energy in an electrical power supply
system (I) which comprises autonomous supply
system regions (5, 6, 7, 8, 9), comprising the method steps of:—receiving input data (II) by at least two dispatcher instances (5a, 7a), wherein the input data (II) represents energy intervals (5i, 6i, 7i, 8i, 9i) which are requested by the autonomous supply
system regions (5, 6, 7, 8, 9);—calculating at least one solution (5s, 7s) of the distribution of electrical energy to the supply system regions (5, 6, 7, 8, 9) by each of the at least two dispatcher instances (5a, 7a);—selecting one of the calculated solutions (5s, 7s) for the distribution of electrical energy in the power supply system (I) by means of a
leader election. The invention relates to the technical field of distributing electrical energy and can be used, for example, for smart grids.