Simulation code for the paper: Y.W. Law et al., "Security games and risk minimization for automatic generation control in smart grid," in J. Grossklags and J. Walrand, editors, Proc. 3rd Conference on Decision and Game Theory for Security (GameSec 2012), volume 7638 of LNCS, pages 281-295.  Springer Heidelberg, 2012