Generate 1 random activity

Started by ngoctp29121982, August 14, 2022, 03:55:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ngoctp29121982

Hello Liviu. A group of friends in Vietnam asked me a problem as follows:
Teacher A has 12 periods in 4 different classes but wants to have any of those 12 periods on a weekday (for example, Tuesday). That period can be 1 of 5 periods on the 3rd day (it doesn't have to be period 1).
I can't find that binding. Hope you can help

Liviu Lalescu

Hello, ngo,

I think you need a constraint of type activities occupy min time slots from selection.

ngoctp29121982

Can you help me create a sample FET file? Thank you so much

Liviu Lalescu

If you need a teacher to have at least n hours in m slots, you add a constraint I mentioned, with all the activities of the teacher, select all m slots, min n. Please read the help of that constraint.

I am not sure I understood correctly your requirement, though.

ngoctp29121982

108 / 5.000
Kết quả dịch
Can you create a sample file? I really don't know how to bind you, thank you Livu for everything

Liviu Lalescu

If you want to constraint teacher t to have at least an hour on Day 3 from 9 to 13, this is how. If this was not what you wanted, please describe more clearly your problem, maybe with a graphic example.

ngoctp29121982

Thank you. I will try it right away