tests/testthat/test_monitoring.R

context("CMA-ES monitoring")

test_that("CMA-ES monitoring works well", {
	fn = makeSphereFunction(2L)
  expect_output(cmaes(fn, monitor = makeSimpleMonitor()), "Iteration")
})

Try the cmaesr package in your browser

Any scripts or data that you put into this service are public.

cmaesr documentation built on May 2, 2019, 3:37 p.m.