-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparison against Lesson.id missing from School Timetabling #23
Comments
We have tests to verify the constraints are working correctly: optapy-quickstarts/school-timetabling/tests.py Lines 57 to 79 in 4bdf9cc
In particular:
However, this bug will appear if the input constraint is removed and timeslots are less than or equal to 30 minutes. These two constraints are identical to the ones in |
Upon further inspecting, |
Thanks for thorough reply! I would say you've answered my original issue as to why
My expectation is that the outcome should be invariant with the value of the |
The
teacher_room_stability
method in the School Timetabling example uses a Joiner to compare Lessons of different ids, butteacher_time_efficiency
andstudent_group_subject_variety
do not. I believe this is an error and will introduce a comparison between two copies of the same Lesson. Since all these constrains compare unique instances of Lessons, it might make sense to change all thefor_each
calls tofor_each_unique_pair
.The text was updated successfully, but these errors were encountered: