Skip to content

Commit

Permalink
📝 Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Dec 20, 2018
1 parent da6eb4d commit cf6f6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,12 @@ achieved using the [`@constraint`](@ref) macro. For example, `MOI.ZeroOne()`
restricts the domain to ``\{0, 1\}:
```jldoctest; setup = :(model = Model(); @variable(model, x))
julia> @constraint(model, x in MOI.ZeroOne())
x in MathOptInterface.ZeroOne()
x binary
```
and `MOI.Integer()` restricts to the domain to the integers ``\mathbb{Z}``:
```jldoctest; setup = :(model = Model(); @variable(model, x))
julia> @constraint(model, x in MOI.Integer())
x in MathOptInterface.Integer()
x integer
```

JuMP also supports modeling semi-continuous variables, whose domain is ``\{0\}
Expand Down

0 comments on commit cf6f6d9

Please sign in to comment.