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
.