Spaces:
Sleeping
Sleeping
File size: 866 Bytes
d4437b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | //! Assembles the constraint set the solver scores every plan against.
use crate::domain::Plan;
use solverforge::prelude::*;
/// Collects the full scoring model used by `Plan`.
pub fn create_constraints() -> impl ConstraintSet<Plan, HardMediumSoftScore> {
// @solverforge:begin constraint-calls
(
super::assign_timeslot::constraint(),
super::assign_room::constraint(),
super::teacher_availability::constraint(),
super::group_availability::constraint(),
super::room_kind::constraint(),
super::room_capacity::constraint(),
super::no_group_conflict::constraint(),
super::no_teacher_conflict::constraint(),
super::no_room_conflict::constraint(),
super::late_lesson::constraint(),
super::repeated_subject_day::constraint(),
)
// @solverforge:end constraint-calls
}
|