A note on the solution of group knapsack problems