Optimal design of heating and cooling pipeline networks for residential distributed energy resource systems. (15th November 2021)