Spaces:
Sleeping
Sleeping
Download src/constraints/assemble.rs from SolverForge/solverforge-fsr: direct link, hf CLI and curl.
- Browser
- Download file 843 Bytes
-
https://huggingface.co/spaces/SolverForge/solverforge-fsr/resolve/main/src/constraints/assemble.rs
- Command line
-
hf download hf://spaces/SolverForge/solverforge-fsr/src/constraints/assemble.rs
-
curl -L -o assemble.rs https://huggingface.co/spaces/SolverForge/solverforge-fsr/resolve/main/src/constraints/assemble.rs
843 Bytes
| //! Assembles the constraint set the solver scores every plan against. | |
| use crate::domain::FieldServicePlan; | |
| use solverforge::prelude::*; | |
| /// Collects the full scoring model used by `FieldServicePlan`. | |
| pub fn create_constraints() -> impl ConstraintSet<FieldServicePlan, HardSoftScore> { | |
| // @solverforge:begin constraint-calls | |
| ( | |
| super::assigned_visits::constraint(), | |
| super::balance_workload::constraint(), | |
| super::minimize_travel::constraint(), | |
| super::priority_slack::constraint(), | |
| super::reachable_legs::constraint(), | |
| super::required_parts::constraint(), | |
| super::required_skills::constraint(), | |
| super::shift_capacity::constraint(), | |
| super::territory_affinity::constraint(), | |
| super::time_windows::constraint(), | |
| ) | |
| // @solverforge:end constraint-calls | |
| } | |