Here is my the optimization problem I want to solve. I want to add a new constraint which is the following:
- Z is the set of products in the user basket
- similarity(zi,zj) is a similarity function measuring the similarity of products zi and zj.
The goal of this new constraint is to ensure that our user basket does not contain similar (redundant) products.
How can I add this constraint, if we suppose that I have a similarity function called similarity(product1, product2) that takes as argument two products and gives as a result the similarity between them.
Thank