Text this: Flexible service resource allocation model based on the maximization of social welfare