Distributed coordination of micro-grids using bilateral contracts | Synapse