METHODOLOGY FOR DETERMINING THE OPTIMAL OPERATING MODE OF ENERGY