Hello, Stuart,

If the file you intend to send is not private (no sensitive information), you can attach it here in a new reply to this topic (archived if it is too large). If it is private, you can send it to any of my email addresses, listed on FET homepage -> Contacts, or on the email address written (not in clear, to avoid spam) on my personal page (

https://lalescu.ro/liviu/)

If you don't "tell" something to FET, it will not care about this. That is why you get many late hours/gaps if you don't add max gaps constraints.

There are available max gaps per day/week constraints for students and for teachers. For students there is also a constraint max beginnings at second hour, but I think it is too strong, since this does not allow a students set to begin at the third hour. For teachers, unfortunately, there is no constraint to take care of beginning early.

Maybe a good way is to slowly decrease the max gaps allowed per day/week. It is not possible to allow weight <100.0% for these constraints because I saw that practically even with the weight 99.99% the results were bad. But I might have a try to allow weights less than 100.0% for max gaps constraints, if you really want to test this.

I also wrote you about interval max days per week constraints. What do you say about them?

There is also the possible new constraint in a custom version. I am not sure it is what you really need, though, because while the overall activities will be early, the gaps might not be optimum.

Maybe also another variant could be a global maximum for all students sets / teachers number of gaps per day/week. This as a new constraint. I am not sure if it is feasible - as the speed of the program might not be very good compared to individual students sets / teachers max gaps, and you might end up with a students set with many gaps. But we can investigate even this variant, if you want.