| Crates.io | ka |
| lib.rs | ka |
| version | 0.1.3 |
| created_at | 2021-03-16 08:29:06.707001+00 |
| updated_at | 2021-03-16 08:29:06.707001+00 |
| description | Ka benchmarking functions to use for optimization algorithms |
| homepage | https://github.com/yuulive/ka |
| repository | https://github.com/yuulive/ka |
| max_upload_size | |
| id | 369620 |
| size | 29,649 |
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.
Using this crate is easy! Simply add this crate as a dependency and then use it:
use ka::*;
fn main() {
// Print some info about the ackley function
println!("Minmimum: {:?}", Ackley::MINIMUM);
println!("Minmizer: {:?}", Ackley::minimizer(5));
println!("Minmizer: {:?}", single::Ackley::BOUNDS);
}
You can also use a use statement that looks more like use ka::{SingleObjective} but that's just messy!