File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
"""
19
19
supports_domain(
20
- model::ModelLike,
20
+ model::MOI. ModelLike,
21
21
::Type{D},
22
22
) where {D<:AbstractDomain}
23
23
24
24
Return a `Bool` indicating whether `model` supports domains of type `D`.
25
25
"""
26
- function supports_domain (:: Model , :: Type{<:AbstractDomain} )
26
+ function supports_domain (:: MOI.ModelLike , :: Type{<:AbstractDomain} )
27
27
return false
28
28
end
29
29
53
53
AddDomainNotAllowed {D} () where {D} = AddDomainNotAllowed {D} (" " )
54
54
55
55
"""
56
- add_domain()
56
+ add_domain(
57
+ model::MOI.ModelLike,
58
+ domain::AbstractDomain
59
+ )
57
60
58
61
Add `domain` to the model. An [`UnsupportedDomain`](@ref) error is thrown if
59
- `model` does not support
62
+ `model` does not support. Otherwise a `DomainIndex` is returned.
60
63
"""
61
64
function add_domain (model:: MOI.ModelLike , domain:: AbstractDomain )
62
65
return throw_add_domain_error_fallback (model, domain)
You can’t perform that action at this time.
0 commit comments