In recent years, distributed energy resources have been gradually applied and popularized because of their great capability of optimizing energy structure and reducing environmental pollution. For this reason, optimizing the configuration of the combined heat and power (CHP) based microgrid is of great significance. Therefore, based on the concept of the energy hub, this article proposes a planning model for determining the optimal configuration and dispatch strategy of a CHP-based microgrid.