The R&D project GEBE aims to design, build and test an intelligent management system for energy grids with distributed generation, whose function is to optimize energy flows in response to economic parameters while ensuring the safety and electrical stability of the power grid.