Optimization and Supervisory Control of Cogeneration Systems