Started by nouvakis, October 18, 2013, 09:39:47 PM
0 Members and 1 Guest are viewing this topic.
QuoteIt is also a bit weird constraint.
QuoteBut I suggest you a trick: add another duration 1 activity to this teacher, and make min hours daily = 4. (but be careful, this new activity might add a gap, so you may need to reconsider gaps constraints.)
Quote from: nouvakis on October 19, 2013, 08:31:55 AMQuoteIt is also a bit weird constraint.5+5+4+4+3 is more balanced than 5+5+5+3+3.
QuoteI would like to try your trick, but I don't understand it. I should add another activity duration 1 without students? Is that correct?
Quote from: Silver on October 21, 2013, 08:07:10 PM- if the problem in 1 teacher timetable you can used "teacher avelible" - the first time constraint.- you can used "max hours for teacher" :max hours = 4recommended = 95 % = 5 - 4 - 4 - 4 - 4
Quote from: Liviu Lalescu on October 04, 2014, 06:50:28 PMI agree with the above, but not on 4). It is more complicated. You need to not abandon search so easily if things are not the way you want.Firstly, I think you should consider also max gaps per day/week, like I do. Also, there are two phases. In the first phase you do a preliminary test, and if it is OK you exit with success. In the second phase you compute the exact current timetable and only exit without success if you cannot remove any useful activity anymore. I think you can see this two phase approach in the (majority of?) teachers' and students' constraints.
Quote from: Liviu LalescuAre you sure this is an important constraint?
Quote from: Liviu LalescuI don't know if I can add it to the official. I am afraid not to mess things up, making a critical mistake.
Quote from: Liviu LalescuLater edit: in your files, you forgot to modify the fitness and get(Detailed)Description in timeconstraint.cpp.
Quote from: Liviu LalescuAlso, this max occurs should have only weight 100%?
Quote from: Liviu LalescuAlso, in modifyconstraintteachermaxhoursdailyform.cpp, line 48 is wrong.
Quote from: Liviu Lalescu on October 04, 2014, 06:50:28 PMAre you sure this is an important constraint?
Quote from: Liviu Lalescu on October 04, 2014, 06:50:28 PMAlso, this max occurs should have only weight 100%?
Quote from: Liviu Lalescu on October 08, 2014, 05:29:48 PMI will keep thinking of this idea, and is something comes up I will let you know.