An optimal configuration method for the combined heat and power (CHP) system considering demand response is proposed to scientifically and reasonably configure the parameters of the additional heat source and reduce unnecessary investment and construction costs. First, additional heat sources and demand response are utilized to decouple power generation and heating supply, enhancing the flexibility of the CHP system. Second, a multiobjective optimization configuration model of the CHP system is established, taking the system’s comprehensive satisfaction, economic cost, and wind power consumption capacity as the objectives, the unit output, and the capacity parameters of the additional heat source as the decision variables. Furthermore, an improved memetic algorithm (IMA) combined with a hierarchical sequence method is designed to solve the optimization model characterized by multiple objectives, hierarchical levels, and nonlinearity. The hierarchical sequence method solves problems sequentially based on the importance of optimization goals, ensuring the satisfaction of the configuration scheme. The IMA employs adaptive crossover and mutation probabilities, enhancing the algorithm’s convergence and quality. Finally, case analysis demonstrates that the CHP system achieves the best benefits when heat storage tanks and electric boilers are configured simultaneously. Moreover, compared to the MA, IPSO, and IABC algorithms, the IMA algorithm reduces the average economic cost by approximately 5.11%, 2.70%, and 8.43%, respectively.