TECHNO ECONOMIC ASSESSMENT AND OPTIMIZATION FRAMEWORK WITH ENERGY