Four lectures in any single week, within a 10 week Date Pattern #208
-
|
I have investigated the Max Weeks Constraint, hoping that it would apply a constraint of one week wihin the Date Pattern, but I'm finding the constraint is violated and the lectures are repeated across the full Date Pattern. Is this possible, or do I need to manually select the week by creating a new Date Pattern? I am scheduling courses that each contain 1-4 weeks of content, within a half-year term. The delivery order of each course is not significant. I hoped that by applying the Max Weeks Constraint to the course, it would limit the repetition of the lectures accordingly. Am I on the right path or does anyone have recommendations for me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The constraint does NOT limit which days a class will use within the given date pattern. So, if a class uses a date pattern that spans 10 weeks, it cannot be limited to a single week by this constraint. You would need to use a shorter date pattern for that. However, if there are multiple classes (between which the constraint is set), each using an alternative pattern set date pattern (e.g., imagine a 1x date pattern that consists of Week 1, Week 2, Week 3, ... Week 10 options), the constraint will limit how many distinct weeks can be selected. For instance, imagine multiple classes that must all meet within the same week, but the solver is allowed to choose which week. |
Beta Was this translation helpful? Give feedback.
The constraint does NOT limit which days a class will use within the given date pattern. So, if a class uses a date pattern that spans 10 weeks, it cannot be limited to a single week by this constraint. You would need to use a shorter date pattern for that.
However, if there are multiple classes (between which the constraint is set), each using an alternative pattern set date pattern (e.g., imagine a 1x date pattern that consists of Week 1, Week 2, Week 3, ... Week 10 options), the constraint will limit how many distinct weeks can be selected. For instance, imagine multiple classes that must all meet within the same week, but the solver is allowed to choose which week.