  In this paper, we present a controller synthesis approach for wind turbine
generators (WTG) and energy storage systems with metric temporal logic (MTL)
specifications, with provable probabilistic guarantees in the stochastic
environment of wind power generation. The MTL specifications are requirements
for the grid frequency deviations, WTG rotor speed variations and the power
flow constraints at different lines. We present the stochastic control
bisimulation function, which bounds the divergence of the trajectories of a
switched stochastic control system and the switched nominal control system in a
probabilistic fashion.We first design a feedforward controller by solving an
optimization problem for the nominal trajectory of the deterministic control
system with robustness against initial state variations and stochastic
uncertainties. Then we generate a feedback control law from the data of the
simulated trajectories. We implement our control method on both a four-bus
system and a nine-bus system, and test the effectiveness of the method with a
generation loss disturbance. We also test the advantage of the feedback
controller over the feedforward controller when unexpected disturbance occurs.
