Am just getting started with Minizinc and would appreciate if I get some ideas in building a model for my problem.
I have three items. On purchase of each item I get certain cashback bonus and there is a limit in number of times an item can be purchased. Also I have a capacity in my cart.
Example :
items = [ 'i1', 'i2', 'i3' ]
cart_capacity = 7
cashback = [30,10,20]
(meaning, with purchase of item1 I get back $30)
Frequency_of_purchase = [ 2 , 1 , 5]
(meaning, item 3 can be purchased 5 times)
I need an output saying how many times each item can be purchased so that I get maximum cashback
Desired result = { i1 : 2, i2: 0, i3 : 5}