Skip to content

A collection of common continuous benchmark functions for MAHF.

License

Notifications You must be signed in to change notification settings

mahf-opt/mahf-bmf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAHF BMF

Crates.io docs.rs GitHub Workflow Status (with event) GitHub

A collection of common continuous benchmark functions for MAHF.

All functions are scaled to a domain of [-1, 1] for each dimension.

Getting Started

Add the following to your Cargo.toml:

[dependencies]
mahf = "0.1.0"
mahf_bmf = "0.1.0"

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));

References

The benchmark functions were taken from the following sources:

License

This project is licensed under the GNU General Public License v3.0.

About

A collection of common continuous benchmark functions for MAHF.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages