Skip to content

Commit

Permalink
Merge pull request #162 from astamm/fix-isres-tests
Browse files Browse the repository at this point in the history
Fix ISRES unit test which failed on some platforms.
  • Loading branch information
astamm authored Jun 24, 2024
2 parents b0c876d + f30c957 commit 72de8c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions inst/tinytest/test-wrapper-global.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ isresControl <- nloptr(x0 = x0,
maxeval = 2e4L, xtol_rel = 1e-6,
population = 60))

# expect_equal(isresTest$par, isresControl$solution, tolerance = 1e-1)
# expect_equal(isresTest$value, isresControl$objective, tolerance = 1e-1)
expect_identical(stogoTest$convergence, stogoControl$status)
expect_identical(stogoTest$message, stogoControl$message)

Expand Down Expand Up @@ -194,7 +192,7 @@ isresTest <- suppressWarnings(isres(x0, rbf, lb, ub, hin = hin2,
maxeval = 2e4L))

expect_equal(isresTest$par, isresControl$solution, tolerance = 1e-4)
expect_equal(isresTest$value, isresControl$objective, tolerance = 1e-4)
expect_equal(isresTest$value, isresControl$objective, tolerance = 1e-3)
expect_identical(stogoTest$convergence, stogoControl$status)
expect_identical(stogoTest$message, stogoControl$message)

Expand Down

0 comments on commit 72de8c3

Please sign in to comment.