{"id":16275337,"url":"https://github.com/jakobbossek/smoof","last_synced_at":"2026-03-02T05:04:42.317Z","repository":{"id":19231129,"uuid":"22465741","full_name":"jakobbossek/smoof","owner":"jakobbossek","description":"Single- and Multi-Objective Optimization Test Functions","archived":false,"fork":false,"pushed_at":"2024-02-14T21:35:52.000Z","size":8193,"stargazers_count":37,"open_issues_count":11,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-28T18:07:25.169Z","etag":null,"topics":["benchmark-functions","multi-objective-optimization","r","r-package","single-objective-optimization"],"latest_commit_sha":null,"homepage":"http://jakobbossek.github.io/smoof/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jakobbossek.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-07-31T10:39:43.000Z","updated_at":"2025-09-09T23:17:13.000Z","dependencies_parsed_at":"2023-11-12T21:22:58.131Z","dependency_job_id":"446c9ffe-ffc4-487f-abad-877062710d3b","html_url":"https://github.com/jakobbossek/smoof","commit_stats":{"total_commits":508,"total_committers":17,"mean_commits":29.88235294117647,"dds":0.155511811023622,"last_synced_commit":"1a2de3f24aac479c76c2c35bba7b9a2345feb7d6"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jakobbossek/smoof","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobbossek%2Fsmoof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobbossek%2Fsmoof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobbossek%2Fsmoof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobbossek%2Fsmoof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakobbossek","download_url":"https://codeload.github.com/jakobbossek/smoof/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobbossek%2Fsmoof/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmark-functions","multi-objective-optimization","r","r-package","single-objective-optimization"],"created_at":"2024-10-10T18:33:04.613Z","updated_at":"2026-03-02T05:04:42.284Z","avatar_url":"https://github.com/jakobbossek.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n# smoof: Single- and Multi-Objective Optimization Test Functions\n\nVisit the [package website](https://jakobbossek.github.io/smoof/)\n\n\u003c!-- badges: start --\u003e\n[![CRAN Status Badge](http://www.r-pkg.org/badges/version/smoof)](https://CRAN.R-project.org/package=smoof)\n[![CRAN Downloads](http://cranlogs.r-pkg.org/badges/smoof)](https://CRAN.R-project.org/package=smoof)\n[![CRAN Downloads](http://cranlogs.r-pkg.org/badges/grand-total/smoof?color=orange)](https://CRAN.R-project.org/package=smoof)\n[![R-CMD-check](https://github.com/jakobbossek/smoof/workflows/R-CMD-check/badge.svg)](https://github.com/jakobbossek/smoof/actions)\n[![Codecov test coverage](https://codecov.io/gh/jakobbossek/smoof/branch/master/graph/badge.svg)](https://app.codecov.io/gh/jakobbossek/smoof?branch=master)\n\u003c!-- badges: end --\u003e\n\nThis package offers an interface for objective functions in the context of (multi-objective) global optimization. It conveniently builds up on the S3 objects, i. e., an objective function is a S3 object composed of a descriptive name, the function itself, a parameter set, box constraints or other constraints, number of objectives and so on. Moreover, the package contains generators for a load of both single- and multi-objective optimization test functions which are frequently being used in the literature of (benchmarking) optimization algorithms.\nThe bi-objective ZDT function family by Zitzler, Deb and Thiele is included as well as the popular single-objective test functions like De Jong's function, Himmelblau function and Schwefel function. Moreover, the package offers a R interface to the C implementation of the *Black-Box Optimization Benchmarking* (BBOB) [set of noiseless test functions](http://coco.gforge.inria.fr/doku.php?id=bbob-2009-downloads).\n\n![examplary smoof functions](https://raw.githubusercontent.com/jakobbossek/smoof/screenshots/smoof_funs_example.png)\n\n## Installation instructions\n\nVisit the [package repository on CRAN](https://CRAN.R-project.org/package=smoof). If you want to take a glance at the developement version install the github developement version by executing the following command:\n\n```r\ndevtools::install_github(\"jakobbossek/smoof\")\n```\n\n## Example\n\n### Use a build-in generator\nAssume the simplifying case where we want to benchmark a set of optimization algorithms on a single objective instance. We decide ourselves for the popular 10-dimensional Rosenbrock banana function. Instead of looking up the function definition, the box constraints and where the global optimum is located, we simply generate the function with **smoof** and get all the stuff:\n\n```r\nlibrary(ggplot2)\nlibrary(plot3D)\n\nobj.fn = makeRosenbrockFunction(dimensions = 2L)\nprint(obj.fn)\nprint(autoplot(obj.fn))\nplot3D(obj.fn, length.out = 50L, contour = TRUE)\n```\n\n### Set up an objective function by hand\nLet us consider the problem of finding the (global) minimum of the multimodal target function f(x) = x sin(3x) on the closed intervall [0, 2PI]. We define our target function via the ```makeSingleObjectiveFunction()``` method providing a name, the function itself and a parameter set. We can display the function within the box constraints with ggplot.\n\n```r\nlibrary(ggplot2)\n\nobj.fn = makeSingleObjectiveFunction(\n  name = \"My fancy function name\",\n  fn = function(x) x * sin(3*x),\n  par.set = makeNumericParamSet(\"x\", len = 1L, lower = 0, upper = 2 * pi)\n)\nprint(obj.fn)\nprint(getParamSet(obj.fn))\nprint(autoplot(obj.fn))\n```\n\nThe [ecr](https://github.com/jakobbossek/ecr2) package for evolutionary computing in R needs builds upon smoof functions.\n\n## Citation\n\nPlease cite my [R Journal paper](https://journal.r-project.org/archive/2017/RJ-2017-004/index.html) in publications. Get the information via `citation(\"smoof\")` or use the following BibTex entry:\n```\n@Article{,\n  author = {Jakob Bossek},\n  title = {smoof: Single- and Multi-Objective Optimization Test Functions},\n  year = {2017},\n  journal = {The R Journal},\n  url = {https://journal.r-project.org/archive/2017/RJ-2017-004/index.html},\n}\n```\n\n## Contact\n\nPlease address questions and missing features about the **smoof package** to the author Jakob Bossek \u003cj.bossek@gmail.com\u003e. Found some nasty bugs? Please use the [issue tracker](https://github.com/jakobbossek/smoof/issues) for this. Pay attention to explain the problem as good as possible. At its best you provide an example, so I can reproduce your problem.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobbossek%2Fsmoof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakobbossek%2Fsmoof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobbossek%2Fsmoof/lists"}