1个不稳定版本
0.1.0 | 2023年7月14日 |
---|
#1052 在 算法
135KB
3K SLoC
MAHF BMF
MAHF的常用连续基准函数集合。
所有函数都缩放到每个维度的[-1, 1]范围内。
入门指南
将以下内容添加到您的 Cargo.toml
[dependencies]
mahf = { git = "https://github.com/mahf-opt/mahf" }
mahf_bmf = { git = "https://github.com/mahf-opt/mahf-bmf" }
构建问题实例和评估解决方案
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));
参考文献
基准函数来源于以下来源
- BenchmarkFcns工具箱
- 虚拟仿真实验图书馆
- Momin Jamil和Xin-She Yang. 2013. A Literature Survey of Benchmark Functions For Global Optimization Problems. IJMMNO 4, 2 (2013), 150. DOI:https://doi.org/10/gh48qq
许可协议
本项目采用GNU通用公共许可证v3.0。
依赖关系
~12–22MB
~310K SLoC