Multiple Operands

You can add multiple operands to a require constraint by clicking the Compound Field button when you create the constraint.

For example, you could create the constraint:

Item A requires Item B > 2, Item C < 5

This constraint means the following:

  • If Item A is present in the solution, the quantity of Item B must be greater than 2

  • If item A is present in the solution, the quantity of Item C must be less than 5

  • If Item B cannot be greater than 2 in the solution, Item A is excluded

  • If item C cannot be less than 5 in the solution, Item A is excluded

This is the same as writing two constraints:

Item A requires Item B > 2

Item A requires Item C < 5