1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//! Incremental constraint scoring for SolverForge.
//!
//! Applications use it through the `solverforge` facade. It provides:
//! - the constraint stream API (`stream`): `for_each`, joins, filters,
//! grouping and the `penalize`/`reward` terminals that build constraints;
//! - incremental constraints such as [`IncrementalUniConstraint`], which
//! update their score from the entities a move changed instead of
//! rescoring the whole solution;
//! - [`ScoreDirector`], which owns the working solution and its constraint
//! set and keeps the score current as moves are applied and undone;
//! - [`ConstraintSet`], a tuple of constraints evaluated without dynamic
//! dispatch.
//!
//! Every constraint is monomorphized: closures are generic parameters, and
//! there is no `Box<dyn Trait>` on the scoring path.
// Zero-erasure architecture intentionally uses complex generic types
// Core modules
/* ============================================================================
Zero-Erasure Incremental Constraints
============================================================================
*/
pub use ;
/* ============================================================================
Constraint Set (Tuple-Based, Zero-Erasure)
============================================================================
*/
pub use ;
pub use ;
/* ============================================================================
Score Directors
============================================================================
*/
pub use ;
pub use ;
/* ============================================================================
Analysis (for score explanation)
============================================================================
*/
pub use ;
/* ============================================================================
Fluent Constraint Stream API
============================================================================
*/
pub use ;