Skip to content

Commit e3bbd5b

Browse files
authored
fixes in docs (#1044)
1 parent bab7682 commit e3bbd5b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/src/apimanual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ appropriate bridges for unsupported constrained variables.
10691069
A constraint can often be written in a number of equivalent formulations. For
10701070
example, the constraint ``l \le a^\top x \le u``
10711071
(`ScalarAffineFunction`-in-`Interval`) could be re-formulated as two
1072-
constraints: ``a^\top x ge l`` (`ScalarAffineFunction`-in-`GreaterThan`) and
1072+
constraints: ``a^\top x \ge l`` (`ScalarAffineFunction`-in-`GreaterThan`) and
10731073
``a^\top x \le u`` (`ScalarAffineFunction`-in-`LessThan`). An alternative
10741074
re-formulation is to add a dummy variable `y` with the constraints ``l \le y \le
10751075
u`` (`SingleVariable`-in-`Interval`) and ``a^\top x - y = 0``
@@ -1127,7 +1127,7 @@ MOI.set(model, MyPackage.PrintLevel(), 0)
11271127

11281128
### Supported constrained variables and constraints
11291129

1130-
The solver interface should only implement support for support for variables
1130+
The solver interface should only implement support for variables
11311131
constrained on creation (see
11321132
[`add_constrained_variable`](@ref)/[`add_constrained_variables`](@ref)) or
11331133
constraints that directly map to a structure exploited by the solver algorithm.

src/variables.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ end
9292
"""
9393
supports_add_constrained_variables(
9494
model::ModelLike,
95-
S::Type{<:AbstractScalarSet}
95+
S::Type{<:AbstractVectorSet}
9696
)::Bool
9797
9898
Return a `Bool` indicating whether `model` supports constraining a vector of

0 commit comments

Comments
 (0)