Membership Card Generation based on Clustering and Optimization Models