I\'m writing a variation of a knapsack problem with multiple constraints. In addition to a weight constraint I also want to impose a fixed quantity constraint. In this case