File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ ConstraintIndex
197
197
is_valid
198
198
throw_if_not_valid
199
199
delete(::ModelLike, ::Index)
200
+ delete(::ModelLike, ::Vector{<:Index})
200
201
```
201
202
202
203
### Variables
Original file line number Diff line number Diff line change @@ -116,10 +116,12 @@ The following modifications also take effect if `Index` is [`VariableIndex`](@re
116
116
delete (model:: ModelLike , index:: Index ) = throw (DeleteNotAllowed (index))
117
117
118
118
"""
119
- delete{R} (model::ModelLike, indices::Vector{R<:Index})
119
+ delete(model::ModelLike, indices::Vector{R<:Index}) where {R}
120
120
121
121
Delete the referenced objects in the vector `indices` from the model.
122
- It may be assumed that `R` is a concrete type.
122
+ It may be assumed that `R` is a concrete type. The default fallback sequentially
123
+ deletes the individual items in `indices`, although specialized implementations
124
+ may be more efficient.
123
125
"""
124
126
function delete (model:: ModelLike , indices:: Vector{<:Index} )
125
127
for index in indices
You can’t perform that action at this time.
0 commit comments