Skip to content

Document how to not support constraints depending on the actual data (not type) #608

@rschwarz

Description

@rschwarz

If a solver does not support a specific function-set pair, this is readily communicated via the MOI.supports method.

However, the documentation also mentions another case that is not covered by this method:

With this in mind, developers should support all the constraint types that they want to be usable from JuMP. That said, from the perspective of JuMP, solvers can safely choose to not support the following constraints:

ScalarAffineFunction in GreaterThan, LessThan, or EqualTo with a nonzero constant in the function. Constants in the affine function should instead be moved into the parameters of the corresponding sets.

How should this be implemented?

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