Something similar to a set of activities preferred starting times?

Started by infoo_, February 07, 2023, 01:06:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

infoo_

Hello

Suppose we have an activity of duration 2-2-1.

I want that any of the subactivities (first 2, second 2 or 1, it doesn't matter) has a preferred starting time only on a certain day.

For example, Math of course 1C which has 3 subactivities:

- Duration 2
- Duration 2
- Duration 1

I want that any of the above has to start on 7º hour of Fridays (the schedule has 8 periods per day, so FET can pick one of duration 2 or duration 1).

I tried "An activity has a preferred starting time" but I'm forced to choose an activity.

I tried "A set of activities has a set of preferred starting times" but I'm forced to choose Friday and other days, since I want Friday starting time of duration 2, and the other 3 duration to be anywhere else.

In short:

Instead of:

Time constraint
Activity with id=56 (    2/5 - Teacher - 1C - 1C)
has a preferred starting time:
Day=Friday
Hour=7º 17:10-17:50
Weight (percentage)=100%
This activity is permanently locked, which means you cannot unlock it from the 'Timetable' menu (you can unlock this activity by removing the constraint from the constraints dialog or by setting the 'permanently locked' attribute false when editing this constraint)


Something like:

Time constraint
[Randomly choose one activity of: Activity with [id=56 (    2/5 - Teacher - 1C - 1C )] OR [id=55 ( 2/5    - Teacher - 1C - 1C )] OR [id=57 (    1/5 - Teacher - 1C - 1C )]
has a preferred starting time:
Day=Friday
Hour=7º 17:10-17:50
Weight (percentage)=100%
This activity is permanently locked, which means you cannot unlock it from the 'Timetable' menu (you can unlock this activity by removing the constraint from the constraints dialog or by setting the 'permanently locked' attribute false when editing this constraint)


Is that possible?

Thank you!!

Liviu Lalescu

Hello,

I think the constraint activities occupy min time slots from selection should work.

infoo_

Hello

Quote from: Liviu Lalescu on February 07, 2023, 07:39:03 AMI think the constraint activities occupy min time slots from selection should work.

I am new with this constraint.

I choosed the 3 activities, but I don't know what to select in "Time slots" tab (X means "put the activity there"? What happens to the other 2 activities that FET should randomly place according to other constraints?).

I don't want to tell FET what days the activities should be, but FET should randonmly pick only 1 of 3 activities on Friday. The other 2 activities can be anywhere else (except Friday, of course).

Liviu Lalescu

The idea is to select the slot of Friday 7th with X (red) and min occupied = 1 and these 3 activities. There might be some complications, because the activities with duration 2 might start on Friday 6th. I think you can solve these by preferred times for these activities, denying to start on Friday 6th.

Another possible solution might be activities min simultaneous in selected time slots. I am not sure which is faster - occupy min or min simultaneous - might be the same.