Optimal location problems with routing cost