Skip to main content

Crate givp

Crate givp 

Source
Expand description

§GIVP — GRASP-ILS-VND with Path Relinking

A metaheuristic optimizer for continuous and mixed-integer black-box optimization problems.

§Quick start

use givp::{givp, GivpConfig, Direction};

let sphere = |x: &[f64]| -> f64 { x.iter().map(|v| v * v).sum() };
let bounds: Vec<(f64, f64)> = vec![(-5.12, 5.12); 5];

let result = givp(sphere, &bounds, GivpConfig::default()).unwrap();
println!("Best: {:.6} at {:?}", result.fun, result.x);

Structs§

GivpConfig
Algorithm hyper-parameters.
OptimizeResult
Optimization result.
SweepSummary
Statistics summary from a multi-seed sweep.

Enums§

Direction
Optimization direction.
GivpError
All errors produced by the GIVP library.
TerminationReason
Why the optimizer stopped.

Functions§

givp
Run the GRASP-ILS-VND with Path Relinking optimizer.
seed_sweep
Run an optimizer multiple times with different random seeds to estimate reproducibility and convergence behavior.

Type Aliases§

Result