Learning and Competitive Bevaviour in District Heating Networks