Skip to main content

roma_lib/problem/
mod.rs

1//! Problem definitions and built-in benchmark/problem implementations.
2//!
3//! The central abstraction is [`Problem`], which defines how to:
4//! - create random candidate solutions,
5//! - evaluate quality/fitness,
6//! - compare fitness according to problem-owned semantics,
7//! - render domain-specific solution summaries for observers,
8//! - optionally expose bounds metadata for real-valued solutions.
9
10pub(crate) mod implementations;
11pub(crate) mod traits;
12
13pub use implementations::{
14    ackley_problem::AckleyProblem,
15    knapsack_problem::{build_knapsack_from_records, KnapsackBuilder, KnapsackProblem},
16    qap_problem::QapProblem,
17    rastrigin_problem::RastriginProblem,
18    tsp_problem::{build_tsp_from_records, TspProblem},
19    zdt1_problem::ZDT1Problem,
20};
21pub use traits::Problem;