My school has 2 classes: morning and afternoon
Morning from period 1 to period 5, afternoon from period 6 to period 9
The teacher teaches both morning and afternoon
For example, teacher A has 12 morning classes and 16 afternoon classes.
Please guide binding to teach 3 sessions in the morning and 4 sessions in the afternoon.
Teacher A has at least 2 periods in the morning, the maximum number of empty classes in the morning is 1
Your data seems similar to Morocco and Algeria. Please see the official FET -> examples -> Morocco -> Hadkourt for tricks how to use the official FET in Moroccan institutions, or see/use the custom versions Morocco or Algeria.