Cascade computing model to optimize energy exchanges in prosumer communities | Synapse