An Ising Spin-Based Model to Explore Efficient Flexibility in Distributed Power Systems. (8th May 2018)