feat: add prelude module

A single `use heuropt::prelude::*;` brings in the common user-facing
types and traits available so far. Subsequent commits add Pareto
helpers, operators, and algorithms to the same prelude as they land.
This commit is contained in:
2026-05-04 19:18:11 -06:00
parent 60e52a031c
commit 3f2921ea60
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -3,4 +3,5 @@
//! full design.
pub mod core;
pub mod prelude;
pub mod traits;
+12
View File
@@ -0,0 +1,12 @@
//! Common imports for users of `heuropt`.
//!
//! ```
//! use heuropt::prelude::*;
//! ```
pub use crate::core::{
Candidate, Direction, Evaluation, Objective, ObjectiveSpace, OptimizationResult,
Population, Problem, Rng, rng_from_seed,
};
pub use crate::traits::{Initializer, Optimizer, Variation};