Skip to content

Commit

Permalink
Enable ConstraintDual tests (#19)
Browse files Browse the repository at this point in the history
* Enable ConstraintDual tests

* Bump to MOI v1.24

* Fix

* Update src/SDPLR.jl

Co-authored-by: Oscar Dowson <[email protected]>

* Update src/SDPLR.jl

Co-authored-by: Oscar Dowson <[email protected]>

* Fix

* Fix

---------

Co-authored-by: Oscar Dowson <[email protected]>
  • Loading branch information
blegat and odow authored Jan 3, 2024
1 parent 7fffb0a commit 7e68827
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
SDPLR_jll = "3a057b76-36a0-51f0-a66f-6d580b8e8efd"

[compat]
MathOptInterface = "1.22"
MathOptInterface = "1.24"
SDPLR_jll = "=100.2.300"
julia = "1.6"
4 changes: 2 additions & 2 deletions src/SDPLR.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module SDPLR

using SDPLR_jll
import SDPLR_jll

include("bounds.jl")

Expand Down Expand Up @@ -142,7 +142,7 @@ function solve(
end
end
GC.@preserve blksz blktype b CAent CArow CAcol CAinfo_entptr CAinfo_type R lambda maxranks ranks pieces begin
ret = @ccall SDPLR.SDPLR_jll.libsdplr.sdplrlib(
ret = @ccall SDPLR_jll.libsdplr.sdplrlib(
m::Csize_t,
numblk::Csize_t,
blksz::Ptr{Cptrdiff_t},
Expand Down
5 changes: 3 additions & 2 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function test_runtests()
MOI.ConstraintName,
MOI.VariableName,
MOI.ObjectiveBound,
MOI.ConstraintDual, # TODO
MOI.SolverVersion,
],
optimal_status = MOI.LOCALLY_SOLVED,
Expand All @@ -45,8 +44,10 @@ function test_runtests()
r"test_model_ScalarFunctionConstantNotZero$",
r"test_model_delete$",
# Detecting infeasibility or unboundedness not supported
"INFEASIBLE",
"INFEAS",
"infeasible",
# Incorrect `ConstraintDual` for `vc2` for MacOS in CI
r"test_linear_integration",
# FIXME investigate
r"test_conic_SecondOrderCone_nonnegative_post_bound$",
r"test_conic_SecondOrderCone_negative_post_bound_2$",
Expand Down

0 comments on commit 7e68827

Please sign in to comment.