From c109710e2e09e3b9bafdb5c9f294cc295f25ac69 Mon Sep 17 00:00:00 2001 From: Joaquim Date: Mon, 22 Sep 2025 15:29:40 -0300 Subject: [PATCH 1/4] Update POI --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index f0f7c4d4..3c586b46 100644 --- a/Project.toml +++ b/Project.toml @@ -23,5 +23,5 @@ JuMP = "1" LazyArrays = "0.21, 0.22, 1" MathOptInterface = "1.18" MathOptSetDistances = "0.2.9" -ParametricOptInterface = "0.12.1" +ParametricOptInterface = "0.13" julia = "1.6" From 7a5a3de29225c81ecfe4f9595b09c750fe35dfe6 Mon Sep 17 00:00:00 2001 From: joaquimg Date: Sat, 27 Sep 2025 21:32:17 -0300 Subject: [PATCH 2/4] change error --- test/jump.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/jump.jl b/test/jump.jl index 248ceb6e..059e6e0b 100644 --- a/test/jump.jl +++ b/test/jump.jl @@ -729,7 +729,7 @@ function test_psd_square_error() @constraint(model, con, [-p*x 0; 0 x] in PSDCone()) - @test_throws MOI.SetAttributeNotAllowed optimize!(model) + @test_throws MOI.Bridges.ModifyBridgeNotAllowed optimize!(model) # DiffOpt.set_forward_parameter(model, p, 1.0) # DiffOpt.forward_differentiate!(model) From 8deae5f3b96795e967eca6856d6562ec6c22d4e8 Mon Sep 17 00:00:00 2001 From: joaquimg Date: Sun, 5 Oct 2025 13:05:03 -0300 Subject: [PATCH 3/4] up to poi 0.14 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 3c586b46..6e1a407c 100644 --- a/Project.toml +++ b/Project.toml @@ -23,5 +23,5 @@ JuMP = "1" LazyArrays = "0.21, 0.22, 1" MathOptInterface = "1.18" MathOptSetDistances = "0.2.9" -ParametricOptInterface = "0.13" +ParametricOptInterface = "0.14" julia = "1.6" From a64b3b2ed4d92b511af02df598bdd7cbf8623176 Mon Sep 17 00:00:00 2001 From: joaquimg Date: Sun, 5 Oct 2025 17:00:46 -0300 Subject: [PATCH 4/4] fix poi and update test --- src/parameters.jl | 2 +- test/moi_wrapper.jl | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/parameters.jl b/src/parameters.jl index b0a02690..c7a484b1 100644 --- a/src/parameters.jl +++ b/src/parameters.jl @@ -315,7 +315,7 @@ function MOI.get( if _is_parameter(model, variable) error("Trying to get a forward variable sensitivity for a parameter") end - return MOI.get(model.optimizer, attr, model.variables[variable]) + return MOI.get(model.optimizer, attr, variable) end # reverse mode diff --git a/test/moi_wrapper.jl b/test/moi_wrapper.jl index c9daf851..40f3d653 100644 --- a/test/moi_wrapper.jl +++ b/test/moi_wrapper.jl @@ -34,8 +34,20 @@ function test_moi_test_runtests() # ) MOI.set(model, MOI.Silent(), true) config = - MOI.Test.Config(; atol = 1e-7, exclude = Any[MOI.compute_conflict!]) - MOI.Test.runtests(model, config) + MOI.Test.Config(; atol = 1e-7, exclude = Any[MOI.compute_conflict!,]) + MOI.Test.runtests( + model, + config; + exclude = Any[ + # removed because of the `ZerosBridge` issue: + # https://github.com/jump-dev/MathOptInterface.jl/issues/2861 + # - zeros bridge does not support duals because it cumbersome + # - many bridges do not support get ConstraintFunction because it is cumbersome + # so there is no way out of this error for now. + # at the same time this is a modeling corner case tha could be avoided + # by the user. + "test_conic_linear_VectorOfVariables_2"], + ) return end