With the deep and pervasive application of information and communication technologies, power grid has become one of the vital cyber physical systems (CPS). However, the traditional analysis or control methods for power grid mainly focus on the physical power system, and treat the cyber and physical systems separately.