Optimal Electricity Procurement in Smart Grids With Autonomous Distributed Energy Resources | Synapse