Checking identical constraints

Started by mma, April 10, 2012, 09:07:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mma

Hi,

When adding a constraint, a useful feature would be to check if an identical constraint exists already, and thus not adding the constraint. I just tried to add the same constraint repeatedly (just kept pressing 'Add'), and it kept adding. When there are many constraints it can be difficult to keep track of them all.

Removing identical constraints reduces the clutter, and perhaps also speeds up the timetable generation?

Thanks again for all your hard work!

Liviu Lalescu

Two identical min days constraints with 95% will result in a constraint with 99.75% weight. Two identical constraints min days with 100% will result in a constraint with 100%, the speed will be the same or insignificantly slower.

Two identical constraints of other type will clutter the constraints list. The speed is the same or insignificantly slower. I am not sure exactly how I treated this, maybe for interval max days per week this slows insignificantly (and you have only three constraints of this type allowed for each teacher/students set, and a duplicate takes up two of them and a triplicate takes up all three of them).

However, my main purpose is timetable generation algorithm. The rest is only a minimal interface. I wait for other interfaces from other programmers.

Reasons to keep as now: user has complete control. Case: he may want to add a constraint in the end of the list and remove the equivalent earlier one (well, weird example, but possible).