FET Forum

FET Development => Custom FET for Particular Needs => Topic started by: chien2210 on September 23, 2018, 05:42:45 PM

Title: Max hours daily for a subject (Số tiết giảng tối đa trong 1 ngày của 1 môn học)
Post by: chien2210 on September 23, 2018, 05:42:45 PM
Hello, everybody. My name is Chien Le Sy. I am from Vietnam.
I want to have an option of "Max hours daily for a subject".
In my school, some subject has 4 or 5 hours per week. I would like to assign a teacher for 2 or 3 consecutive days and not more than 2 hours per day. How to I can do it with FET? Can you help me?
Title: Re: Max hours daily for a subject (Số tiết giảng tối đa trong 1 ngày của 1 môn học)
Post by: Liviu Lalescu on September 23, 2018, 05:50:04 PM
Hello, Chien Le Sy! I am Liviu from Romania :)

There are two variants to do what you want with the official FET (no need for customizations):

1) Add an activity tag corresponding with the subject for each activity and use the constraint teacher(s) activity tag max hours daily (enable the constraint and neglect the warning)

or

2) Use n_days_per_week constraints activities occupy max time slots from selection, activities = all activities of a teacher, selected slots = all slots of a day, max occupied = 2.

(1) is recommended.
Title: Re: Max hours daily for a subject (Số tiết giảng tối đa trong 1 ngày của 1 môn học)
Post by: chien2210 on September 25, 2018, 03:51:25 PM
I got it. Thank Liviu very much. You are very friendly. Nice to meet you. :)
Title: Re: Max hours daily for a subject (Số tiết giảng tối đa trong 1 ngày của 1 môn học)
Post by: Liviu Lalescu on September 25, 2018, 03:53:13 PM
You are welcome! Nice to meet you, too!  :)