I have an attribute of a product, let's say color. I have the color green and blue. Green is considered better than blue. I have three products A that is green, B that is blue, and C that is green. The question is how can I enumerate all possible ordinalities constraints between the products using a constraint satisfaction problem algorithm?
How can I model and solve this problem with a CSP algorithm?
In MiniZinc you can write the decision variables and constraints in the following manner:
This is somehow similar for most constraint solvers. The given example could also be solved with linear programming solvers.