Summary
Describes a “sandwich” constraint: the numbers sandwiched between two specific numbers must sum up to a specified
total. This constraint implies a uniqueness constraint. The two specified numbers can be in any order.
Remarks
Warning: This constraint is very memory-intensive. It is implemented as a
CombinationsConstraint
with all of the possible number combinations for the specified set of cells. Avoid using this on oversized
puzzles.
Constructors
|
Describes a “sandwich” constraint: the numbers sandwiched between two specific numbers must sum up to a specified
total. This constraint implies a uniqueness constraint. The two specified numbers can be in any order. |
Static methods
| int?[][] | GenerateCombinations(int minValue, int maxValue, int value1, int value2, int sum, int numAffectedCells) |
Returns a collection containing all combinations of numAffectedCells cells of values
between minValue and maxValue in which the sum of the digits sandwiched
between value1 and value2 is sum. |
Instance methods
Instance properties