A Mixed-Integer Optimization Formulation for Buyers Formation