Skip to content

Commit 2d120d2

Browse files
authored
Merge pull request #724 from matbesancon/indicator-doc
add indicator documentation
2 parents c1d8f6a + a57c59d commit 2d120d2

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/src/apimanual.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,15 @@ Constraints with `SingleVariable` in `LessThan`, `GreaterThan`, `EqualTo`, or `I
347347
#### Discrete and logical constraints
348348

349349

350-
| Mathematical Constraint | MOI Function | MOI Set |
351-
|--------------------------------------------------------------------------------------------|---------------------|------------------------------------|
352-
| ``x_i \in \mathbb{Z}`` | `SingleVariable` | `Integer` |
353-
| ``x_i \in \{0,1\}`` | `SingleVariable` | `ZeroOne` |
354-
| ``x_i \in \{0\} \cup [l,u]`` | `SingleVariable` | `Semicontinuous` |
355-
| ``x_i \in \{0\} \cup \{l,l+1,\ldots,u-1,u\}`` | `SingleVariable` | `Semiinteger` |
356-
| At most one component of ``x`` can be nonzero | `VectorOfVariables` | `SOS1` |
357-
| At most two components of ``x`` can be nonzero, and if so they must be adjacent components | `VectorOfVariables` | `SOS2` |
350+
| Mathematical Constraint | MOI Function | MOI Set |
351+
|--------------------------------------------------------------------------------------------|------------------------|------------------------------------|
352+
| ``x_i \in \mathbb{Z}`` | `SingleVariable` | `Integer` |
353+
| ``x_i \in \{0,1\}`` | `SingleVariable` | `ZeroOne` |
354+
| ``x_i \in \{0\} \cup [l,u]`` | `SingleVariable` | `Semicontinuous` |
355+
| ``x_i \in \{0\} \cup \{l,l+1,\ldots,u-1,u\}`` | `SingleVariable` | `Semiinteger` |
356+
| At most one component of ``x`` can be nonzero | `VectorOfVariables` | `SOS1` |
357+
| At most two components of ``x`` can be nonzero, and if so they must be adjacent components | `VectorOfVariables` | `SOS2` |
358+
| ``y = 1 \implies a^T x \in S`` | `VectorAffineFunction` | `IndicatorSet` |
358359

359360
## Solving and retrieving the results
360361

0 commit comments

Comments
 (0)