Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrichet authored Nov 28, 2022
1 parent 4468ba5 commit 31196a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/test/cases.ECEGO/branin.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ argmin.f = c(0.5427730, 0.15)
min.f = 0.3978874

library(testthat)
if (!isTRUE(test_that("f(armgin.f) == f.min",{expect_equal(f(matrix(argmin.f,nrow=1))[1,1],min.f,tolerance = .0001)}))) quit(status=1)
if (!isTRUE(test_that("f_constr(armgin.f) == 0",{expect_equal(f(matrix(argmin.f,nrow=1))[1,2],0,tolerance = .0001)}))) quit(status=1)
if (!isTRUE(test_that("f(armgin.f) == f.min",{expect_equal(f(matrix(argmin.f,nrow=1))[1],min.f,tolerance = .0001)}))) quit(status=1)
if (!isTRUE(test_that("f_constr(armgin.f) == 0",{expect_equal(f(matrix(argmin.f,nrow=1))[1],0,tolerance = .0001)}))) quit(status=1)

test = function(algorithm_file) {
results = run.algorithm(algorithm_file, options = list(nugget='0.1', nugget_constr='0.1'),fun=list(input=input.f,output=output.f))
Expand Down
2 changes: 1 addition & 1 deletion src/test/cases.EGO/branin.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ argmin3.f = c(0.5427730, 0.15)
min.f = 0.3978874

library(testthat)
if (!isTRUE(test_that("f(armgin.f) == f.min",{expect_equal(f(matrix(argmin1.f,nrow=1))[1,1],min.f,tolerance = .0001)}))) quit(status=1)
if (!isTRUE(test_that("f(armgin.f) == f.min",{expect_equal(f(matrix(argmin1.f,nrow=1))[1],min.f,tolerance = .0001)}))) quit(status=1)

test = function(algorithm_file) {
results = run.algorithm(algorithm_file, options=NULL,fun=list(input=input.f,output=output.f))
Expand Down

0 comments on commit 31196a8

Please sign in to comment.