Skip to content

Commit a70059c

Browse files
committed
Fix doc
1 parent ec0de3c commit a70059c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Utilities/cachingoptimizer.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ Creates an `CachingOptimizer` in `Automatic` mode, with the optimizer `optimizer
4545
The model_cache manager returned behaves like an `AbstractOptimizer` as long as no
4646
`CachingOptimizer`-specific functions (e.g. `resetoptimizer!`) are called on it.
4747
The type of the optimizer returned is `CachingOptimizer{typeof(optimizer),
48-
typeof(model_cache)}` so it does not support the function `dropoptimizer!`
49-
nor the method `resetoptimizer!(::CachingOptimizer, optimizer)`.
48+
typeof(model_cache)}` so it does not support the function
49+
`resetoptimizer!(::CachingOptimizer, new_optimizer)` if the type of
50+
`new_optimizer` is different from the type of `optimizer`.
5051
"""
5152
function CachingOptimizer(model_cache::MOI.ModelLike, optimizer::MOI.AbstractOptimizer)
5253
@assert MOI.isempty(model_cache)

0 commit comments

Comments
 (0)