Title: Generator Control Algorithm Using Simulink Model