From 119ba2be025fb7ac1b3a35b8e8f4ebccdcac884e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Thi=C3=A9baut?= Date: Mon, 29 Jan 2024 14:42:11 +0100 Subject: [PATCH] Add a few tests from CUTEst --- Project.toml | 2 +- test/runtests.jl | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 90a0b75..f083c34 100644 --- a/Project.toml +++ b/Project.toml @@ -31,4 +31,4 @@ NLPModels = "a4795742-8479-5a88-8948-cc11e1c8c1a6" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test"] +test = ["Test", "CUTEst"] diff --git a/test/runtests.jl b/test/runtests.jl index 30693fe..548f077 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -374,6 +374,13 @@ end end end end + + @testset "Unconstrained CUTEst problem $name" for name in ("TOINTQOR", "OSBORNEB", "LANCZOS1LS",) + x1, res = @inferred PRIMA.prima_CUTEst(name; maxfun=5000) + x2, res = @inferred PRIMA.newuoa_CUTEst(name; maxfun=5000) + @test x1 ≈ x2 + end + end nothing