MathOptInterface.jl
MathOptInterface.jl copied to clipboard
WIP: [Utilities] maintain order of variables in default_copy_to
This PR is an investigation of what we would need to implement to close #2493. It is still very rough around the edges; I need to clean it up and profile for performance, but as a demo, the case from #2493 now works:
julia> main()
NAME
ROWS
N OBJ
COLUMNS
x OBJ 1
y OBJ 1
RHS
RANGES
BOUNDS
FR bounds x
LO bounds y 0
PL bounds y
ENDATA
TODOs
- [x] Fix tests
- [ ] https://github.com/jump-dev/MathOptInterface.jl/actions/runs/8946191513
- [ ] Benchmark performance