Text this: An Ising Spin-Based Model to Explore Efficient Flexibility in Distributed Power Systems