Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/iis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ function MOI.set(
)
optimizer.original_model = model
# this also resets the results
results = InfeasibilityData[]
status = MOI.COMPUTE_CONFLICT_NOT_CALLED
optimizer.results = InfeasibilityData[]
optimizer.status = MOI.COMPUTE_CONFLICT_NOT_CALLED
return
end

Expand Down
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,9 @@ function test_iis()
@test data[].irreducible
@test data[].metadata == MOIIS.NoData()
@test _isequal_unordered(data[].constraints, [index(c2), index(c1)])
MOI.set(solver, MOIIS.InfeasibleModel(), backend(model))
@test isempty(solver.results)
@test solver.status == MOI.COMPUTE_CONFLICT_NOT_CALLED
return
end

Expand Down
Loading