Skip to main content

solverforge_core/score/
mod.rs

1//! Score types for representing solution quality
2//!
3//! Scores are used to compare solutions and guide the optimization process.
4//! All score types are immutable and implement arithmetic operations.
5
6#[macro_use]
7mod macros;
8mod bendable;
9#[cfg(feature = "serde")]
10mod bendable_serde;
11mod hard_medium_soft;
12mod hard_soft;
13mod hard_soft_decimal;
14mod level;
15mod scale;
16mod soft;
17mod traits;
18
19#[cfg(test)]
20mod tests;
21
22pub use bendable::BendableScore;
23pub use hard_medium_soft::HardMediumSoftScore;
24pub use hard_soft::HardSoftScore;
25pub use hard_soft_decimal::HardSoftDecimalScore;
26pub use level::ScoreLevel;
27pub(crate) use scale::{
28    add_level, arithmetic_overflow, float_level, float_overflow, neg_level, scale_level,
29    scale_overflow, sub_level, track_overflow,
30};
31pub use soft::SoftScore;
32pub use traits::{ParseableScore, Score, ScoreParseError};