In this article, an improved system in micro energy grid is investigated composing of energy hub system as combined cooling, heating and power (CCHP) based microgrid integrated with renewable energies like photovoltaic (PV) and wind turbine (WT). The main goal is to solve a multi-objective model that includes reducing carbon emission and operation cost in the presence of real time demand response program (DRP). The flexibility of suggested energy hub system is the result of utilizing three hubs, storage devices and optimal energy flow. The multi-objective model has been solved using weighted sum approach and max-min fuzzy to make the optimal Pareto solutions and select the trade-off solution, respectively. This paper implemented the priced based real time DRP to flatten the load curve by shifting some amounts of loads from peak periods to off-peak periods. Two cases studied in the article that indicates the effects of real time DRP on optimization of energy hub systems. Finally, the energy hub system model is formulated and solved using CPLEX solver in GAMS optimization software. The results show that the operation cost and carbon emission are reduced 3.97% and 2.26%, respectively due to implementation of real time DRP.