optimizing control algorithm of energy conversion system for