#优化 #基准测试 #启发式算法 #元启发式算法

mahf-bmf

MAHF常用的连续基准函数集合

1个不稳定版本

0.1.0 2023年7月14日

#1052算法

GPL-3.0-or-later

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

参考文献

基准函数来源于以下来源

许可协议

本项目采用GNU通用公共许可证v3.0

依赖关系

~12–22MB
~310K SLoC