FET Forum

FET Development => Suggestions => Topic started by: Benahmed Abdelkrim on July 23, 2020, 11:33:55 AM

Title: New constraint(?)
Post by: Benahmed Abdelkrim on July 23, 2020, 11:33:55 AM
Hi!
is this constraint possible: A set of  activities are not overlapping in time slots from selection.  in order to give users the possibility to choose allowed and forbidden time slots?
And not as it is now activities do not overlap in all time slots.
Thanks!
Title: Re: New constraint(?)
Post by: Liviu Lalescu on July 23, 2020, 12:47:29 PM
You can use the constraint activities max simultaneous in selected time slots, with max simultaneous = 1.
Title: Re: New constraint(?)
Post by: Benahmed Abdelkrim on July 23, 2020, 12:55:03 PM
Thank you!
But could not this affect the good performance of the program?
Title: Re: New constraint(?)
Post by: Benahmed Abdelkrim on July 23, 2020, 12:58:52 PM
Quote from: Liviu Lalescu on July 23, 2020, 12:47:29 PM
You can use the constraint activities max simultaneous in selected time slots, with max simultaneous = 1.
In fact, I avoided using it, because I was afraid of affecting the program performance and generation speed..
Title: Re: New constraint(?)
Post by: Liviu Lalescu on July 23, 2020, 12:59:12 PM
The constraint is implemented in the best way possible (I hope) for the general case of max simultaneous = n, and making n=1 yields also good code behavior, probably nearly best possible (if I would make it a special constraint for n=1, it might only gain a negligible fraction of time of speed).

Neglect the warning there.

Some testing would be interesting, if you could do that.