Generic model for resource allocation in transportation. Application to urban parking management. (October 2016)