Skip to content

Commit 5f5acaa

Browse files
authored
Fix typo in docstring of AllDifferent bridge (#2543)
1 parent fff8d4a commit 5f5acaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Bridges/Constraint/bridges/count_distinct.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ the constraint is equivalent to `[x, y] in AllDifferent(2)`, which is equivalent
4848
to `x != y`.
4949
5050
```math
51-
(x - y <= -1) \\vee (y - x <= -1)
51+
(x - y \\le -1) \\vee (y - x \\le -1)
5252
```
5353
which is equivalent to (for suitable `M`):
5454
```math
5555
\\begin{aligned}
5656
z \\in \\{0, 1\\} \\\\
57-
x - y - M * z <= -1 \\\\
58-
y - x - M * (1 - z) <= -1
57+
x - y - M z \\le -1 \\\\
58+
y - x - M (1 - z) \\le -1
5959
\\end{aligned}
6060
```
6161

0 commit comments

Comments
 (0)