Max hours daily per day (mor-aft mode) with an activity tag for a students set

Started by hoangnv231, September 22, 2024, 06:31:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hoangnv231

First of all, I would like to express my gratefulness to the two authors Liviu and Volker for your great job of compiling this wonderful application. It helps me a lot in my schoolwork.
I am wondering if you can add a new constraint that limits the maximum hours daily per day (in morning-afternoon mode, not other mode) with an activity tag for a students set.
To explain my suggestion, let's take an example below.
I have a subject with 12 durations in total that must be evenly spread over 5 days.
I created 2 sets of activities:
- The first one is a set of 5 activities, 2-hour duration for each (2+2+2+2+2)
- The second one is a set of 2 activities, 1-hour duration for each (1+1)
To avoid the exhaustion of students during study, I want to set the maximum hours for the subject in every morning and afternoon is only 2 hours.
In the recent version of FET, I found that the constraint of Max hours daily per real day with an activity tag for a students set is already integrated. Thus, I think this suggested constraint is just a variation of the existing one.
Hope to get your reply soon.
Thank you so much

Liviu Lalescu

Thank you for the appreciation!

I did it, please get it from https://lalescu.ro/liviu/fet/download/test/ and let me know if it is working correctly.

The constraint was there, but was just disabled for the Mornings-Afternoon mode.

Actually, you could also use two constraints min 1 half days between activities 100%: (2+2+2+2+2+1st 1), (2+2+2+2+2+2nd 1).

hoangnv231

Dear Liviu,
It works like a charm (both two methods of adding two constraints as you suggested and using the snapshot build).
Thank you so much.
Have a nice day, bro!

Liviu Lalescu