jump-dev / MathOptInterface.jl

A data structure for mathematical optimization problems
http://jump.dev/MathOptInterface.jl/
Other
392 stars 87 forks source link

Return type after querying attributes of empty vectors #2500

Closed odow closed 4 months ago

odow commented 4 months ago

I don't know what we should do, but it isn't this:

julia> import MathOptInterface as MOI

julia> m = MOI.Utilities.Model{Float64}()
MOIU.Model{Float64}

julia> x = MOI.VariableIndex[]
MathOptInterface.VariableIndex[]

julia> MOI.get(m, MOI.VariablePrimalStart(), x)
Union{}[]