Skip to content

Commit ec0de3c

Browse files
committed
Better names for type arguments
1 parent dd9d4a2 commit ec0de3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Utilities/cachingoptimizer.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ A `CachingOptimizer` has two modes of operation (`CachingOptimizerMode`):
2222
- `Manual`: The only methods that change the state of the `CachingOptimizer` are [`resetoptimizer!`](@ref), [`dropoptimizer!`](@ref), and [`attachoptimizer!`](@ref). Attempting to perform an operation in the incorrect state results in an error.
2323
- `Automatic`: The `CachingOptimizer` changes its state when necessary. For example, `optimize!` will automatically call `attachoptimizer!` (an optimizer must have been previously set). Attempting to add a constraint or perform a modification not supported by the optimizer results in a drop to `EmptyOptimizer` mode.
2424
"""
25-
mutable struct CachingOptimizer{OT, MT<:MOI.ModelLike} <: MOI.AbstractOptimizer
26-
optimizer::OT
27-
model_cache::MT
25+
mutable struct CachingOptimizer{OptimizerType, ModelType<:MOI.ModelLike} <: MOI.AbstractOptimizer
26+
optimizer::OptimizerType
27+
model_cache::ModelType
2828
state::CachingOptimizerState
2929
mode::CachingOptimizerMode
3030
model_to_optimizer_map::IndexMap

0 commit comments

Comments
 (0)