Skip to content

Commit

Permalink
Return an error if we encounter an unsupported feature
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jun 20, 2024
1 parent 0810e40 commit 547401a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ function parser_MOI(moimodel, index_map, nvar)

contypes = MOI.get(moimodel, MOI.ListOfConstraintTypesPresent())
for (F, S) in contypes
F <: AF || F <: QF || F == MOI.ScalarNonlinearFunction || F == VI || @warn("Function $F is not supported.")
S <: LS || @warn("Set $S is not supported.")
F <: AF || F <: QF || F == MOI.ScalarNonlinearFunction || F == VI || error("Function $F is not supported.")
S <: LS || error("Set $S is not supported.")

conindices = MOI.get(moimodel, MOI.ListOfConstraintIndices{F, S}())
for cidx in conindices
Expand Down

0 comments on commit 547401a

Please sign in to comment.