Download JSetL User's Manual

Transcript
Contents
1 Introduction
1
2 Logical variables: the class LVar
2.1 Constructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 General utility methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 Constraint methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
2
3
4
3 Logical lists: the class LList
3.1 Constructors . . . . . . . . . . .
3.2 Creating new (bound) l-lists . . .
3.3 General utility methods . . . . .
3.3.1 Basic methods . . . . . .
3.3.2 Logical collection methods
3.4 Constraint methods . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
5
5
6
7
8
8
9
4 Logical sets: the class LSet
4.1 Constructors . . . . . . . . . . .
4.2 Creating new (bound) l-sets . . .
4.3 General utility methods . . . . .
4.3.1 Basic methods . . . . . .
4.3.2 Logical collection methods
4.4 Constraint methods . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
10
11
11
12
12
12
13
5 Integer logical variables: the class
5.1 Constructors . . . . . . . . . . .
5.2 General utility methods . . . . .
5.3 Integer logical expressions . . . .
5.4 Constraint methods . . . . . . .
IntLVar
. . . . . .
. . . . . .
. . . . . .
. . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
15
16
17
17
18
class SetLVar
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
20
21
23
23
24
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
27
28
28
29
29
6 Integer set logical variables: the
6.1 Constructors . . . . . . . . . .
6.2 General utility methods . . . .
6.3 Integer set expressions . . . . .
6.4 Constraint methods . . . . . .
7 Constraints: the class Constraint
7.1 Constructors . . . . . . . . . . . . .
7.2 General utility methods . . . . . . .
7.3 Meta-constraints . . . . . . . . . . .
7.4 Constraint methods in other classes
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
8 Constraint solving: the class SolverClass
29
8.1 Posting and inspecting constraints . . . . . . . . . . . . . . . . . . . . . . . . 30
8.2 Checking constraint satisfiability . . . . . . . . . . . . . . . . . . . . . . . . . 31
8.3 Getting solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
ii