Multi-agent systems in a distributed smart grid: Design and implementation | Synapse