scipopt / SCIP.jl

Julia interface to SCIP solver
MIT License
95 stars 24 forks source link

ListOfConstraintIndices not exposed? #199

Closed matbesancon closed 3 years ago

matbesancon commented 3 years ago
o = SCIP.Optimizer

julia> MOI.get(o, MOI.ListOfConstraintIndices{MOI.ScalarAffineFunction{Float64}, MOI.LessThan{Float64}}())
ERROR: ArgumentError: ModelLike of type SCIP.Optimizer does not support accessing the attribute MathOptInterface.ListOfConstraintIndices{MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.LessThan{Float64}}()
Stacktrace:
 [1] get_fallback(::SCIP.Optimizer, ::MathOptInterface.ListOfConstraintIndices{MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.LessThan{Float64}})
   @ MathOptInterface ~/.julia/packages/MathOptInterface/YDdD3/src/attributes.jl:296
 [2] get(::SCIP.Optimizer, ::MathOptInterface.ListOfConstraintIndices{MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.LessThan{Float64}})
   @ MathOptInterface ~/.julia/packages/MathOptInterface/YDdD3/src/attributes.jl:293
 [3] top-level scope
   @ REPL[12]:1

julia> MOI.get(o, MOI.ListOfConstraintIndices{MOI.SingleVariable, MOI.LessThan{Float64}}())
ERROR: ArgumentError: ModelLike of type SCIP.Optimizer does not support accessing the attribute MathOptInterface.ListOfConstraintIndices{MathOptInterface.SingleVariable, MathOptInterface.LessThan{Float64}}()
matbesancon commented 3 years ago

I'm not sure how things even worked without this implemented

matbesancon commented 3 years ago

closed by #203