The project aims at the development, design and implementation of a management and optimal control system for a Micro Smart Grid, which, by exploiting the local weather forecast, the characteristics of the systems of production, accumulation and consumption, will allow the definition of production profiles with a high level of reliability.