Skip to content
cmccombPublic

About

Benchmark functions for testing optimization algorithms in Rust

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

46 Commits

Folders and files

Repository files navigation

CI Crates.io docs.rs

About

This crate provides functionality for several functions that are commonly used to benchmark new optimization algorithms. More specifically, function is part of a struct that contains the objective function as well as other important information (bounds of the canonical problem, the known minimum value, and a function that returns the global minimizer.

This crate provides access to several single- and multi-objective funtions. For exhaustive lists, check here and here, respectively.

Example Usage

Using this crate is easy! Simply add this crate as a dependency and then import the pieces you need explicitly:

use benchfun::{single::Ackley, Bounded, SingleObjective};

fn main() {
    // Print some info about the ackley function
    println!("Minmimum: {:?}", Ackley::MINIMUM);
    println!("Minmizer: {:?}", Ackley::minimizer(5));
    println!("Minmizer: {:?}", Ackley::BOUNDS);
}

About

Benchmark functions for testing optimization algorithms in Rust

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages