-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a5ca89
commit 7e89cf6
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
using PRIMA | ||
using Test, TypeUtils | ||
using CUTEst | ||
if Sys.WORD_SIZE > 32 || Sys.iswindows() | ||
Check failure Code scanning / check-spelling Unrecognized Spelling Error test
iswindows is not a recognized word. (unrecognized-spelling)
|
||
using CUTEst | ||
end | ||
|
||
optimizer_name(::typeof(PRIMA.uobyqa)) = "UOBYQA" | ||
optimizer_name(::typeof(PRIMA.newuoa)) = "NEWUOA" | ||
|
@@ -381,14 +383,16 @@ end | |
end | ||
end | ||
|
||
@testset "Unconstrained CUTEst problem $name" for name in ("TOINTQOR", "OSBORNEB", "LANCZOS1LS",) | ||
# x1, res1 = @inferred PRIMA.prima_CUTEst(name; maxfun=5000) | ||
x1, res1 = PRIMA.prima_CUTEst(name; maxfun=5000) | ||
@test issuccess(res1) | ||
# x2, res2 = @inferred PRIMA.newuoa_CUTEst(name; maxfun=5000) | ||
x2, res2 = PRIMA.newuoa_CUTEst(name; maxfun=5000) | ||
@test issuccess(res2) | ||
@test x1 ≈ x2 | ||
if Sys.WORD_SIZE > 32 || Sys.iswindows() | ||
Check failure Code scanning / check-spelling Unrecognized Spelling Error test
iswindows is not a recognized word. (unrecognized-spelling)
|
||
@testset "Unconstrained CUTEst problem $name" for name in ("TOINTQOR", "OSBORNEB", "LANCZOS1LS",) | ||
# x1, res1 = @inferred PRIMA.prima_CUTEst(name; maxfun=5000) | ||
x1, res1 = PRIMA.prima_CUTEst(name; maxfun=5000) | ||
@test issuccess(res1) | ||
# x2, res2 = @inferred PRIMA.newuoa_CUTEst(name; maxfun=5000) | ||
x2, res2 = PRIMA.newuoa_CUTEst(name; maxfun=5000) | ||
@test issuccess(res2) | ||
@test x1 ≈ x2 | ||
end | ||
end | ||
|
||
end | ||
|