Exact and approximate methods for the score-constrained packing problem