You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,16 +67,16 @@ Two types of logical constraints are supported:
67
67
68
68
2.`Proposition` or Boolean constraints: These describe the relationships between Logical variables via Boolean algebra. Supported logical operators include:
69
69
70
-
-`∨` or `logical_or` (OR, typed with `\vee + tab`).
71
-
-`∧` or `logical_and` (AND, typed with `\wedge + tab`).
70
+
-`∨` or `logical_or`or `||`(OR, typed with `\vee + tab`).
71
+
-`∧` or `logical_and`or `&&`(AND, typed with `\wedge + tab`).
72
72
-`¬` or `logical_not` (NOT, typed with `\neg + tab`).
73
73
-`⟹` of `implies` (Implication, typed with `\Longrightarrow + tab`).
74
-
-`⇔` or `iff` (double implication or equivalence, typed with `\Leftrightarrow + tab`).
74
+
-`⇔` or `iff`or `==`(double implication or equivalence, typed with `\Leftrightarrow + tab`).
75
75
76
-
The `@constraint` JuMP macro is used to create these constraints with the `IsTrue` set:
76
+
The `@constraint` JuMP macro is used to create these constraints using`:=`:
77
77
78
78
```julia
79
-
@constraint(model, (Y[1] ⟹ Y[2]) in IsTrue())
79
+
@constraint(model, Y[1] ⟹ Y[2] := true)
80
80
```
81
81
82
82
_Note_: The parenthesis in the example above around the implication clause are only required when the parent logical operator is `⟹` or `⇔` to avoid parsing errors.
Copy file name to clipboardExpand all lines: docs/src/index.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,16 +67,16 @@ Two types of logical constraints are supported:
67
67
68
68
2.`Proposition` or Boolean constraints: These describe the relationships between Logical variables via Boolean algebra. Supported logical operators include:
69
69
70
-
-`∨` or `logical_or` (OR, typed with `\vee + tab`).
71
-
-`∧` or `logical_and` (AND, typed with `\wedge + tab`).
70
+
-`∨` or `logical_or`or `||`(OR, typed with `\vee + tab`).
71
+
-`∧` or `logical_and`or `&&`(AND, typed with `\wedge + tab`).
72
72
-`¬` or `logical_not` (NOT, typed with `\neg + tab`).
73
73
-`⟹` of `implies` (Implication, typed with `\Longrightarrow + tab`).
74
-
-`⇔` or `iff` (double implication or equivalence, typed with `\Leftrightarrow + tab`).
74
+
-`⇔` or `iff`or `==`(double implication or equivalence, typed with `\Leftrightarrow + tab`).
75
75
76
-
The `@constraint` JuMP macro is used to create these constraints with the `IsTrue` set:
76
+
The `@constraint` JuMP macro is used to create these constraints with `:=`:
77
77
78
78
```julia
79
-
@constraint(model, (Y[1] ⟹ Y[2]) in IsTrue())
79
+
@constraint(model, Y[1] ⟹ Y[2] := true)
80
80
```
81
81
82
82
_Note_: The parenthesis in the example above around the implication clause are only required when the parent logical operator is `⟹` or `⇔` to avoid parsing errors.
0 commit comments