Skip to main content

u_metaheur/
lib.rs

1//! Domain-agnostic metaheuristic optimization framework.
2//!
3//! Provides generic implementations of common metaheuristic algorithms:
4//!
5//! - **Genetic Algorithm (GA)**: Population-based evolutionary optimization
6//!   with pluggable selection, crossover, and mutation operators.
7//! - **BRKGA**: Biased Random-Key Genetic Algorithm — the user implements
8//!   only a decoder; all evolutionary mechanics are handled generically.
9//! - **Simulated Annealing (SA)**: Single-solution trajectory optimization
10//!   with pluggable cooling schedules.
11//! - **ALNS**: Adaptive Large Neighborhood Search — destroy/repair operators
12//!   with adaptive weight selection.
13//! - **Dispatching**: Generic priority rule composition engine for
14//!   multi-rule item ranking.
15//! - **CP (Constraint Programming)**: Domain-agnostic modeling layer for
16//!   constrained optimization with interval, integer, and boolean variables.
17//! - **Tabu Search (TS)**: Single-solution trajectory optimization using
18//!   short-term memory (tabu list) to escape local optima.
19//! - **Variable Neighborhood Search (VNS)**: Systematic neighborhood
20//!   switching for escaping local optima via diversified perturbation.
21//!
22//! # Architecture
23//!
24//! This crate sits at Layer 2 (Algorithms) in the U-Engine ecosystem,
25//! depending only on `u-numflow` (Layer 1: Foundation). It contains no
26//! domain-specific concepts — scheduling, nesting, routing, etc. are
27//! all defined by consumers at higher layers.
28
29pub mod alns;
30pub mod brkga;
31pub mod cp;
32pub mod dispatching;
33pub mod ga;
34pub mod sa;
35pub mod tabu;
36pub mod vns;
37#[cfg(feature = "wasm")]
38pub mod wasm;