From 49e388156b6e94ae97701bf2205a9e361f89fff8 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 8 Feb 2024 14:25:22 +1300 Subject: [PATCH 1/3] [FileFormats.MPS] revert change for backwards compatibility --- src/FileFormats/MPS/MPS.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/FileFormats/MPS/MPS.jl b/src/FileFormats/MPS/MPS.jl index 98ba77e813..0e39c1d818 100644 --- a/src/FileFormats/MPS/MPS.jl +++ b/src/FileFormats/MPS/MPS.jl @@ -1829,4 +1829,13 @@ PrecompileTools.@setup_workload begin end end +# Originally removed by #2421, but this constant was used by extensions like +# BilevelJuMP so I'm re-adding to maintain backwards compatibility. +const SET_TYPES = ( + (MOI.LessThan{Float64}, "L"), + (MOI.GreaterThan{Float64}, "G"), + (MOI.EqualTo{Float64}, "E"), + (MOI.Interval{Float64}, "L"), +) + end From ee151ffcf1ca59c800f2a464861ba34a5aad15d2 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 8 Feb 2024 14:53:42 +1300 Subject: [PATCH 2/3] Update src/FileFormats/MPS/MPS.jl --- src/FileFormats/MPS/MPS.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/FileFormats/MPS/MPS.jl b/src/FileFormats/MPS/MPS.jl index 0e39c1d818..9445b24294 100644 --- a/src/FileFormats/MPS/MPS.jl +++ b/src/FileFormats/MPS/MPS.jl @@ -1837,5 +1837,4 @@ const SET_TYPES = ( (MOI.EqualTo{Float64}, "E"), (MOI.Interval{Float64}, "L"), ) - end From 6275a2f2e3a56d6f2d4564db2eda99f04372de2d Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 8 Feb 2024 14:53:59 +1300 Subject: [PATCH 3/3] Update src/FileFormats/MPS/MPS.jl --- src/FileFormats/MPS/MPS.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FileFormats/MPS/MPS.jl b/src/FileFormats/MPS/MPS.jl index 9445b24294..311773f212 100644 --- a/src/FileFormats/MPS/MPS.jl +++ b/src/FileFormats/MPS/MPS.jl @@ -1837,4 +1837,5 @@ const SET_TYPES = ( (MOI.EqualTo{Float64}, "E"), (MOI.Interval{Float64}, "L"), ) + end