Skip to content

[docs/convention] VariablePrimal: what should solvers return when there is no solution? #1600

@dourouc05

Description

@dourouc05

When working on Chuffed.jl, I wondered what I should return for VariablePrimal when the model is infeasible. Currently, this is not documented (https://github.com/jump-dev/MathOptInterface.jl/blob/master/src/attributes.jl#L1188-L1195).

Intuitively, two solutions make sense to me: either throw an appropriate exception (similarly to InvalidCallbackUsage or OptimizeInProgress) or return nothing.

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