sort by comment missing in version 5.26.0

Started by andrealva, February 02, 2015, 12:14:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

andrealva

Hello,

I had the idea that using a "rank" label in a constraint's comment (for example, rank #001) sets a priority while generating a schedule. I made a test in version 5.24.0 (last version with the sort button) and I noticed a changed in the xml file when using the sort button. However, this functionality is marked as "useless" in version 5.26.0.

I used the sort button a lot in order to prioritize constraints according to the # of hours for each teacher; in my case, to put first in the list those teachers with less hours.

Please correct me if I am wrong.

A

Liviu Lalescu

#1
You are wrong.

The sorting by comments of the constraints only made a visual ordering for the user. It was useless for the generating process. I decided a temporary alphabetic sorting is better and easier to use.

Any order of the constraints should be quite similar to the generating process. But you might get a slightly different behaviour and different random seeds for a different constraints order.

andrealva

Fair enough. Thanks for the tip.

One use though, which can be given to sorting the comments, is to arrange together all the constraints related to a teacher(s) or a class(es) ... it would help to quickly identify them without using the filter .... It is only a suggestion ...

Thanks for this great software

A






Liviu Lalescu

I'll add this in the TODO file. But the dialog there is already very full. And it might bring misunderstandings like in your first post.