You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mlubin and I have been discussing the following example:
julia>using JuMP
julia>functionmain()
model =Model()
@variable(model, x)
@variable(model, y >=0)
@objective(model, Min, x + y)
write_to_file(model, "file.mps")
print(read("file.mps", String))
end
main (generic function with 1 method)
julia>main()
NAME
ROWS
N OBJ
COLUMNS
y OBJ 1
x OBJ 1
RHS
RANGES
BOUNDS
LO bounds y 0
PL bounds y
FR bounds x
ENDATA
In JuMP, the columns are ordered x, y, but the MPS file, they are ordered as y, x.
Since the behavior of MIP solvers can depend on the column (and row) ordering, this can be undesirable.
@mlubin and I have been discussing the following example:
In JuMP, the columns are ordered
x
,y
, but the MPS file, they are ordered asy
,x
.Since the behavior of MIP solvers can depend on the column (and row) ordering, this can be undesirable.
The problem is:
MathOptInterface.jl/src/Utilities/copy.jl
Lines 199 to 234 in bca8a31
MathOptInterface.jl/src/Utilities/copy.jl
Lines 493 to 497 in bca8a31
which eagerly tries to constrain variables on creation based on their set type.
I wonder if we should:
VectorOfVariables
function.The original motivation for doing this is so that variable bridges can be preferentially used.
I don't really have an answer yet. I'll explore some stuff and report here.
The text was updated successfully, but these errors were encountered: