Skip to content

Decision: Interval sets with lower > upper #532

@odow

Description

@odow

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

No one assigned

    Labels

    Type: DocumentationThis issue requires changes to the documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions