We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab602a commit 65b9ca3Copy full SHA for 65b9ca3
src/Utilities/mockoptimizer.jl
@@ -319,6 +319,12 @@ function MOI.set(
319
::MOI.ConflictStatus,
320
value::MOI.ConflictStatusCode,
321
)
322
+ if value == MOI.CONFLICT_FOUND && mock.conflict_count == 0
323
+ # A backwards compatible change for JuMP, which set MOI.ConflictStatus
324
+ # in its tests without setting MOI.ConflictCount (because the test was
325
+ # writte prior to the introduction of MOI.ConflictCount).
326
+ mock.conflict_count = 1
327
+ end
328
mock.conflict_status = value
329
return
330
end
0 commit comments