-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
Type: DocumentationThis issue requires changes to the documentationThis issue requires changes to the documentation
Description
This came up in GLPK (see jump-dev/GLPK.jl#81): what should we do if a user says add x -in- Interval(1.0, -1.0)
?
- Do we throw an error at the creation of Interval?
- Or add the constraint, and return infeasible? If so, what about infeasibility certificates etc.
In the MPB world, a decision was made for GLPK to add the constraint and return infeasible (see JuliaOpt/GLPKMathProgInterface.jl#34). This adds complexity to the wrapper as GLPK will throw an error on solve, so the wrapper has to check bounds prior to solve.
I'm in favor of throwing an error at the MOI level on the creation of Interval.
TODO before closing:
- Add a test
Metadata
Metadata
Assignees
Labels
Type: DocumentationThis issue requires changes to the documentationThis issue requires changes to the documentation