diff --git a/Project.toml b/Project.toml index 17a69fe6..69d02efc 100644 --- a/Project.toml +++ b/Project.toml @@ -15,7 +15,7 @@ SIFDecode_jll = "54dcf436-342f-53ea-8005-3708a1ae6c8c" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" [compat] -CUTEst_jll = "=2.2.2" +CUTEst_jll = "=2.2.3" Combinatorics = "1.0" DataStructures = "0.17, 0.18" JSON = "0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21" diff --git a/test/test_core.jl b/test/test_core.jl index 5a771b82..c70da39f 100644 --- a/test/test_core.jl +++ b/test/test_core.jl @@ -12,7 +12,9 @@ function test_coreinterface( c(x) = cons(comp_nlp, x) J(x) = jac(comp_nlp, x) W(x, y; obj_weight = one(T)) = hess(comp_nlp, x, y, obj_weight = obj_weight) + rtol = eps(T) |> sqrt + rtol = max(rtol, T(1e-8)) if !test_view st = Cint[0] diff --git a/test/test_julia.jl b/test/test_julia.jl index fd20f16f..4d9d9a04 100644 --- a/test/test_julia.jl +++ b/test/test_julia.jl @@ -16,6 +16,7 @@ function test_nlpinterface(nlp::CUTEstModel{T}, comp_nlp::AbstractNLPModel{T}) w u = ones(T, nlp.meta.ncon) rtol = eps(T) |> sqrt + rtol = max(rtol, T(1e-8)) @testset "Julia interface" begin fx = obj(nlp, x0)