Predefined-Time Distributed Optimal Allocation of Resources: A Time-Base Generator Scheme