jump-dev / MathOptInterface.jl

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

[Utilities] Allow non-IndexMap for pass_attributes #2458

Closed blegat closed 5 months ago

blegat commented 5 months ago

In https://github.com/jump-dev/PolyJuMP.jl/pull/119, the mapping is between constraint indices of different types so it cannot be an IndexMap but it would be useful to call pass_attributes. This PR would help fix the broken test added in https://github.com/jump-dev/PolyJuMP.jl/pull/119