Skip to content

Commit f1ed2b9

Browse files
authored
Update attributes.jl
1 parent 2ede2f0 commit f1ed2b9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/attributes.jl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,14 @@ attribute_value_type(::ConflictStatus) = ConflictStatusCode
18911891
18921892
An [`AbstractModelAttribute`](@ref) for the number of conflicts found by the
18931893
solver in the most recent call to [`compute_conflict!`](@ref).
1894+
1895+
## Implementation
1896+
1897+
Optimizers should implement the following methods:
1898+
```julia
1899+
MOI.get(::Optimizer, ::MOI.ConflictCount)::Int
1900+
```
1901+
They should not implement [`set`](@ref) or [`supports`](@ref).
18941902
"""
18951903
struct ConflictCount <: AbstractModelAttribute end
18961904

@@ -2745,7 +2753,11 @@ will throw a [`ResultIndexBoundsError`](@ref).
27452753
27462754
Optimizers should implement the following methods:
27472755
```julia
2748-
MOI.get(::Optimizer, ::MOI.ConstraintConflictStatus, ::MOI.ConstraintIndex)::T
2756+
MOI.get(
2757+
::Optimizer,
2758+
::MOI.ConstraintConflictStatus,
2759+
::MOI.ConstraintIndex,
2760+
)::ConflictParticipationStatusCode
27492761
```
27502762
They should not implement [`set`](@ref) or [`supports`](@ref).
27512763
"""

0 commit comments

Comments
 (0)