Crates.io | mahf-bmf |
lib.rs | mahf-bmf |
version | 0.1.0 |
source | src |
created_at | 2023-07-14 16:27:37.7036 |
updated_at | 2023-07-14 16:27:37.7036 |
description | A collection of common continuous benchmark functions for MAHF. |
homepage | |
repository | https://github.com/mahf-opt/mahf-bmf |
max_upload_size | |
id | 916464 |
size | 169,987 |
A collection of common continuous benchmark functions for MAHF.
All functions are scaled to a domain of [-1, 1] for each dimension.
Add the following to your Cargo.toml
:
[dependencies]
mahf = { git = "https://github.com/mahf-opt/mahf" }
mahf_bmf = { git = "https://github.com/mahf-opt/mahf-bmf" }
Constructing a problem instance and evaluating a solution:
use mahf::problems::ObjectiveFunction;
use mahf_bmf::BenchmarkFunction;
let problem = BenchmarkFunction::sphere(/*dim: */ 30);
let x = vec![0.1; 30];
println!("f({:?}) = {:?}", x, problem.objective(&x));
The benchmark functions were taken from the following sources:
This project is licensed under the GNU General Public License v3.0.