@@ -851,8 +851,11 @@ addition to being different between constraints `F`-in-`S` for the same types
851851use the the value of the index directly in a dictionary representing a mapping
852852between constraint indices and something else.
853853
854- If `is_optimizer = true`, the resulting stuct is a subtype of
855- `MOIU.AbstractOptimizer`, otherwise, it is a subtype of `MOIU.AbstractModelLike`.
854+ If `is_optimizer = true`, the resulting struct is a subtype of
855+ of `MOIU.AbstractOptimizer`, which is a subtype of
856+ [`MathOptInterface.AbstractOptimizer`](@ref), otherwise, it is a subtype of
857+ `MOIU.AbstractModelLike`, which is a subtype of
858+ [`MathOptInterface.ModelLike`](@ref).
856859
857860### Examples
858861
@@ -866,8 +869,8 @@ The model describing an linear program would be:
866869 (), # untyped scalar functions
867870 (MOI.ScalarAffineFunction,), # typed scalar functions
868871 (MOI.VectorOfVariables,), # untyped vector functions
869- (MOI.VectorAffineFunction,) # typed vector functions
870- true
872+ (MOI.VectorAffineFunction,), # typed vector functions
873+ false
871874 )
872875```
873876
@@ -886,7 +889,7 @@ struct LPModelVectorConstraints{T, F <: MOI.AbstractVectorFunction} <: MOIU.Cons
886889 nonnegatives::Vector{MOIU.ConstraintEntry{F, MOI.Nonnegatives}}
887890 nonpositives::Vector{MOIU.ConstraintEntry{F, MOI.Nonpositives}}
888891end
889- mutable struct LPModel{T} <: MOIU.AbstractOptimizer {T}
892+ mutable struct LPModel{T} <: MOIU.AbstractModel {T}
890893 name::String
891894 sense::MOI.OptimizationSense
892895 objective::Union{MOI.SingleVariable, MOI.ScalarAffineFunction{T}, MOI.ScalarQuadraticFunction{T}}
0 commit comments