A OPTIMAL REGULATION STRATEGY FOR GRID CONNECTED SYSTEM OF ENERGY