FET Forum

FET Development => Suggestions => Topic started by: Corfiot on December 11, 2019, 03:43:50 PM

Title: Rule groups
Post by: Corfiot on December 11, 2019, 03:43:50 PM
Hello,

Would it be possible to add rule groups that one could enable/disable? This would be a ui-side thing and groups could be stored in the XML file separately from rules, so the rule storage schema is not affected.

This would help a lot with creation of difficult timetables, you could group "easy"/"important" rules together, fiddle to get a schedule, then add more rules, fiddle, and repeat, adding more optional/nice to have restrictions.

The UI would be about creating a group (name it) and then in the filter dialog of any rule display dialog add an option to add these rules to a group. Finally, a small dialog to display/delete rules from a group.

How feasible is this?
Title: Re: Rule groups
Post by: Liviu Lalescu on December 11, 2019, 04:25:38 PM
Hello,

It is an interesting idea. The problem is that constraints do not have an ID, so you cannot specify exactly the constraints in a group.

But Anthony Siaudeau and I have better ideas (there is an older custom version created for Anthony Siaudeau based on his suggestion). He suggested that a constraint can have a weight or a weight name. Weight names have modifiable values. You can create more weight names and assign them to the constraints. Then with only a click you can change the value of a weight name and thus modify the weights of more constraints at once. My idea is to do this also to enable/disable constraints (add some Boolean variables to be attached as the "enabled" state of some constraints). This is because many constraints can have only 100% weight, and they need to be disabled if you want this - their weight cannot simply be made 0.

I will add this discussion in the TODO list.