Min hours session for a teacher

Started by canhathuongnhau, January 03, 2017, 01:18:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

canhathuongnhau

Dear Mr Liviu,
Can you help me how to add constraint Min hours session for a teacher?
Hopefully, I can hear you as soon as possible!
Thanks so much.

Liviu Lalescu

Do you mean teachers min hours continuously?

It looks very complicated to me. You need to follow the FET algorithm for constraints. At each stage verify that the current timetable can be filled to a viable timetable.

But it is very difficult for you, if you didn't read the current FET constraints' code.

But it looks very complicated to me.

canhathuongnhau

Thanks for reply Mr Liviu. I mean min hours session for a teacher  continously or not.
This time, i'm so busy. So i have not yet read FET constraints' code. So can you show me the way to add this constraint.
Thanks so much.

Liviu Lalescu

Quote from: canhathuongnhau on January 04, 2017, 05:46:13 AM
Thanks for reply Mr Liviu. I mean min hours session for a teacher  continously or not.

Sorry, but I still don't understand. Continuously or not?

Quote
This time, i'm so busy. So i have not yet read FET constraints' code. So can you show me the way to add this constraint.
Thanks so much.

I am sorry, but I cannot do this. It would mean to implement the constraint, and it is too difficult even for me, as I told you (if you refer to teachers min hours continuously).

canhathuongnhau

Mr Liviu, Thanks so much for your reply. "Min hours session for a teacher" Ex: the teacher A want to teach 1st hour and 2nd hour or 1st hour and 3rd hours.. in the morning. The teacher A only want to teach 2 hours in the morning.
I'm so sorry when said that I didn't read  the current FET constraints' code. I know that you are also busy but you still reply everybody's question when they need to help. I really want to add this constraint to my timetable.Can you help me how to start with FET code. Thanks so much!

Liviu Lalescu

Quote from: canhathuongnhau on January 07, 2017, 07:03:04 PM
Mr Liviu, Thanks so much for your reply. "Min hours session for a teacher" Ex: the teacher A want to teach 1st hour and 2nd hour or 1st hour and 3rd hours.. in the morning. The teacher A only want to teach 2 hours in the morning.

Maybe you need to use a similar arrangement to the Morocco and Algeria files, doubling the number of days per week and considering a FET day to be a real half day, so have the FET days: Monday morning, Monday evening, Tuesday morning, Tuesday evening, ... . Then add constraints teachers min (max) hours daily.

Quote
I'm so sorry when said that I didn't read  the current FET constraints' code. I know that you are also busy but you still reply everybody's question when they need to help. I really want to add this constraint to my timetable.Can you help me how to start with FET code. Thanks so much!

The file generate.cpp contains the code for the generating routine. Unfortunately, I cannot guide you too much, I don't have too much pedagogical experience.

canhathuongnhau


Liviu Lalescu