District heating (DH) systems present a great opportunity to increase the proportion of renewable energy used in both heating and cooling. Renewable energy can be integrated into DH to account for heat load and also for power production, which in cogeneration systems is used for both heat generation and transmission. The main aim of this research is to determine whether (and also how) to integrate solar PV panels into DH systems to achieve an economically feasible, flexible energy production solution by using a power-to-heat concept. To reach greater depth in this research, the system dynamics (SD) approach was used.