Text this: A Cosimulation Architecture for Power System, Communication, and Market in the Smart Grid