UniTime/unitime

StudentMinimizeScheduleHoles criterion

suna-yusuf opened this issue · 4 comments

I enabled StudentMinimizeScheduleHoles criterion by adding org.cpsolver.coursett.criteria.additional.StudentMinimizeScheduleHoles to General.AdditionalCriteria
then adding distribution preference same student to group of classes and run the solver
but still have long time between classes on the same days
And Student class distance field in solver page show question mark value
studenClassDistanceField

it seems not to work!
how can i use StudentMinimizeScheduleHoles criterion with same student distribution preference?

It appears you have no students in the problem. The StudentMinimizeScheduleHoles criterion needs some form of student course demands in order to work. These could be in a form of last-years student course enrollments, curricula, the actual pre-registrations, or a combination of these -- see the Student Course Demand parameter of the Solver for more details about these options.

If you use distribution preferences to indicate which classes cannot overlap in time, you can also use distribution preferences to further restrict these classes during the day. For instance, see the Max Hours A Day, Work Day, Max Holes, or Max Break distributions from the Additional Distribution Constraints.

Can I use student group reservations instead of same student distribution preference to indicate which classes cannot overlap in time
and if I do, will StudentMinimizeScheduleHoles criterion be work ?

It is also possible to rely on student group reservations to provide student demand data. In this case, the student groups must have the Expected Students parameter filled in and the General.StudentGroupCourseDemands solver parameter must be created and set to true. You can do that on the Administration > Solver > Parameters page, using the Add Solver Parameter button with the following parameters:
111996872-bced2200-8b1a-11eb-9790-5786df61d03b

It should be possible to use this together with the StudentMinimizeScheduleHoles criterion.

Thank you