Control Of Periodic Systems Governed By Partial Differential Equations Using Averaging