Text this: Pipe network optimization for district cooling and heating systems