Modeling Assessment and Optimization of Energy Systems