Optimal Control and Switching Mechanism of a Power Station With Identical Generators