Control theory in infinite dimension for the optimal location of economic activity: The role of social welfare function