File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 377
377
378
378
"""
379
379
submit(optimizer::AbstractOptimizer, sub::AbstractSubmittable,
380
- value)::Union{ Nothing, SubmittedIndex{typeof(sub)}}
380
+ value)::Nothing
381
381
382
382
Submit `value` to the submittable `sub` of the optimizer `optimizer`.
383
383
Original file line number Diff line number Diff line change 35
35
# https://github.com/JuliaLang/julia/issues/10208
36
36
Base. hash (v:: VariableIndex , h:: UInt ) = hash (v. value, h)
37
37
38
- """
39
- SubmittedIndex{SubmitType}
40
-
41
- A type-safe wrapper for `Int64` for use in referencing elements submitted for
42
- submittable of type `SubmitType`.
43
- """
44
- struct SubmittedIndex{SubmitType}
45
- attr:: SubmitType
46
- value:: Int64
47
- end
48
-
49
38
# No need to define isequal because the default matches our implementation of
50
39
# hash.
51
40
52
- const Index = Union{ConstraintIndex, VariableIndex, SubmittedIndex }
41
+ const Index = Union{ConstraintIndex,VariableIndex}
53
42
54
43
"""
55
44
struct InvalidIndex{IndexType<:Index} <: Exception
You can’t perform that action at this time.
0 commit comments